Registry
Object Hierarchy:
Description:
[ CCode ( type_id = "grl_registry_get_type ()" ) ]
public class Registry : Object
Content:
Static methods:
Creation methods:
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 given plugin
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
- @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