Package org.mpris

Class PlaylistsImpl

java.lang.Object
org.mpris.PlaylistsImpl
All Implemented Interfaces:
org.freedesktop.dbus.interfaces.DBusInterface, DBusProperties, Playlists

public class PlaylistsImpl extends Object implements DBusProperties, Playlists
  • Method Details

    • setConnection

      protected void setConnection(org.freedesktop.dbus.connections.impl.DBusConnection connection)
    • setPlaylistCount

      public void setPlaylistCount(int count) throws org.freedesktop.dbus.exceptions.DBusException
      The number of playlists available.
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
      See Also:
    • setOrderings

      public void setOrderings(PlaylistOrdering... ordering) throws org.freedesktop.dbus.exceptions.DBusException
      The available orderings. At least one must be offered.

      Media players may not have access to all the data required for some orderings. For example, creation times are not available on UNIX filesystems (don't let the ctime fool you!). On the other hand, clients should have some way to get the "most recent" playlists.
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
      See Also:
    • setActivePlaylist

      public void setActivePlaylist(Playlists.Maybe_Playlist playlist) throws org.freedesktop.dbus.exceptions.DBusException
      The currently-active playlist. If there is no currently-active playlist, the structure's Valid field will be false, and the Playlist details are undefined. Note that this may not have a value even after ActivatePlaylist is called with a valid playlist id as ActivatePlaylist implementations have the option of simply inserting the contents of the playlist into the current tracklist.
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
      See Also:
    • emitPlaylistChanged

      public void emitPlaylistChanged(Playlists.Playlist playlist) throws org.freedesktop.dbus.exceptions.DBusException
      Indicates that either the Name or Icon attribute of a playlist has changed. Client implementations should be aware that this signal may not be implemented.
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
      See Also:
    • ActivatePlaylist

      public void ActivatePlaylist(org.freedesktop.dbus.DBusPath PlaylistId)
      Specified by:
      ActivatePlaylist in interface Playlists
    • GetPlaylists

      public List<Playlists.Playlist> GetPlaylists(int Index, int MaxCount, String Order, boolean ReverseOrder)
      Description copied from interface: Playlists
      Gets a set of playlists.
      Specified by:
      GetPlaylists in interface Playlists
      Parameters:
      Index - The index of the first playlist to be fetched (according to the ordering).
      MaxCount - The maximum number of playlists to fetch.
      Order - The ordering that should be used.
      ReverseOrder - Whether the order should be reversed.
      Returns:
      A list of (at most MaxCount) playlists.
    • Get

      public org.freedesktop.dbus.types.Variant<?> Get(String interface_name, String property_name) throws org.freedesktop.dbus.exceptions.DBusException
      Specified by:
      Get in interface DBusProperties
      Throws:
      org.freedesktop.dbus.exceptions.DBusException
    • GetAll

      public Map<String,org.freedesktop.dbus.types.Variant<?>> GetAll(String interface_name)
      Specified by:
      GetAll in interface DBusProperties
    • Set

      public void Set(String interface_name, String property_name, org.freedesktop.dbus.types.Variant<?> value)
      Specified by:
      Set in interface DBusProperties
    • getObjectPath

      public String getObjectPath()
      Specified by:
      getObjectPath in interface org.freedesktop.dbus.interfaces.DBusInterface