Albert
Loading...
Searching...
No Matches
plugininstance.h File Reference
#include <QDir>
#include <QString>
#include <albert/config.h>
#include <albert/export.h>
#include <memory>
Include dependency graph for plugininstance.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  albert::PluginInstance
 Abstract plugin instance class. More...
 

Namespaces

namespace  albert
 

Macros

#define ALBERT_PLUGIN   Q_OBJECT Q_PLUGIN_METADATA(IID ALBERT_PLUGIN_IID FILE "metadata.json")
 Declare a class as native Albert plugin.
 

Macro Definition Documentation

◆ ALBERT_PLUGIN

#define ALBERT_PLUGIN   Q_OBJECT Q_PLUGIN_METADATA(IID ALBERT_PLUGIN_IID FILE "metadata.json")

Declare a class as native Albert plugin.

Sets the interface identifier to #ALBERT_PLUGIN_IID and uses the metadata file named 'metadata.json' located at CMAKE_CURRENT_SOURCE_DIR.

Note
This macro has to be put into the plugin class body. The class this macro appears on must be default-constructible, inherit QObject and contain the Q_OBJECT macro. There should be exactly one occurrence of this macro in the source code for a plugin.