RB.AutoPlaylistSource

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.AutoPlaylistSource RB.AutoPlaylistSource RB.Source RB.Source RB.DisplayPage->RB.Source RB.PlaylistSource RB.PlaylistSource RB.PlaylistSource->RB.AutoPlaylistSource RB.Source->RB.PlaylistSource

Subclasses:

None

Methods

Inherited:

RB.PlaylistSource (10), RB.Source (34), 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, local)

class

new_from_xml (shell, name, node)

Virtual Methods

Inherited:

RB.PlaylistSource (3), RB.Source (28), RB.DisplayPage (12), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

RB.PlaylistSource (3), RB.Source (10), RB.DisplayPage (5), Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

Gtk.Widget (17)

Signals

Inherited:

RB.Source (3), RB.DisplayPage (2), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

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.AutoPlaylistSource(*args, **kwargs)
Bases:

RB.PlaylistSource

Abstract:

No

Structure:

RB.AutoPlaylistSourceClass

A playlist populated with the results of a database query.

The query, limit, and sort settings are saved to the playlists file, so they are persistent.

Searching is implemented by appending the query criteria generated from the search text to the query. Browsing is implemented by using the base query model (or a query model using the query generated from the search text, there is some) as the input to a RB.LibraryBrowser.

If the user has not set a sort order as part of the playlist definition, the entry view columns are made clickable to allow the user to sort the results.

classmethod new(shell, name, local)
Parameters:
  • shell (RB.Shell) – the RB.Shell instance

  • name (str) – the name of the new playlist

  • local (bool) – if True, the playlist will be considered local

Returns:

the new source

Return type:

RB.Source

Creates a new automatic playlist source, initially with an empty query.

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

the new source

Return type:

RB.Source

Creates a new auto playlist source by parsing an XML-encoded query.