<?xml version="1.0" encoding="UTF-8"?>
<component name="ReadFavorite" extends="Task" >
	<interface>
		<field id="result" type="boolean"/>
		<field id="cve" type="string"/>
	</interface>
	
	<script type="text/brightscript" uri="pkg:/components/generalUtils.brs"/>
	<script type="text/brightscript">
		<![CDATA[
			sub init()
			    m.top.functionName = "go"
			end sub
				
			sub go()			
				result = regread("fav-"+m.top.cve, "Favorites")
				if result <> invalid and result <> "" then
					m.top.result = true
			    else
			    	m.top.result = false
				end if
			end sub
		]]>
	</script>
</component>
