aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-interfaces.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-12-09 11:36:33 +0000
committerConor Curran <conor.curran@canonical.com>2010-12-09 11:36:33 +0000
commita964487e2fcd11946b5f95ab36b20cbd1bea4a57 (patch)
treea294b7afb203aff91b163d533522e36280d20dfd /src/mpris2-interfaces.vala
parent0649b09ccf86ea2a158fb24061fc3a142e02f462 (diff)
downloadayatana-indicator-sound-a964487e2fcd11946b5f95ab36b20cbd1bea4a57.tar.gz
ayatana-indicator-sound-a964487e2fcd11946b5f95ab36b20cbd1bea4a57.tar.bz2
ayatana-indicator-sound-a964487e2fcd11946b5f95ab36b20cbd1bea4a57.zip
moving towards testing proposed playlists api
Diffstat (limited to 'src/mpris2-interfaces.vala')
-rw-r--r--src/mpris2-interfaces.vala24
1 files changed, 24 insertions, 0 deletions
diff --git a/src/mpris2-interfaces.vala b/src/mpris2-interfaces.vala
index ebea135..3f5519b 100644
--- a/src/mpris2-interfaces.vala
+++ b/src/mpris2-interfaces.vala
@@ -44,3 +44,27 @@ public interface MprisPlayer : Object {
// signals
public signal void Seeked(int64 new_position);
}
+
+
+// Playlist container
+public struct PlaylistDetails{
+ public ObjectPath path;
+ public string name;
+ public string icon_path;
+}
+
+[DBus (name = "org.mpris.MediaPlayer2.Playlists")]
+// TODO: API criticisms
+// get playlists should be able to be async => pass in struct to be populated or pass in callback
+public interface MprisPlaylists : Object {
+ //properties
+ public abstract string[] Orderings{owned get; set;}
+ public abstract uint32 PlaylistCount{owned get; set;}
+
+ //methods
+ public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError;
+ public abstract PlaylistDetails[] GetPlaylists ( uint32 index,
+ uint32 max_count,
+ string order,
+ bool reverse_order ) throws IOError;
+} \ No newline at end of file