|
Albert
|
#include <QObject>#include <QString>#include <albert/config.h>#include <albert/export.h>#include <filesystem>#include <memory>#include <vector>Go to the source code of this file.
Classes | |
| class | albert::PluginInstance |
| Abstract plugin instance class. More... | |
Namespaces | |
| namespace | albert |
| Albert core interface namespace. | |
Macros | |
| #define | ALBERT_PLUGIN Q_OBJECT Q_PLUGIN_METADATA(IID ALBERT_PLUGIN_IID FILE "metadata.json") |
| Declare a class as native 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.
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.