Rygel.SearchableContainer – librygel-server – Vala Binding Reference

Rygel.SearchableContainer – librygel-server Reference Manual

# SearchableContainer

## Object Hierarchy:

## Description:

public interface SearchableContainer : MediaContainer

The base class for searchable containers.

Classes that implement this interface can, for instance:

1. Allow backends to implement a UPnP Search call using native searching (such as SQL or SPARQL queries).
2. Implement searching via the naïve default implementation provided by rygel_searchable_container_simple_search(), which does a recursive tree walk.

The search_classes property lists what information this container may be searched for. It is mapped to upnp:searchClass (with includeDerived assumed to be false),

All known implementing classes:

- SimpleContainer

Namespace: Rygel
Package: librygel-server

## Content:

### Properties:

- public abstract ArrayList<string> search_classes { get; set; }

### Methods:

- public async MediaObject? find_object (string id, Cancellable? cancellable) throws Error
  Recursively searches for media object with the given id in this container.
- public abstract async MediaObjects? search (SearchExpression? expression, uint offset, uint max_count, string sort_criteria, Cancellable? cancellable, out uint total_matches) throws Error
  Recursively searches for all media objects that satisfy the given search expression in this container.
- public async MediaObjects? simple_search (SearchExpression? expression, uint offset, uint max_count, string sort_criteria, Cancellable? cancellable, out uint total_matches) throws Error
  Utility method that retrieves all children and recursively searches for all media objects that satisfy the given search expression in this container.

### Inherited Members:

All known members inherited from class Rygel.MediaContainer

- ALBUM_SORT_CRITERIA
- ANY
- MUSIC_ALBUM
- MUSIC_ARTIST
- MUSIC_GENRE
- PLAYLIST
- STORAGE_FOLDER
- UPNP_CLASS
- all_child_count

- child_count
- constructed
- container_updated
- create_mode_enabled
- create_stream_source_for_resource
- empty_child_count
- equal_func
- find_object
- get_children

- ocm_flags
- serialize
- sort_criteria
- storage_used
- sub_tree_updates_finished
- total_deleted_child_count
- update_id
- updated

All known members inherited from class Rygel.MediaObject

- add_uri
- apply_replacements
- artist
- compare_int_props
- compare_string_props
- constructed
- create_stream_source_for_resource
- creator
- date
- genre

- get_primary_uri
- get_resource_by_name
- get_resource_list
- get_uris
- get_writable
- get_writables
- id
- modified
- object_update_id

- ocm_flags
- parent
- parent_ptr
- parent_ref
- ref_id
- serialize
- serialize_resource_list
- title
- upnp_class

All known members inherited from class GLib.Object

- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data

- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer

- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref