Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
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.
The service plugin interface.