3#include "ConnectThread.h"
4#include <QLoggingCategory>
6static Q_LOGGING_CATEGORY(log,
"Client.ConnectThread")
14 m_pConnecter(pConnect)
17 check = connect(
this, SIGNAL(finished()),
18 this, SLOT(deleteLater()));
22CConnectThread::~CConnectThread()
24 qDebug(log) <<
"CConnectThread::~CConnectThread";
39 qDebug(log) << Q_FUNC_INFO <<
"start";
41 Q_ASSERT(m_pConnecter);
46 qCritical(log) <<
"InstanceConnect fail";
53 pConnect->deleteLater();
63 pConnect->deleteLater();
68 qDebug(log) << Q_FUNC_INFO <<
"end";
The class only is used by CConnecterThread.
virtual void run() override
virtual int Disconnect()
Disconnect.
virtual int Connect()
Start connect.
virtual CConnect * InstanceConnect()=0
New connect.
It starts a background thread by default.
void sigDisconnected()
Successful disconnection signal.
void sigDisconnect()
Notify the user to disconnect.