玉兔远程控制 0.0.31
载入中...
搜索中...
未找到
PluginServiceThread.cpp
1#include "PluginServiceThread.h"
2#include "ServiceThread.h"
3
4CPluginServiceThread::CPluginServiceThread(QObject *parent)
5 : CPluginService(parent)
6{}
7
8CPluginServiceThread::~CPluginServiceThread()
9{}
10
12{
13 if(!m_Thread)
14 {
15 m_Thread = QSharedPointer<CServiceThread>(new CServiceThread(this, this));
16 }
17
18 if(m_Thread)
19 m_Thread->start();
20}
21
22void CPluginServiceThread::Stop()
23{
24 if(m_Thread)
25 {
26 m_Thread->quit();
27 }
28}
virtual void Start() override
Default start a new thread to process Service
服务插件接口。此接口仅由插件实现。