<?xml version="1.0" encoding="UTF-8"?>
<?oxygen SCHSchema="http://myurc.org/ns/uisocketdesc/uisocketdesc.sch"?>
<!--
	UI socket description (based on ISO/IEC 24752-2) for a generic DVD player, connected via infra-red (IR). 
-->

<uiSocket about="http://res.myurc.org/gc100/dvd-ir.uis" 
	id="dvdsocket" 
	xmlns="http://myurc.org/ns/uisocketdesc" 
	xmlns:uis="http://myurc.org/ns/uisocketdesc" 
	xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	xmlns:dc="http://purl.org/dc/elements/1.1/" 
	xmlns:dcterms="http://purl.org/dc/terms/" 
	xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
	xsi:schemaLocation="http://myurc.org/ns/uisocketdesc http://myurc.org/ns/uisocketdesc 
		http://purl.org/dc/elements/1.1/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dc.xsd 
		http://purl.org/dc/terms/ http://dublincore.org/schemas/xmls/qdc/2006/01/06/dcterms.xsd">
	<dc:description xml:lang="en">
		User Interface Socket Description for generic DVD player, connected via infra-red (IR).  Due to the one-way communication of IR, there is no status information available from the socket.  Many commands are just toggles.
	</dc:description>
	<dc:creator>Komal Jogi</dc:creator>
	<dc:contributor>Parikshit Thakur</dc:contributor>
	<dc:contributor>Gottfried Zimmermann, Access Technologies Group</dc:contributor>
	<dc:rights>Copyright 2008 Access Technologies Group</dc:rights>
	<dcterms:conformsTo>http://myurc.org/iso24752-2/2007</dcterms:conformsTo>
	<dcterms:modified>2008-07-30</dcterms:modified>
	
	<!-- GZ: General notes:
		Different socket descriptions for IR-based and serial-based DVD player.  Hence new file and about name.
		Using "toggle" as prefix for commands where we don't know which way they are going.
		Using uis:voidCommand for commands without parameters since we don't know whether a command succeeded or not.
		Removed relevant dependencies since all commands are relevant (should appear on the UI) even if the DVD player is switched off.
	-->	
	
	<variable id="powerMode" type="powerModeType">
		<dc:description xml:lang="en">
			This socket element allows to adjust the power mode of the device. 
			The powerModeType is a string enumeration 'ON', 'STANDBY':
			- 'ON' corresponds to powerOn the DVD-Player
			- 'STANDBY' corresponds to a deactivated DVD-Player
		</dc:description>	
	</variable>
	
	<command id="toggleRepeatTrack" type="uis:voidCommand">
		<dc:description xml:lang="en">This command toggles the current status of track repeat control.</dc:description>
	</command>
	
	<command id="play" type="uis:basicCommand">
		<dc:description xml:lang="en">This command starts the DVD Player.  Command state is always "initial" since we don't know the real state of the DVD player. </dc:description>
		<param id="trackNo" dir="in" type="xsd:positiveInteger"/>
	</command>
	
	<command id="pause" type="uis:voidCommand">
		<dc:description xml:lang="en">This command pauses the DVD player.</dc:description>
	</command>
	
	<command id="stop" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for stopping the DVD to spin in the DVD player.  Stop can only be activated when play is inProgress.</dc:description>
	</command>

	<command id="previous" type="uis:voidCommand">
		<dc:description xml:lang="en">This command is used to play previous track.</dc:description>
		<!-- GZ: Can be used even if play not in progress, right? -->
		<!-- PT: No, cannot be used when play is not in progress. -->
	</command>

	<command id="next" type="uis:voidCommand">
		<dc:description xml:lang="en">This command is used to play next track.</dc:description>
		<!-- GZ: Can be used even if play not in progress, right? -->
		<!-- PT: No, cannot be used when play is not in progress. -->
	</command>
	
	<command id="toggleTray" type="uis:voidCommand">
		<dc:description xml:lang="en">This command opens or closes the DVD tray.  Also stops play command.</dc:description>
	</command>

	<command id="toggleMenu" type="uis:voidCommand">
		<dc:description xml:lang="en">This command opens or closes the DVD Main Menu. </dc:description>
	</command>
	
	<command id="enter" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for executing the current selection on the DVD menu.</dc:description>
	</command>
	
	<command id="left" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for left navigation in DVD menu.</dc:description>
	</command>

	<command id="right" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for right navigation in DVD menu.</dc:description>
	</command>
	
	<command id="up" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for up navigation in DVD menu. </dc:description>
	</command>
	
	<command id="down" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for down navigation in DVD menu.</dc:description>
	</command>

	<command id="fastForward" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for fast forwarding. </dc:description>
	</command>

	<command id="rewind" type="uis:voidCommand">
		<dc:description xml:lang="en">Command for rewind.</dc:description>
	</command>
	
	<command id="toggleSubTitle" type="uis:voidCommand">
		<!-- GZ: Is this command available on the DVD player?  Or is it a setting available in the DVD menu? -->
		<!-- PT: Yes, it is a command available on the DVD player. Atleast on LG and Denon. It toggles from one language to the other, with one of the toggle values as: OFF  -->
		<dc:description xml:lang="en">Command for switching to different subtitle type (i.e. ENG, GER, ITA, etc.) for the movie. One of the values is OFF, which turns off the sub-titles. This is for Denon DVD Player.</dc:description>
	</command>

	<schema xmlns="http://www.w3.org/2001/XMLSchema">
		<simpleType name="powerModeType" id="powerModeTypeId">
			<restriction base="xsd:string">
				<enumeration value="STANDBY"/>
				<enumeration value="ON"/>
			</restriction>
		</simpleType>		
	</schema>	
	
</uiSocket>