玉兔远程控制 0.0.31
载入中...
搜索中...
未找到
ParameterVnc.h
1#ifndef CPARAMETERVNC_H
2#define CPARAMETERVNC_H
3
4#include "ParameterBase.h"
5#include "ParameterNet.h"
6
8{
9 Q_OBJECT
10
11public:
12 explicit CParameterVnc(QObject *parent = nullptr);
13
14public:
15
21 virtual bool OnCheckValidity() override;
22
23 enum COLOR_LEVEL {
24 Full,
25 Medium,
26 Low,
27 VeryLow
28 };
29
30 bool GetShared() const;
31 void SetShared(bool newShared);
32
33 bool GetBufferEndRefresh() const;
34 void SetBufferEndRefresh(bool newBufferEndRefresh);
35
36 bool GetAutoSelect() const;
37 void SetAutoSelect(bool newAutoSelect);
38
39 COLOR_LEVEL GetColorLevel() const;
40 void SetColorLevel(COLOR_LEVEL newColorLevel);
41
42 int GetPreferredEncoding() const;
43 void SetPreferredEncoding(int newEncoding);
44
45 bool GetEnableCompressLevel() const;
46 void SetEnableCompressLevel(bool newCompressLevel);
47
48 int GetCompressLevel() const;
49 void SetCompressLevel(int newCompressLevel);
50
51 bool GetNoJpeg() const;
52 void SetNoJpeg(bool newNoJpeg);
53
54 int GetQualityLevel() const;
55 void SetQualityLevel(int newQualityLevel);
56
57 bool GetIce() const;
58 void SetIce(bool newIce);
59
60 const QString &GetSignalServer() const;
61 void SetSignalServer(const QString &newSignalServer);
62
63 quint16 GetSignalPort() const;
64 void SetSignalPort(quint16 newSignalPort);
65
66 const QString &GetSignalUser() const;
67 void SetSignalUser(const QString &newSignalUser);
68
69 const QString &GetSignalPassword() const;
70 void SetSignalPassword(const QString &newSignalPassword);
71
72 const QString &GetPeerUser() const;
73 void SetPeerUser(const QString &newPeerUser);
74
75 const QString &GetStunServer() const;
76 void SetStunServer(const QString &newStunServer);
77
78 quint16 GetStunPort() const;
79 void SetStunPort(quint16 newStunPort);
80
81 const QString &GetTurnServer() const;
82 void SetTurnServer(const QString &newTurnServer);
83
84 quint16 GetTurnPort() const;
85 void SetTurnPort(quint16 newTurnPort);
86
87 const QString &GetTurnUser() const;
88 void SetTurnUser(const QString &newTurnUser);
89
90 const QString &GetTurnPassword() const;
91 void SetTurnPassword(const QString &newTurnPassword);
92
93protected:
94 virtual int OnLoad(QSettings &set) override;
95 virtual int OnSave(QSettings &set) override;
96
97private:
98 QString szServerName;
99
100 bool m_bShared;
101 bool m_bBufferEndRefresh;
102
103 bool m_bAutoSelect;
104 COLOR_LEVEL m_nColorLevel;
105 int m_nPreferredEncoding;
106 bool m_bCompressLevel;
107 int m_nCompressLevel;
108 bool m_bNoJpeg;
109 int m_nQualityLevel;
110
111 bool m_bIce;
112 QString m_szSignalServer;
113 quint16 m_nSignalPort;
114 QString m_szSignalUser, m_szSignalPassword, m_szPeerUser;
115 QString m_szStunServer;
116 quint16 m_nStunPort;
117 QString m_szTurnServer;
118 quint16 m_nTurnPort;
119 QString m_szTurnUser, m_szTurnPassword;
120
121};
122
123#endif // CPARAMETERVNC_H
连接基础参数接口。包括基本参数(网络参数等)。 所有插件的连接参数都应从此类派生。
virtual bool OnCheckValidity() override
Check whether the parameters are complete to decide whether to open the parameter dialog