服务插件接口。此接口仅由插件实现。
更多...
#include <PluginService.h>
|
| CPluginService (QObject *parent=nullptr) |
|
virtual const QString | Id () const |
| ID. Default: Protocol() + "_" + Name()
|
|
virtual const QString | Protocol () const =0 |
| Plugin Protocol
|
|
virtual const QString | Name () const =0 |
| 插件名,这个名一定要与工程名(${PROJECT_NAME})相同。 翻译文件(${PROJECT_NAME}_*.ts))名与其相关。
|
|
virtual const QString | DisplayName () const |
| The plugin display name
|
|
virtual const QString | Description () const =0 |
| 插件描述
|
|
virtual const QIcon | Icon () const |
|
virtual void | Start () |
| Start a Service
|
|
virtual void | Stop () |
|
virtual CService * | NewService ()=0 |
| New service
|
|
int | InitTranslator () |
|
◆ CPluginService()
CPluginService::CPluginService |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
◆ ~CPluginService()
CPluginService::~CPluginService |
( |
| ) |
|
|
virtual |
◆ Description()
virtual const QString CPluginService::Description |
( |
| ) |
const |
|
pure virtual |
◆ DisplayName()
const QString CPluginService::DisplayName |
( |
| ) |
const |
|
virtual |
◆ Icon()
const QIcon CPluginService::Icon |
( |
| ) |
const |
|
virtual |
◆ Id()
const QString CPluginService::Id |
( |
| ) |
const |
|
virtual |
◆ InitTranslator()
int CPluginService::InitTranslator |
( |
| ) |
|
◆ Name()
virtual const QString CPluginService::Name |
( |
| ) |
const |
|
pure virtual |
◆ NewService()
virtual CService * CPluginService::NewService |
( |
| ) |
|
|
pure virtual |
◆ Protocol()
virtual const QString CPluginService::Protocol |
( |
| ) |
const |
|
pure virtual |
◆ Start()
void CPluginService::Start |
( |
| ) |
|
|
virtual |
◆ Stop()
void CPluginService::Stop |
( |
| ) |
|
|
virtual |
◆ m_Service
QSharedPointer<CService> CPluginService::m_Service |
|
private |
◆ m_Translator
QTranslator CPluginService::m_Translator |
|
private |
该类的文档由以下文件生成:
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Service/PluginService.h
- /home/runner/work/RabbitRemoteControl/RabbitRemoteControl/Service/PluginService.cpp