aboutsummaryrefslogtreecommitdiff
path: root/src/mpris2-interfaces.vala
diff options
context:
space:
mode:
authorConor Curran <conor.curran@canonical.com>2010-12-10 13:02:16 +0000
committerConor Curran <conor.curran@canonical.com>2010-12-10 13:02:16 +0000
commitf3b321919e3390f3d3af2eea33ad71611616ce61 (patch)
treec63a7bb63a3eeb2d2a63e5ce472a0e1fad7d9e80 /src/mpris2-interfaces.vala
parenta964487e2fcd11946b5f95ab36b20cbd1bea4a57 (diff)
downloadayatana-indicator-sound-f3b321919e3390f3d3af2eea33ad71611616ce61.tar.gz
ayatana-indicator-sound-f3b321919e3390f3d3af2eea33ad71611616ce61.tar.bz2
ayatana-indicator-sound-f3b321919e3390f3d3af2eea33ad71611616ce61.zip
playlist widget population
Diffstat (limited to 'src/mpris2-interfaces.vala')
-rw-r--r--src/mpris2-interfaces.vala22
1 files changed, 15 insertions, 7 deletions
diff --git a/src/mpris2-interfaces.vala b/src/mpris2-interfaces.vala
index 3f5519b..ab8ac95 100644
--- a/src/mpris2-interfaces.vala
+++ b/src/mpris2-interfaces.vala
@@ -1,6 +1,5 @@
/*
Copyright 2010 Canonical Ltd.
-
Authors:
Conor Curran <conor.curran@canonical.com>
@@ -45,7 +44,6 @@ public interface MprisPlayer : Object {
public signal void Seeked(int64 new_position);
}
-
// Playlist container
public struct PlaylistDetails{
public ObjectPath path;
@@ -54,8 +52,18 @@ public struct PlaylistDetails{
}
[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
+// Get_playlists should be able to be async => pass in callback pointer
+// Lacking the ability to query the current playlist (should be asyncable)
+// - needed to keep client and servers in sync
+// => get_current_playlist ->
+// Should return PlaylistDetails struct with each field nil if there is no active playlist.
+// Otherwise a populated PlaylistDetails
+// should be asyncable.
+// => Need to be able to query get_playlist using ordered by last modified.
+// => Need a signal to inform that the active playlist has changed
+
public interface MprisPlaylists : Object {
//properties
public abstract string[] Orderings{owned get; set;}
@@ -63,8 +71,8 @@ public interface MprisPlaylists : Object {
//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;
+ public abstract PlaylistDetails[] GetPlaylists ( uint32 index,
+ uint32 max_count,
+ string order,
+ bool reverse_order ) throws IOError;
} \ No newline at end of file