| 8 | static Q_LOGGING_CATEGORY(log, "BackendThread") |
| 9 | |
| 10 | CBackendThread::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 | |
| 27 | CBackendThread::~CBackendThread() |
| 28 | { |
nothing calls this directly
no outgoing calls
no test coverage detected