7#include <albert/export.h>
8#include <albert/plugin.h>
83 [[nodiscard]] std::unique_ptr<QSettings>
settings()
const;
90 [[nodiscard]] std::unique_ptr<QSettings>
state()
const;
106 std::unique_ptr<Private> d;
Abstract plugin instance class.
Definition plugininstance.h:31
const PluginLoader & loader() const
Returns the loader of this plugin.
std::vector< std::filesystem::path > dataLocations() const
Returns the existing data locations for this plugin.
void initialized()
Emitted when the plugin has completed initialization.
virtual void initialize()
Triggers the asynchronous initialization.
std::unique_ptr< QSettings > state() const
Creates a preconfigured QSettings object for plugin state data.
virtual ~PluginInstance()
Destructs the plugin instance.
std::filesystem::path dataLocation() const
Returns the writable data location for this plugin.
std::unique_ptr< QSettings > settings() const
Creates a preconfigured QSettings object for plugin config data.
PluginInstance()
Constructs a plugin instance.
std::filesystem::path cacheLocation() const
Returns the writable cache location for this plugin.
virtual QWidget * buildConfigWidget()
Creates a widget that can be used to configure the plugin properties.
std::filesystem::path configLocation() const
Returns the writable config location for this plugin.
virtual std::vector< albert::Extension * > extensions()
Returns the extensions provided by this plugin.
Asynchronous plugin loader.
Definition pluginloader.h:34