#include <albert/pluginloader.h>
Inherits QObject.
Asynchronous plugin loader turning a physical plugin into a logical PluginInstance.
|
void | finished (QString info) |
| Emitted when the loading process finished.
|
|
◆ ~PluginLoader()
virtual albert::PluginLoader::~PluginLoader |
( |
| ) |
|
|
protectedvirtual |
◆ finished
void albert::PluginLoader::finished |
( |
QString |
info | ) |
|
|
signal |
Emitted when the loading process finished.
On success instance() returns a valid PluginInstance. info contains additional information about the finished loading proc instance() returns a nullptr, i.e. the plugin failed to load, info is interpreted as error message.
◆ instance()
◆ load()
virtual void albert::PluginLoader::load |
( |
| ) |
|
|
pure virtual |
◆ metadata()
virtual const PluginMetadata & albert::PluginLoader::metadata |
( |
| ) |
const |
|
pure virtual |
Returns the plugin metadata.
◆ path()
virtual QString albert::PluginLoader::path |
( |
| ) |
const |
|
pure virtual |
Returns the path to the plugin.
◆ unload()
virtual void albert::PluginLoader::unload |
( |
| ) |
|
|
pure virtual |
◆ current_loader
thread_local PluginLoader* albert::PluginLoader::current_loader |
|
static |
Used to set the plugin loader while plugin instatiation.
This avoids injection mechanisms and therefore reduces boilerplate for PluginInstance implementations. Implementations have to set this before calling the constructor of the plugin instance.
The documentation for this class was generated from the following file: