Albert
Loading...
Searching...
No Matches
albert::PluginLoader Class Referenceabstract

#include <albert/pluginloader.h>

Detailed Description

Plugin loader interface class.

Public Member Functions

virtual QString path () const =0
 The path to the plugin.
 
virtual const PluginMetaDatametaData () const =0
 The plugin metadata.
 
virtual void load ()=0
 Load the plugin.
 
virtual void unload ()=0
 Unload the plugin.
 
virtual PluginInstancecreateInstance ()=0
 The plugin instance.
 

Protected Member Functions

virtual ~PluginLoader ()
 

Constructor & Destructor Documentation

◆ ~PluginLoader()

virtual albert::PluginLoader::~PluginLoader ( )
protectedvirtual

Member Function Documentation

◆ createInstance()

virtual PluginInstance * albert::PluginLoader::createInstance ( )
pure virtual

The plugin instance.

Not called unless loaded. Creates an instance of the plugin if it does not exist.

Returns
The plugin instance.

◆ load()

virtual void albert::PluginLoader::load ( )
pure virtual

Load the plugin.

Called in a background thread. Expects the plugin to be loaded after this call.

Exceptions
std::exceptionin case of errors.

◆ metaData()

virtual const PluginMetaData & albert::PluginLoader::metaData ( ) const
pure virtual

The plugin metadata.

Returns
The plugin metadata.

◆ path()

virtual QString albert::PluginLoader::path ( ) const
pure virtual

The path to the plugin.

Returns
The path to the plugin.

◆ unload()

virtual void albert::PluginLoader::unload ( )
pure virtual

Unload the plugin.

Exceptions
std::exceptionin case of errors.

The documentation for this class was generated from the following file: