Wp.Plugin¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
|
Virtual Methods¶
- Inherited:
|
|
|
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/co |
The name of this plugin |
Signals¶
- Inherited:
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent_instance |
r |
Class Details¶
- class Wp.Plugin(**kwargs)¶
- Bases:
- Abstract:
Yes
- Structure:
Wp.Plugin
is a base class for objects that provide functionality to the WirePlumber daemon. Typically, a plugin is created within a module and then registered to make it available for use by the daemon. The daemon is responsible for callingWp.Object.activate
() on it after all modules have been loaded, the core is connected and the initial discovery of global objects is done. Being aWp.Object
subclass, the plugin inheritsWp.Object
's activation system. For most implementations, there is only need for activating one feature,Wp.PluginFeatures.ENABLED
, and this can be done by implementing only WpPluginClass::enable() and WpPluginClass::disable(). For more advanced plugins that need to have more features, you may implement directly the functions ofWp.ObjectClass
and ignore the ones ofWp.PluginClass
.- classmethod find(core, plugin_name)¶
- Parameters:
- Returns:
the plugin matching the lookup name
- Return type:
Looks up a plugin.
- do_disable() virtual¶
- do_enable(transition) virtual¶
- Parameters:
transition (
Wp.Transition
) –