Albert
|
#include <albert/plugininstance.h>
Abstract plugin instance class.
The class every plugin has to inherit.
Public Member Functions | |
virtual QWidget * | buildConfigWidget () |
The widget used to configure the plugin in the settings. | |
virtual std::vector< albert::Extension * > | extensions () |
The extensions provided by this plugin. | |
const PluginLoader & | loader () const |
The PluginLoader of this instance. | |
std::filesystem::path | cacheLocation () const |
The recommended cache location. | |
std::filesystem::path | configLocation () const |
The recommended config location. | |
std::filesystem::path | dataLocation () const |
The recommended data location. | |
std::vector< std::filesystem::path > | dataLocations () const |
The existing data locations of this plugin. | |
std::unique_ptr< QSettings > | settings () const |
Persistent plugin settings. | |
std::unique_ptr< QSettings > | state () const |
Persistent plugin state. | |
Protected Member Functions | |
PluginInstance () | |
virtual | ~PluginInstance () |
|
protected |
|
protectedvirtual |
|
virtual |
The widget used to configure the plugin in the settings.
std::filesystem::path albert::PluginInstance::cacheLocation | ( | ) | const |
The recommended cache location.
std::filesystem::path albert::PluginInstance::configLocation | ( | ) | const |
The recommended config location.
std::filesystem::path albert::PluginInstance::dataLocation | ( | ) | const |
The recommended data location.
std::vector< std::filesystem::path > albert::PluginInstance::dataLocations | ( | ) | const |
The existing data locations of this plugin.
|
virtual |
The extensions provided by this plugin.
Reimplemented in albert::ExtensionPlugin.
const PluginLoader & albert::PluginInstance::loader | ( | ) | const |
The PluginLoader of this instance.
std::unique_ptr< QSettings > albert::PluginInstance::settings | ( | ) | const |
Persistent plugin settings.
Preconfigured according to albert conventions, i.e. using albert::settings() configured to write to a section titled <plugin-id>.
std::unique_ptr< QSettings > albert::PluginInstance::state | ( | ) | const |
Persistent plugin state.
Preconfigured according to albert conventions, i.e. using albert::state() configured to write to a section titled <plugin-id>.