Albert
|
#include <plugininstance.h>
Abstract plugin instance class.
The base class every plugin has to inherit.
Public Member Functions | |
PluginInstance () | |
QString | id () const |
The plugin identifier. More... | |
QString | name () const |
The human readable plugin name. More... | |
QString | description () const |
Brief description of the plugin. More... | |
QDir | cacheDir () const |
The recommended cache location. More... | |
QDir | configDir () const |
The recommended config location. More... | |
QDir | dataDir () const |
The recommended data location. More... | |
std::unique_ptr< QSettings > | settings () const |
Persistent plugin settings utilizing QSettings. More... | |
std::unique_ptr< QSettings > | state () const |
Persistent plugin state utilizing QSettings. More... | |
virtual void | initialize (ExtensionRegistry ®istry, std::map< QString, PluginInstance * > dependencies) |
The initialization function. More... | |
virtual void | finalize (ExtensionRegistry ®istry) |
The finalization function. More... | |
virtual QWidget * | buildConfigWidget () |
Config widget factory. More... | |
Protected Member Functions | |
virtual | ~PluginInstance () |
albert::PluginInstance::PluginInstance | ( | ) |
|
protectedvirtual |
|
virtual |
Config widget factory.
QDir albert::PluginInstance::cacheDir | ( | ) | const |
The recommended cache location.
Created if necessary.
QDir albert::PluginInstance::configDir | ( | ) | const |
The recommended config location.
Created if necessary.
QDir albert::PluginInstance::dataDir | ( | ) | const |
The recommended data location.
Created if necessary.
QString albert::PluginInstance::description | ( | ) | const |
Brief description of the plugin.
Taken from the metadata.
|
virtual |
The finalization function.
registry | The extension registry. |
Reimplemented in albert::plugin::ExtensionPlugin.
QString albert::PluginInstance::id | ( | ) | const |
The plugin identifier.
Taken from the metadata.
|
virtual |
The initialization function.
registry | The extension registry. |
instances | The dependencies of the plugin. |
Reimplemented in albert::plugin::ExtensionPlugin.
QString albert::PluginInstance::name | ( | ) | const |
The human readable plugin name.
Taken from the metadata.
std::unique_ptr< QSettings > albert::PluginInstance::settings | ( | ) | const |
Persistent plugin settings utilizing QSettings.
Configured to use a section titled <plugin-id>.
std::unique_ptr< QSettings > albert::PluginInstance::state | ( | ) | const |
Persistent plugin state utilizing QSettings.
Configured to use a section titled <plugin-id>.