MCPcopy Create free account
hub / github.com/KangLin/RabbitRemoteControl / CPluginClientThread

Method CPluginClientThread

Src/PluginClientThread.cpp:7–20  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

5static Q_LOGGING_CATEGORY(log, "Client.Plugin.Thread")
6
7CPluginClientThread::CPluginClientThread(QObject *parent)
8 : CPluginClient(parent),
9 m_pThread(nullptr)
10{
11 m_pThread = new CPluginThread(); // Note that the parent object pointer cannot be set here.
12 if(m_pThread)
13 {
14 // The object is also deleted when the thread finishes executing.
15 bool check = connect(m_pThread, SIGNAL(finished()),
16 m_pThread, SLOT(deleteLater()));
17 Q_ASSERT(check);
18 m_pThread->start();
19 }
20}
21
22CPluginClientThread::~CPluginClientThread()
23{

Callers

nothing calls this directly

Calls 1

startMethod · 0.80

Tested by

no test coverage detected