Rabbit Remote Control 0.1.0-bate10
Loading...
Searching...
No Matches
PluginThread.cpp
1// Author: Kang Lin <kl222@126.com>
2
3#include "PluginThread.h"
4#include "ManageBackend.h"
5
6#include <QLoggingCategory>
7
8static Q_LOGGING_CATEGORY(log, "Client.Plugin.Thread")
9
10CPluginThread::CPluginThread(QObject *parent)
11 : QThread(parent)
12{
13 qDebug(log) << Q_FUNC_INFO;
14}
15
16CPluginThread::~CPluginThread()
17{
18 qDebug(log) << Q_FUNC_INFO;
19}
20
26{
27 qDebug(log) << "CPluginThread::run() start";
29 bool check = false;
30 check = connect(this, SIGNAL(sigNewBackend(COperate*)),
31 &mb, SLOT(slotNewBackend(COperate*)));
32 Q_ASSERT(check);
33 check = connect(this, SIGNAL(sigDeleteBackend(COperate*)),
34 &mb, SLOT(slotDeleteBackend(COperate*)));
35 Q_ASSERT(check);
36
37 exec();
38 qDebug(log) << "CPluginThread::run() end";
39}
Manage the backend of operate.
Operate interface.
Definition Operate.h:51
One thread handles multiple operate.
virtual void run() override
One thread handles multiple operate.