GOffice.Plugin¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
None
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Fields¶
- Inherited:
Class Details¶
- class GOffice.Plugin(**kwargs)¶
- Bases:
- Abstract:
No
- classmethod db_activate_plugin_list(plugins)¶
- Parameters:
plugins ([
GOffice.Plugin
]) – The list of plugins- Returns:
Pointer used to report errors
- Return type:
ret_error:
GOffice.ErrorInfo
Activates all plugins in the list. If some of the plugins cannot be activated, the function reports this via ret_error (errors don’t affect plugins activated successfully).
- classmethod db_deactivate_plugin_list(plugins, ret_error)¶
- Parameters:
plugins ([
GOffice.Plugin
]) – The list of pluginsret_error (
GOffice.ErrorInfo
) – Pointer used to report errors
Deactivates all plugins in the list. If some of the plugins cannot be deactivated, the function reports this via ret_error (errors don’t affect plugins deactivated successfully).
- classmethod services_shutdown()¶
- activate(ret_error)¶
- Parameters:
ret_error (
GOffice.ErrorInfo
) – Pointer used to report errors
Activates self together with all its dependencies. In case of error the plugin won’t be activated and detailed error information will be returned using ret_error.
- can_deactivate()¶
-
Tells if the plugin can be deactivated using
GOffice.Plugin.deactivate
.
- deactivate(ret_error)¶
- Parameters:
ret_error (
GOffice.ErrorInfo
) – Pointer used to report errors
Dectivates self. Its dependencies will NOT be automatically deactivated. In case of error the plugin won’t be deactivated and detailed error information will be returned using ret_error.
- get_dependencies_ids()¶
- Returns:
the list of identifiers of plugins that self depends on. All these plugins will be automatically activated before activating the self itself.
- Return type:
[
str
]
- get_description()¶
- get_dir_name()¶
- get_id()¶
- get_loader()¶
- Returns:
The loader.
- Return type:
- get_name()¶
- get_services()¶
- Returns:
A list of services. The list must not be freed or changed.
- Return type:
- get_textdomain()¶
- Returns:
plugin’s textdomain for use with textdomain(3) and d*gettext(3) functions.
- Return type:
- get_type_module()¶
- Returns:
the
GObject.TypeModule
associated with the plugin creating it if necessary.- Return type:
- init(cc)¶
- Parameters:
cc (
GOffice.CmdContext
) –
- load_service(service, ret_error)¶
- Parameters:
service (
GOffice.PluginService
) – Plugin serviceret_error (
GOffice.ErrorInfo
) – Pointer used to report errors
Loads base part of the plugin if it is not loaded and then loads given plugin service (prepares necessary part of the plugin for direct use). This function is intended for use by
GOffice.PluginService
objects.
- shutdown(cc)¶
- Parameters:
cc (
GOffice.CmdContext
) –
- unload_service(service, ret_error)¶
- Parameters:
service (
GOffice.PluginService
) – Plugin serviceret_error (
GOffice.ErrorInfo
) – Pointer used to report errors
… This function is intended for use by
GOffice.PluginService
objects.
- use_ref()¶
- use_unref()¶
Signal Details¶
- GOffice.Plugin.signals.can_deactivate_changed(plugin)¶
- Signal Name:
can-deactivate-changed
- Flags:
- Parameters:
plugin (
GOffice.Plugin
) – The object which received the signal
- GOffice.Plugin.signals.state_changed(plugin)¶
- Signal Name:
state-changed
- Flags:
- Parameters:
plugin (
GOffice.Plugin
) – The object which received the signal