Rabbit Remote Control 0.0.30
Loading...
Searching...
No Matches
ParameterFreeRDP.h
1#ifndef CPARAMETERFREERDP_H
2#define CPARAMETERFREERDP_H
3
4#include "ParameterBase.h"
5#include "ParameterProxy.h"
6#include "freerdp/freerdp.h"
7
11{
12 Q_OBJECT
13 Q_PROPERTY(bool RedirectionPrinter READ GetRedirectionPrinter WRITE SetRedirectionPrinter NOTIFY sigRedirectionPrinterChanged)
14 Q_PROPERTY(UINT ReconnectInterval READ GetReconnectInterval WRITE SetReconnectInterval NOTIFY sigReconnectIntervalChanged)
15 Q_PROPERTY(RedirecionSoundType RedirectionSound READ GetRedirectionSound WRITE SetRedirectionSound NOTIFY sigRedirectionSoundChanged)
16 Q_PROPERTY(QString RedirectionSoundParameters READ GetRedirectionSoundParameters WRITE SetRedirectionSoundParameters NOTIFY sigRedirectionSoundParametersChanged)
17 Q_PROPERTY(bool RedirectionMicrophone READ GetRedirectionMicrophone WRITE SetRedirectionMicrophone NOTIFY sigRedirectionMicrophoneChanged)
18 Q_PROPERTY(QStringList RedirectionDrives READ GetRedirectionDrives WRITE SetRedirectionDrives NOTIFY sigRedirectionDrivesChanged)
19
20public:
21 explicit CParameterFreeRDP(QObject *parent = nullptr);
22
23 // CParameter interface
24 virtual int OnLoad(QSettings &set) override;
25 virtual int OnSave(QSettings &set) override;
26
27public:
28
29 void SetDomain(const QString& szDomain);
30 const QString GetDomain() const;
31
32 UINT32 GetDesktopWidth() const;
33 int SetDesktopWidth(UINT32 nWidth);
34
35 UINT32 GetDesktopHeight() const;
36 int SetDesktopHeight(UINT32 nHeight);
37
38 UINT32 GetColorDepth() const;
39 int SetColorDepth(UINT32 color);
40
41 bool GetUseMultimon() const;
42 int SetUseMultimon(bool bUse);
43
44 UINT GetReconnectInterval() const;
45 void SetReconnectInterval(UINT newReconnectInterval);
46
47 bool GetShowVerifyDiaglog() const;
48 void SetShowVerifyDiaglog(bool bShow);
49
50 enum class RedirecionSoundType {
51 Disable,
52 Local,
53 Remote
54 };
55 RedirecionSoundType GetRedirectionSound() const;
56 void SetRedirectionSound(RedirecionSoundType newRedirectionSound);
57 bool GetRedirectionMicrophone() const;
58 void SetRedirectionMicrophone(bool newRedirectionMicrophone);
59 QStringList GetRedirectionDrives() const;
60 void SetRedirectionDrives(const QStringList &newRedirectionDrive);
61
62 bool GetRedirectionPrinter() const;
63 void SetRedirectionPrinter(bool newRedirectionPrinter);
64
65 const QString &GetRedirectionSoundParameters() const;
66 void SetRedirectionSoundParameters(const QString &newRedirectionSoundParameters);
67
68 const QString &GetRedirectionMicrophoneParameters() const;
69 void SetRedirectionMicrophoneParameters(const QString &newRedirectionMicrophoneParameters);
70
71 CParameterProxy m_Proxy;
72
73signals:
74 void sigReconnectIntervalChanged();
75
76 void sigRedirectionSoundChanged(RedirecionSoundType RedirectionSound);
77 void sigRedirectionSoundParametersChanged();
78 void sigRedirectionMicrophoneChanged(bool RedirectionMicrophone);
79 void sigRedirectionMicrophoneParametersChanged();
80 void sigRedirectionDrivesChanged(QStringList RedirectionDrive);
81 void sigRedirectionPrinterChanged(bool RedirectionPrinter);
82
83private:
84 QString m_szDomain;
85
86 UINT32 m_nWidth;
87 UINT32 m_nHeight;
88
89 UINT32 m_nColorDepth;
90 bool m_bUseMultimon;
91
92 UINT32 m_nReconnectInterval; // Unit: second
93 bool m_bShowVerifyDiaglog;
94
95 bool m_bRedirectionPrinter;
96 RedirecionSoundType m_nRedirectionSound;
97 QString m_szRedirectionSoundParameters;
98 bool m_bRedirectionMicrophone;
99 QString m_szRedirectionMicrophoneParameters;
100 QStringList m_lstRedirectionDrives;
101 Q_PROPERTY(QString RedirectionMicrophoneParameters READ GetRedirectionMicrophoneParameters WRITE SetRedirectionMicrophoneParameters NOTIFY sigRedirectionMicrophoneParametersChanged)
102
103};
104
105#endif // CPARAMETERFREERDP_H
The interface of connecter parameters.
[Declare CParameterFreeRDP]
The proxy parameters.