7#include <QLoggingCategory>
9#include "PluginClient.h"
10#include "RabbitCommonTools.h"
12static Q_LOGGING_CATEGORY(log,
"Client.Plugin")
19 qDebug(log) <<
"CPluginClient::~CPluginClient()";
21 RabbitCommon::CTools::Instance()->RemoveTranslator(m_Translator);
27 m_Translator = RabbitCommon::CTools::Instance()->InstallTranslator(
29 RabbitCommon::CTools::TranslationType::Plugin,
47const QIcon CPluginClient::Icon()
const
49 return QIcon::fromTheme(
"network-wired");
virtual const QString Details() const
Display more information in About dialog or log.
virtual const QString Id() const
ID. Default: Protocol() + ":" + Name()
virtual const QString DisplayName() const
The plugin display name.
virtual const QString Name() const =0
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...
Q_INVOKABLE int InitTranslator()
Initialize the translation resource, which is only called by CClient.
virtual const QString Protocol() const =0
Plugin Protocol.
virtual ~CPluginClient()
When the derived class is implemented, the resources are clean are unloaded here.