[prev in list] [next in list] [prev in thread] [next in thread] 

List:       freedesktop-dbus
Subject:    Re: Proposal and RFC: DAL, the Desktop Abstraction Layer
From:       Ikke <eikke () eikke ! com>
Date:       2005-01-18 18:21:08
Message-ID: 1106072469.10824.4.camel () moonwalker ! trangez ! int
[Download RAW message or body]

Wrote up a simple XML document describing an app.

This is just a sample, got some issues left (the "name" property -> not
conformant with other object properties, etc) but well.

I did not write an XSD schema or some XSLT things, that's for later when
the final schema is made.

Please review and let me know what you think :-)


Regards,

Ikke
http://www.eikke.com

["MusicPlayer.xml" (MusicPlayer.xml)]

<?xml version="1.0" encoding="UTF-8"?>
<DesktopService name="MusicPlayer">
        <Description>Interface for a Music Player</Description>
        <Interface>org.freedesktop.DIS.MusicPlayer</Interface>
        <ExposedEvents>
                <Event name="NewTrackStarted">
                        <Description>A new track started playing</Description>
                        <Arguments>
                                <Argument name="Uri">
                                        <Type>String</Type>
                                        <Description>The URI of the newly started \
track, compatible with the FDO File URI specification</Description>  </Argument>
                        </Arguments>
                </Event>
                <Event name="PlaybackPaused">
                        <Description>Playback paused</Description>
                        <Arguments />
                </Event>
                <Event name="PlaybackStarted">
                        <Description>Playback started or restarted</Description>
                        <Arguments />
                </Event>
        </ExposedEvents>
        <ExposedMethods>
                <Method name="HandleUri">
                        <Description>Check whether the player can handle this \
URI</Description>  <Arguments>
                                <Argument name="Uri">
                                        <Type>String</Type>
                                        <Description>FDO File URI spec compatible \
URI</Description>  </Argument>
                        </Arguments>
                        <ReturnValues>
                                <ReturnValue name="Handles">
                                        <Type>Bool</Type>
                                        <Description>Whether the player can handle \
the requested URI</Description>  </ReturnValue>
                        </ReturnValues>
                </Method>
                <Method name="PlaybackUri">
                        <Description>Request the player to start playing \
URI</Description>  <Arguments>
                                <Argument name="Uri">
                                        <Type>String</Type>
                                        <Description>The URI</Description>
                                </Argument>
                        </Arguments>
                        <ReturnValues>
                                <ReturnValue name="Success">
                                        <Type>Bool</Type>
                                        <Description>Whether the player could do what \
we asked</Description>  </ReturnValue>
                        </ReturnValues>
                </Method>
                <Method name="PausePlayback">
                        <Description>Request the player to pause \
playback</Description>  <Arguments />
                        <ReturnValues>
                                <ReturnValue name="Success">
                                        <Type>Bool</Type>
                                        <Description>Whether the player was able to \
honour our request</Description>  </ReturnValue>
                        </ReturnValues>
                </Method>
                <Method name="ResumePlayback">
                        <Description>Request the player to resume playback when in \
paused state</Description>  <Arguments />
                        <ReturnValues>
                                <ReturnValue name="Success">
                                        <Type>Bool</Type>
                                        <Description>Same thing</Description>
                                </ReturnValue>
                        </ReturnValues>
                </Method>
                <Method name="OnTurntable">
                        <Decription>Request the URI of the track currently "on the \
turntable"</Decription>  <Arguments />
                        <ReturnValues>
                                <ReturnValue name="Uri">
                                        <Type>String</Type>
                                        <Description>URI of the track currently \
loaded</Description>  </ReturnValue>
                        </ReturnValues>
                </Method>
        </ExposedMethods>
</DesktopService>



[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic