10class CParameterFreeRDP :
public CParameterDesktop
14 Q_PROPERTY(
bool RedirectionPrinter READ GetRedirectionPrinter WRITE SetRedirectionPrinter NOTIFY sigRedirectionPrinterChanged)
15 Q_PROPERTY(UINT ReconnectInterval READ GetReconnectInterval WRITE SetReconnectInterval NOTIFY sigReconnectIntervalChanged)
16 Q_PROPERTY(RedirecionSoundType RedirectionSound READ GetRedirectionSound WRITE SetRedirectionSound NOTIFY sigRedirectionSoundChanged)
17 Q_PROPERTY(QString RedirectionSoundParameters READ GetRedirectionSoundParameters WRITE SetRedirectionSoundParameters NOTIFY sigRedirectionSoundParametersChanged)
18 Q_PROPERTY(
bool RedirectionMicrophone READ GetRedirectionMicrophone WRITE SetRedirectionMicrophone NOTIFY sigRedirectionMicrophoneChanged)
19 Q_PROPERTY(QStringList RedirectionDrives READ GetRedirectionDrives WRITE SetRedirectionDrives NOTIFY sigRedirectionDrivesChanged)
22 explicit CParameterFreeRDP(QObject *parent =
nullptr);
24 static QRect GetScreenGeometry();
27 virtual int OnLoad(QSettings &set)
override;
28 virtual int OnSave(QSettings &set)
override;
32 void SetDomain(
const QString& szDomain);
33 const QString GetDomain()
const;
35 UINT32 GetDesktopWidth()
const;
36 int SetDesktopWidth(UINT32 nWidth);
38 UINT32 GetDesktopHeight()
const;
39 int SetDesktopHeight(UINT32 nHeight);
41 UINT32 GetColorDepth()
const;
42 int SetColorDepth(UINT32 color);
44 bool GetUseMultimon()
const;
45 int SetUseMultimon(
bool bUse);
47 UINT GetReconnectInterval()
const;
48 void SetReconnectInterval(UINT newReconnectInterval);
50 bool GetShowVerifyDiaglog()
const;
51 void SetShowVerifyDiaglog(
bool bShow);
53 enum class RedirecionSoundType {
58 Q_ENUM(RedirecionSoundType)
59 RedirecionSoundType GetRedirectionSound()
const;
60 void SetRedirectionSound(RedirecionSoundType newRedirectionSound);
61 bool GetRedirectionMicrophone()
const;
62 void SetRedirectionMicrophone(
bool newRedirectionMicrophone);
63 QStringList GetRedirectionDrives()
const;
64 void SetRedirectionDrives(
const QStringList &newRedirectionDrive);
66 bool GetRedirectionPrinter()
const;
67 void SetRedirectionPrinter(
bool newRedirectionPrinter);
69 const QString &GetRedirectionSoundParameters()
const;
70 void SetRedirectionSoundParameters(
const QString &newRedirectionSoundParameters);
72 const QString &GetRedirectionMicrophoneParameters()
const;
73 void SetRedirectionMicrophoneParameters(
const QString &newRedirectionMicrophoneParameters);
75 bool GetNegotiateSecurityLayer()
const;
76 void SetNegotiateSecurityLayer(
bool newNegotiateSecurityLayer);
86 Security GetSecurity()
const;
87 void SetSecurity(Security newSecurity);
89 UINT16 GetTlsVersion()
const;
90 void SetTlsVersion(UINT16 newTlsVersion);
92 UINT32 GetConnectType()
const;
93 void SetConnectType(UINT32 newConnectType);
95 UINT32 GetPerformanceFlags()
const;
96 void SetPerformanceFlags(UINT32 newPerformanceFlags);
99 void sigReconnectIntervalChanged();
101 void sigRedirectionSoundChanged(RedirecionSoundType RedirectionSound);
102 void sigRedirectionSoundParametersChanged();
103 void sigRedirectionMicrophoneChanged(
bool RedirectionMicrophone);
104 void sigRedirectionMicrophoneParametersChanged();
105 void sigRedirectionDrivesChanged(QStringList RedirectionDrive);
106 void sigRedirectionPrinterChanged(
bool RedirectionPrinter);
114 UINT32 m_nColorDepth;
117 UINT32 m_nReconnectInterval;
118 bool m_bShowVerifyDiaglog;
120 bool m_bRedirectionPrinter;
121 RedirecionSoundType m_nRedirectionSound;
122 QString m_szRedirectionSoundParameters;
123 bool m_bRedirectionMicrophone;
124 QString m_szRedirectionMicrophoneParameters;
125 QStringList m_lstRedirectionDrives;
126 Q_PROPERTY(QString RedirectionMicrophoneParameters READ GetRedirectionMicrophoneParameters WRITE SetRedirectionMicrophoneParameters NOTIFY sigRedirectionMicrophoneParametersChanged)
128 bool m_bNegotiateSecurityLayer;
132 UINT32 m_ConnectType;
133 UINT32 m_PerformanceFlags;