RB.StaticPlaylistSource

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gtk.Box Gtk.Box RB.DisplayPage RB.DisplayPage Gtk.Box->RB.DisplayPage Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container RB.Source RB.Source RB.DisplayPage->RB.Source RB.PlaylistSource RB.PlaylistSource RB.StaticPlaylistSource RB.StaticPlaylistSource RB.PlaylistSource->RB.StaticPlaylistSource RB.Source->RB.PlaylistSource

Subclasses:None

Methods

Inherited:RB.PlaylistSource (10), RB.Source (33), RB.DisplayPage (12), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)
Structs:Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class new (shell, name, settings, local, entry_type)
class new_from_xml (shell, name, node)
  add_entry (entry, index)
  add_location (location, index)
  add_locations (locations)
  load_from_xml (node)
  move_entry (entry, index)
  remove_entry (entry)
  remove_location (location)

Child Properties

Inherited:Gtk.Box (5)

Style Properties

Inherited:Gtk.Widget (17)

Fields

Inherited:RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)
Name Type Access Description
parent RB.PlaylistSource r  

Class Details

class RB.StaticPlaylistSource(*args, **kwargs)
Bases:RB.PlaylistSource
Abstract:No
Structure:RB.StaticPlaylistSourceClass
classmethod new(shell, name, settings, local, entry_type)
Parameters:
Returns:

new playlist.

Return type:

RB.Source

Creates a new static playlist source.

classmethod new_from_xml(shell, name, node)
Parameters:
Returns:

playlist read from XML

Return type:

RB.Source

Constructs a new playlist from the given XML document node.

add_entry(entry, index)
Parameters:
  • entry (RB.RhythmDBEntry) – entry to add to the playlist
  • index (int) – position at which to add it (-1 to add at the end)

Adds the specified entry to the playlist.

add_location(location, index)
Parameters:
  • location (str) – location (URI) to add to the playlist
  • index (int) – position at which to add the location (-1 to add at the end)

If the location matches an entry in the database, the entry is added to the playlist. Otherwise, if it identifies a directory, the contents of that directory are added.

add_locations(locations)
Parameters:locations ([str]) – URI strings to add

Adds the locations specified in locations to the playlist. See rb_static_playlist_source_add_location for details.

load_from_xml(node)
Parameters:node (libxml2.NodePtr) – XML node to load from

Loads the playlist contents from the specified XML document node.

move_entry(entry, index)
Parameters:

Moves an entry within the playlist.

remove_entry(entry)
Parameters:entry (RB.RhythmDBEntry) – the entry to remove

Removes the specified entry from the playlist.

remove_location(location)
Parameters:location (str) – location to remove

Removes the specified location from the playlist. This affects both the location map and the query model, whether an entry exists for the location or not.