Rabbit Remote Control
0.1.0-bate14
Toggle main menu visibility
Loading...
Searching...
No Matches
Src
PluginThread.cpp
1
// Author: Kang Lin <kl222@126.com>
2
3
#include "PluginThread.h"
4
#include "ManageBackend.h"
5
6
#include <QLoggingCategory>
7
8
static
Q_LOGGING_CATEGORY(log,
"Client.Plugin.Thread"
)
9
10
CPluginThread
::
CPluginThread
(QObject *parent)
11
: QThread(parent)
12
{
13
qDebug(log) << Q_FUNC_INFO;
14
}
15
16
CPluginThread::~CPluginThread()
17
{
18
qDebug(log) << Q_FUNC_INFO;
19
}
20
25
void
CPluginThread::run
()
26
{
27
qDebug(log) <<
"CPluginThread::run() start"
;
28
CManageBackend
mb;
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
}
CManageBackend
Manage the backend of operate.
Definition
ManageBackend.h:19
COperate
Operate interface.
Definition
Operate.h:51
CPluginThread
One thread handles multiple operate.
Definition
PluginThread.h:20
CPluginThread::run
virtual void run() override
One thread handles multiple operate.
Definition
PluginThread.cpp:25
Author: Kang Lin (kl222@126.com)
Copyright (c) Kang Lin Studios All Rights Reserved