同步操作将从 kl222/RabbitRemoteControl 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#include "PluginClientThread.h"#include <QLoggingCategory>static Q_LOGGING_CATEGORY(log, "Client.Plugin.Thread")CPluginClientThread::CPluginClientThread(QObject *parent): CPluginClient(parent),m_pThread(nullptr){m_pThread = new CPluginThread(); // Note that the parent object pointer cannot be set here.if(m_pThread){// The object is also deleted when the thread finishes executing.bool check = connect(m_pThread, SIGNAL(finished()),m_pThread, SLOT(deleteLater()));Q_ASSERT(check);m_pThread->start();}}CPluginClientThread::~CPluginClientThread(){qDebug(log) << "CPluginClientThread::~CPluginClientThread";if(m_pThread)m_pThread->quit(); // The don't deleteLater().// because of it is connected finished signal}CConnecter *CPluginClientThread::CreateConnecter(const QString &szProtocol, CParameterClient *para){qDebug(log) << "CPluginClientThread::CreateConnecter()" << szProtocol;CConnecter* p = CPluginClient::CreateConnecter(szProtocol, para);if(!p) return nullptr;CConnecterConnect* pConnecter = qobject_cast<CConnecterConnect*>(p);if(!pConnecter) {QString szMsg = "Must be derived from CConnecterConnect*, Current is ";szMsg += p->metaObject()->className();szMsg += ";\nThe super class:\n";auto super = p->metaObject()->superClass();int n = 1;while(super){szMsg += QString(2 * n++, ' ') + "- ";szMsg += super->className();super = super->superClass();}qCritical(log) << szMsg;Q_ASSERT(false);return nullptr;}if(nullptr == m_pThread){qDebug(log) << "The thread is nullptr";return nullptr;}bool check = connect(pConnecter, SIGNAL(sigOpenConnect(CConnecterConnect*)),m_pThread, SIGNAL(sigConnect(CConnecterConnect*)));Q_ASSERT(check);check = connect(pConnecter, SIGNAL(sigCloseconnect(CConnecterConnect*)),m_pThread, SIGNAL(sigDisconnect(CConnecterConnect*)));Q_ASSERT(check);return pConnecter;}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。