diff options
author | Conor Curran <conor.curran@canonical.com> | 2010-12-17 12:48:03 +0000 |
---|---|---|
committer | Conor Curran <conor.curran@canonical.com> | 2010-12-17 12:48:03 +0000 |
commit | 032797fd7a92bc8a4fd979ddc12cacb0918ca73b (patch) | |
tree | d4fd4c0600312500c6b620a092148634fce676c2 /src/mpris2-interfaces.vala | |
parent | 93190886959bfa16b835794a4a12a9a945e7777e (diff) | |
download | ayatana-indicator-sound-032797fd7a92bc8a4fd979ddc12cacb0918ca73b.tar.gz ayatana-indicator-sound-032797fd7a92bc8a4fd979ddc12cacb0918ca73b.tar.bz2 ayatana-indicator-sound-032797fd7a92bc8a4fd979ddc12cacb0918ca73b.zip |
proved active-playlist prop use-case
Diffstat (limited to 'src/mpris2-interfaces.vala')
-rw-r--r-- | src/mpris2-interfaces.vala | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/src/mpris2-interfaces.vala b/src/mpris2-interfaces.vala index 160f454..578b6c8 100644 --- a/src/mpris2-interfaces.vala +++ b/src/mpris2-interfaces.vala @@ -50,23 +50,19 @@ public struct PlaylistDetails{ public string name; public string icon_path; } +// Active playlist property container +public struct ActivePlaylistContainer{ + public bool valid; + public PlaylistDetails active_playlist; +} [DBus (name = "org.mpris.MediaPlayer2.Playlists")] - -// TODO: API criticisms -// Get_playlists should be able to be async => pass in callback pointer -// => 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;} public abstract uint32 PlaylistCount{owned get; set;} - + public abstract ActivePlaylistContainer ActivePlaylist {owned get; set;} + //methods public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError; public abstract PlaylistDetails[] GetPlaylists ( uint32 index, |