3#include "ConnecterVnc.h"
4#include "DlgSettingsVnc.h"
5#include "PluginClient.h"
9#include <QRegularExpression>
10#include <QLoggingCategory>
12static Q_LOGGING_CATEGORY(log,
"VNC.Connecter")
17 qDebug(log) << Q_FUNC_INFO;
20CConnecterVnc::~CConnecterVnc()
22 qDebug(log) << Q_FUNC_INFO;
29 QString szId =
Protocol() +
"_" + GetPlugClient()->
Name();
32 if(!m_Para.GetPeerUser().isEmpty())
33 szId += +
"_" + m_Para.GetPeerUser();
35 szId = szId.replace(QRegularExpression(
"[@:/#%!^&*\\.]"),
"_");
54 if(!m_Para.GetPeerUser().isEmpty())
55 return m_Para.GetPeerUser();
80 qDebug(log) << Q_FUNC_INFO;
84 nRet = SetParameter(&m_Para);
90 qDebug(log) << Q_FUNC_INFO;
virtual CParameterBase * GetParameter()
Get parameter.
virtual QString ServerName()
Current connect server name (remote desktop name, if not present, then IP:PORT).
It starts a background thread by default.
virtual int Initial() override
Initial parameters and resource.
virtual int Clean() override
Clean parameters and resource.
virtual qint16 Version() override
Version.
virtual QString ServerName() override
Current connect server name (remote desktop name, if not present, then IP:PORT).
virtual const QString Id() override
Identity.
virtual CConnect * InstanceConnect() override
New connect.
virtual int Clean() override
Clean parameters and resource.
virtual int Initial() override
Initial parameters and resource.
virtual QDialog * OnOpenDialogSettings(QWidget *parent=nullptr) override
Open settgins dialog.
virtual const QString Protocol() const
Protocol.
virtual const QString Id()
Identity.
virtual const QString Name() const =0
This name must be the same as the project name (${PROJECT_NAME}). The translation file (${PROJECT_NAM...