RB.RhythmDBQueryResults

g GObject.GInterface GObject.GInterface RB.RhythmDBQueryResults RB.RhythmDBQueryResults GObject.GInterface->RB.RhythmDBQueryResults

Implementations:
 RB.RhythmDBQueryModel, RB.RhythmDBQueryResultList

Methods

  add_results (entries)
  query_complete ()

Virtual Methods

  do_add_results (entries)
  do_query_complete ()

Properties

None

Signals

None

Fields

None

Class Details

class RB.RhythmDBQueryResults
Bases:GObject.GInterface
Structure:RB.RhythmDBQueryResultsIface

This is the interface that RB.RhythmDB uses to report results of database queries. When running a query, it first calls rhythmdb_query_results_set_query, then passes entries matching the query to RB.RhythmDBQueryResults.add_results in batches, and finally calls RB.RhythmDBQueryResults.query_complete. There are no guarantees as to which threads the calls are made from.

add_results(entries)
Parameters:entries ([RB.RhythmDBEntry]) – GLib.PtrArray containing RB.RhythmDBEntry results

Provides a new set of query results. References must be taken on the entries.

query_complete()

Called when the query is complete and all entries that match the query have been supplied to RB.RhythmDBQueryResults.add_results. If the object implementing this interface needs to identify newly added or changed entries that match the query, it needs to use the entry-added, entry-deleted and entry-changed signals from RB.RhythmDB.

do_add_results(entries) virtual
Parameters:entries ([RB.RhythmDBEntry]) – GLib.PtrArray containing RB.RhythmDBEntry results

Provides a new set of query results. References must be taken on the entries.

do_query_complete() virtual

Called when the query is complete and all entries that match the query have been supplied to RB.RhythmDBQueryResults.add_results. If the object implementing this interface needs to identify newly added or changed entries that match the query, it needs to use the entry-added, entry-deleted and entry-changed signals from RB.RhythmDB.