1 Star 0 Fork 50

常用工具/RabbitRemoteControl

forked from kl222/RabbitRemoteControl 
加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
PluginThread.cpp 955 Bytes
一键复制 编辑 原始数据 按行查看 历史
kl222 提交于 2024-09-29 16:25 +08:00 . Client: add CParameterUI
#include "PluginThread.h"
#include "ManageConnect.h"
#include <QLoggingCategory>
static Q_LOGGING_CATEGORY(log, "Client.Plugin.Thread")
CPluginThread::CPluginThread(QObject *parent)
: QThread(parent)
{}
CPluginThread::~CPluginThread()
{
qDebug(log) << "CConnecterThread::~CConnecterThread()";
}
/*!
* \brief One thread handles multiple CConnecter.
* Register sigConnect and sigDisconnect, then enter event loop.
*
*/
void CPluginThread::run()
{
qDebug(log) << "CConnecterThread::run() start";
CManageConnect mc;
bool check = false;
check = connect(this, SIGNAL(sigConnect(CConnecterConnect*)),
&mc, SLOT(slotConnect(CConnecterConnect*)));
Q_ASSERT(check);
check = connect(this, SIGNAL(sigDisconnect(CConnecterConnect*)),
&mc, SLOT(slotDisconnect(CConnecterConnect*)));
Q_ASSERT(check);
exec();
qDebug(log) << "CConnecterThread::run() end";
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/common-tools/RabbitRemoteControl.git
git@gitee.com:common-tools/RabbitRemoteControl.git
common-tools
RabbitRemoteControl
RabbitRemoteControl
master

搜索帮助