3#include <QLoggingCategory>
4#include "OperateTemplateQtEvent.h"
5#include "PluginTemplateQtEvent.h"
7static Q_LOGGING_CATEGORY(log,
"TemplateQtEvent.Plugin")
11 qDebug(log) << Q_FUNC_INFO;
14CPluginTemplateQtEvent::~CPluginTemplateQtEvent()
16 qDebug(log) << Q_FUNC_INFO;
19const CPlugin::TYPE CPluginTemplateQtEvent::Type()
const
34 return "TemplateQtEvent";
40 return tr(
"TemplateQtEvent plugin");
45#ifdef TemplateQtEvent_VERSION
46 return TemplateQtEvent_VERSION;
52const QIcon CPluginTemplateQtEvent::Icon()
const
64COperate *CPluginTemplateQtEvent::OnCreateOperate(
const QString &szId)
67 qCritical(log) <<
"Invalid ID:" << szId;
The operate is not block.
The plugin has a background thread, and all backend of the operations run on this background thread.
The plugin has a background thread, and all backend of the operations run on this background thread.
virtual const QString Details() const override
Display more information in About dialog or log.
virtual const QString Description() const override
Plugin description.
virtual const QString Name() const override
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...
virtual const QString Protocol() const override
Plugin Protocol.
virtual const QString Version() const override
Version.
virtual const QString Id() const
ID. Default: Type() + ":" + Protocol() + ":" + Name()