#include <QDir>
#include <QString>
#include <albert/config.h>
#include <albert/export.h>
#include <memory>
Go to the source code of this file.
|
#define | ALBERT_PLUGIN Q_OBJECT Q_PLUGIN_METADATA(IID ALBERT_PLUGIN_IID FILE "metadata.json") |
| Declare a class as native Albert plugin.
|
|
◆ 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.