Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ConnecterFreeRDP.cpp
1// Author: Kang Lin <kl222@126.com>
2
3#include "ConnecterFreeRDP.h"
4#include "ConnectFreeRDP.h"
5#include "DlgSetFreeRDP.h"
6#include <QInputDialog>
7#include <QLoggingCategory>
8
9static Q_LOGGING_CATEGORY(log, "FreeRDP.Connecter")
12 : CConnecterThread(plugin)
13{
14 qDebug(log) << Q_FUNC_INFO;
15 //WLog_SetLogLevel(WLog_GetRoot(), WLOG_TRACE);
16
17 // 在 freerdp_client_context_free 中释放
18 //m_ParameterFreeRdp.m_pSettings = freerdp_settings_new(0);
19}
21
23{
24 qDebug(log) << Q_FUNC_INFO;
25}
26
28{
29 return 0;
30}
31
33{
34 qDebug(log) << Q_FUNC_INFO;
35 int nRet = 0;
37 if(nRet) return nRet;
38 nRet = SetParameter(&m_ParameterFreeRdp);
39 return nRet;
40}
41
43{
44 qDebug(log) << Q_FUNC_INFO;
45 int nRet = 0;
47 return nRet;
48}
49
51{
52 return new CDlgSetFreeRDP(&m_ParameterFreeRdp, parent);
53}
54
56{
57 try{
58 CConnectFreeRDP* p = new CConnectFreeRDP(this);
59 return p;
60 } catch(...) {
61 qDebug(log) << Q_FUNC_INFO << "exception";
62 return nullptr;
63 }
64}
Connect interface.
Definition Connect.h:45
virtual CConnect * InstanceConnect() override
New connect.
virtual int Initial() override
Initial parameters and resource.
virtual qint16 Version() override
Version.
virtual ~CConnecterFreeRDP() override
[Set the parameter]
CParameterFreeRDP m_ParameterFreeRdp
[Initialize parameter]
virtual QDialog * OnOpenDialogSettings(QWidget *parent) override
Open settgins dialog.
virtual int Clean() override
Clean parameters and resource.
It starts a background thread by default.
virtual int Initial() override
Initial parameters and resource.
virtual int Clean() override
Clean parameters and resource.
The plugin interface.