1#include "ManageConnect.h"
2#include <QLoggingCategory>
4static Q_LOGGING_CATEGORY(log,
"Client.MangeConnect")
9CManageConnect::~CManageConnect()
11 qDebug(log) <<
"CManageConnect::~CManageConnect()";
12 foreach(
auto pConnect, m_Connects)
14 pConnect->Disconnect();
15 pConnect->deleteLater();
22 qDebug(log) <<
"CManageConnect::slotConnect()";
26 qCritical(log) <<
"InstanceConnect fail";
31 m_Connects.insert(pConnecter, pConnect);
40 qDebug(log) <<
"CManageConnect::slotDisconnect()";
41 auto it = m_Connects.find(pConnecter);
42 if(m_Connects.end() == it)
return;
44 m_Connects.remove(pConnecter);
46 pConnect->deleteLater();
virtual int Disconnect()
Disconnect.
virtual int Connect()
Start connect.
The connector interface of the plug-in, which is only used by the plug-in.
virtual CConnect * InstanceConnect()=0
New connect.
void sigDisconnected()
Successful disconnection signal.
void sigDisconnect()
Notify the user to disconnect.