[gnome-music/wip/jfelder/mpris-cleanup: 1/29] mpris: Add Playlists interface to xml description



commit 12f74f8ebd99d3da25ef327359bb3f1814eacc62
Author: Jean Felder <jfelder src gnome org>
Date:   Thu Mar 14 16:52:41 2019 +0100

    mpris: Add Playlists interface to xml description

 gnomemusic/mpris.py | 18 ++++++++++++++++++
 1 file changed, 18 insertions(+)
---
diff --git a/gnomemusic/mpris.py b/gnomemusic/mpris.py
index b547b6f2..5f3f28ec 100644
--- a/gnomemusic/mpris.py
+++ b/gnomemusic/mpris.py
@@ -209,6 +209,24 @@ class MPRIS(DBusInterface):
             <property name='Tracks' type='ao' access='read'/>
             <property name='CanEditTracks' type='b' access='read'/>
         </interface>
+        <interface name='org.mpris.MediaPlayer2.Playlists'>
+            <method name='ActivatePlaylist'>
+                <arg direction="in" name="PlaylistId" type="o" />
+            </method>
+            <method name='GetPlaylists'>
+                <arg direction='in' name='Index' type='u' />
+                <arg direction='in' name='MaxCount' type='u' />
+                <arg direction='in' name='Order' type='s' />
+                <arg direction='in' name='ReverseOrder' type='b' />
+                <arg direction='out' name='Playlists' type='a(oss)' />
+            </method>
+            <property name='PlaylistCount' type='u' access='read' />
+            <property name='Orderings' type='as' access='read' />
+            <property name='ActivePlaylist' type='(b(oss))' access='read' />
+            <signal name='PlaylistChanged'>
+                <arg name='Playlist' type='(oss)' />
+            </signal>
+        </interface>
     </node>
     """
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]