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

Method CBackendThread

Src/BackendThread.cpp:10–25  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8static Q_LOGGING_CATEGORY(log, "BackendThread")
9
10CBackendThread::CBackendThread(COperate *pOperate, bool bFinishedSignal)
11 // Note that the parent object pointer cannot be set here.
12 // If set the parent, the object is also deleted
13 // when the parent object (CConnecterThread) is destroyed.
14 // Because it is deleted when it is finished.
15 : QThread()
16 , m_pOperate(pOperate)
17 , m_pBackend(nullptr)
18 , m_bFinishedSignal(bFinishedSignal)
19{
20 qDebug(log) << Q_FUNC_INFO;
21 bool check = false;
22 check = connect(this, SIGNAL(finished()),
23 this, SLOT(deleteLater()));
24 Q_ASSERT(check);
25}
26
27CBackendThread::~CBackendThread()
28{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected