1#include "PluginClientThread.h"
3#include <QLoggingCategory>
5static Q_LOGGING_CATEGORY(log,
"Client.Plugin.Thread")
15 bool check = connect(m_pThread, SIGNAL(finished()),
16 m_pThread, SLOT(deleteLater()));
22CPluginClientThread::~CPluginClientThread()
24 qDebug(log) <<
"CPluginClientThread::~CPluginClientThread";
32 qDebug(log) <<
"CPluginClientThread::CreateConnecter()" << szProtocol;
34 if(!pConnecter)
return nullptr;
36 if(
nullptr == m_pThread)
38 qDebug(log) <<
"The thread is nullptr";
The connector interface of the plug-in, which is only used by the plug-in.
It starts a background thread by default.
virtual CConnecterConnect * OnCreateConnecter(const QString &szProtocol)=0
Create Connecter.
virtual CConnecter * CreateConnecter(const QString &szProtocol) override
New CConnecter instance.
One thread handles multiple CConnecterConnect.