7#include <albert/config.h>
8#include <albert/export.h>
16class ExtensionRegistry;
74 std::unique_ptr<QSettings>
state()
const;
84 std::unique_ptr<Private> d;
101#define ALBERT_PLUGIN Q_OBJECT Q_PLUGIN_METADATA(IID ALBERT_PLUGIN_IID FILE "metadata.json")
The common extension pool.
Definition extensionregistry.h:23
Abstract plugin instance class.
Definition plugininstance.h:25
const PluginLoader & loader() const
The PluginLoader of this instance.
QString dataLocation() const
The recommended data location.
std::unique_ptr< QSettings > state() const
Persistent plugin state.
virtual ~PluginInstance()
QString cacheLocation() const
The recommended cache location.
std::unique_ptr< QSettings > settings() const
Persistent plugin settings.
virtual QWidget * buildConfigWidget()
The widget used to configure the plugin in the settings.
static QDir createOrThrow(const QString &path)
Creates a directory, throws an exception if it fails.
albert::ExtensionRegistry & registry()
The associated ExtensionRegistry.
QString configLocation() const
The recommended config location.
Plugin loader interface class.
Definition pluginloader.h:17