Class
PeasEngine
Description [src]
final class Peas.Engine : GObject.Object
implements Gio.ListModel {
/* No available fields */
}
The PeasEngine
is the object which manages the plugins.
Its role is twofold:
- it will fetch all the information about the available plugins from all the registered plugin directories;
- it will provide you an API to load, control and unload your plugins and their extensions from within your application.
Constructors
peas_engine_new_with_nonglobal_loaders
Return a new instance of PeasEngine
which will use non-global
plugin loaders instead of the default global ones.
Instance methods
peas_engine_create_extension
If the plugin identified by info
implements the extension_type
,
then this function will return a new instance of this implementation.
peas_engine_create_extension_valist
If the plugin identified by info
implements the extension_type
,
then this function will return a new instance of this implementation.
peas_engine_create_extension_with_properties
If the plugin identified by info
implements the extension_type
,
then this function will return a new instance of this implementation.
peas_engine_garbage_collect
Triggers garbage collection on all the loaders currently owned by the
PeasEngine
.
peas_engine_get_plugin_info
Gets the PeasPluginInfo
corresponding with plugin_name
,
or NULL
if plugin_name
was not found.
Methods inherited from GListModel (5)
g_list_model_get_item
Get the item at position
.
g_list_model_get_item_type
Gets the type of the items in list
.
g_list_model_get_n_items
Gets the number of items in list
.
g_list_model_get_object
Get the item at position
.
g_list_model_items_changed
Emits the GListModel::items-changed
signal on list
.
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Signals inherited from GListModel (1)
GListModel::items-changed
This signal is emitted whenever items were added to or removed
from list
. At position
, removed
items were removed and added
items were added in their place.