Package org.mpris
Class PlaylistsImpl
java.lang.Object
org.mpris.PlaylistsImpl
- All Implemented Interfaces:
org.freedesktop.dbus.interfaces.DBusInterface,DBusProperties,Playlists
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classNested classes/interfaces inherited from interface org.mpris.mpris.Playlists
Playlists.Maybe_Playlist, Playlists.Playlist, Playlists.PlaylistChanged, Playlists.StringListType -
Method Summary
Modifier and TypeMethodDescriptionvoidActivatePlaylist(org.freedesktop.dbus.DBusPath PlaylistId) voidemitPlaylistChanged(Playlists.Playlist playlist) Indicates that either the Name or Icon attribute of a playlist has changed.org.freedesktop.dbus.types.Variant<?> GetPlaylists(int Index, int MaxCount, String Order, boolean ReverseOrder) Gets a set of playlists.voidvoidsetActivePlaylist(Playlists.Maybe_Playlist playlist) The currently-active playlist.protected voidsetConnection(org.freedesktop.dbus.connections.impl.DBusConnection connection) voidsetOrderings(PlaylistOrdering... ordering) The available orderings.voidsetPlaylistCount(int count) The number of playlists available.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.freedesktop.dbus.interfaces.DBusInterface
isRemote
-
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:
ActivatePlaylistin interfacePlaylists
-
GetPlaylists
public List<Playlists.Playlist> GetPlaylists(int Index, int MaxCount, String Order, boolean ReverseOrder) Description copied from interface:PlaylistsGets a set of playlists.- Specified by:
GetPlaylistsin interfacePlaylists- 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:
Getin interfaceDBusProperties- Throws:
org.freedesktop.dbus.exceptions.DBusException
-
GetAll
- Specified by:
GetAllin interfaceDBusProperties
-
Set
public void Set(String interface_name, String property_name, org.freedesktop.dbus.types.Variant<?> value) - Specified by:
Setin interfaceDBusProperties
-
getObjectPath
- Specified by:
getObjectPathin interfaceorg.freedesktop.dbus.interfaces.DBusInterface
-