Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
PluginThread.cpp
1#include "PluginThread.h"
2#include "ManageConnect.h"
3
4#include <QLoggingCategory>
5
6static Q_LOGGING_CATEGORY(log, "Client.Plugin.Thread")
7
8CPluginThread::CPluginThread(QObject *parent)
9 : QThread(parent)
10{}
11
12CPluginThread::~CPluginThread()
13{
14 qDebug(log) << "CConnecterThread::~CConnecterThread()";
15}
16
23{
24 qDebug(log) << "CConnecterThread::run() start";
26 bool check = false;
27 check = connect(this, SIGNAL(sigConnect(CConnecterConnect*)),
28 &mc, SLOT(slotConnect(CConnecterConnect*)));
29 Q_ASSERT(check);
30 check = connect(this, SIGNAL(sigDisconnect(CConnecterConnect*)),
31 &mc, SLOT(slotDisconnect(CConnecterConnect*)));
32 Q_ASSERT(check);
33
34 exec();
35 qDebug(log) << "CConnecterThread::run() end";
36}
The connector interface of the plug-in, which is only used by the plug-in.
Manage CConnecter.
One thread handles multiple CConnecterConnect.
virtual void run() override
One thread handles multiple CConnecter.