Registry
Object Hierarchy:
Description:
Namespace: Grl
Package: grilo-0.3
Content:
Static methods:
- public static unowned Registry get_default ()
As the registry is designed to work as a singleton, this method is in charge of creating the only instance or returned it if it is already in memory.
Creation methods:
- protected Registry ()
Methods:
- public bool activate_all_plugins ()
Activate all the plugins loaded.
- public bool activate_plugin_by_id (string plugin_id) throws Error
Activates plugin identified by
plugin_id
. - public bool add_config (owned Config config) throws Error
Add a configuration for a plugin/source.
- public bool add_config_from_file (string config_file) throws Error
Load plugin configurations from a .
- public bool add_config_from_resource (string resource_path) throws Error
Load plugin configurations from a .
- public void add_directory (string path)
Set this path as part of default paths to load plugins.
- public List<KeyID> get_metadata_keys ()
Returns a list with all registered keys in system.
- public List<unowned Plugin> get_plugins (bool only_loaded)
This function will return all the available plugins in the this.
- public List<unowned Source> get_sources (bool ranked)
This function will return all the available sources in the this.
- public List<unowned Source> get_sources_by_operations (SupportedOps ops, bool ranked)
Give an array of all the available sources in the this capable of perform the operations requested in
ops
. - public bool load_all_plugins (bool activate) throws Error
Load all the modules available in the default directory path.
- public bool load_plugin (string library_filename) throws Error
Loads a module from shared object file stored in
path
- public bool load_plugin_directory (string path) throws Error
Loads a set of modules from directory in
path
which contains a group shared object files. - public KeyID lookup_metadata_key (string key_name)
Look up for the metadata key with name
key_name
. - public unowned string lookup_metadata_key_desc (KeyID key)
Returns
key
description. - public unowned string lookup_metadata_key_name (KeyID key)
Returns
key
name. - public unowned List<KeyID> lookup_metadata_key_relation (KeyID key)
Look up the list of keys that have a relation with
key
. - public Type lookup_metadata_key_type (KeyID key)
Returns
key
expected value type. - public unowned Plugin lookup_plugin (string plugin_id)
This function will search and retrieve a plugin given its identifier.
- public unowned Source lookup_source (string source_id)
This function will search and retrieve a source given its identifier.
- public bool metadata_key_validate (KeyID key, Value value)
Validates
value
content complies with the key specification. - public KeyID register_metadata_key (owned ParamSpec param_spec, KeyID bind_key) throws Error
Registers a new metadata key, creating a relation between the new key and
bind_key
. - public bool register_source (Plugin plugin, owned Source source) throws Error
Register a
source
in the this with the givenplugin
information - public bool unload_plugin (string plugin_id) throws Error
Unload from memory a module identified by
plugin_id
. - public bool unregister_source (Source source) throws Error
Removes the
source
from the this hash table
Signals:
- public signal void metadata_key_added (string key)
Signals that a new metadata key has been registered.
- public signal void source_added (Source source)
Signals that a source has been added to the registry.
- public signal void source_removed (Source source)
Signals that a source has been removed from the registry.
Inherited Members:
All known members inherited from class GLib.Object