Rabbit Remote Control 0.0.33
Loading...
Searching...
No Matches
ParameterClient.h
1#ifndef CPARAMETERVIEWER_H
2#define CPARAMETERVIEWER_H
3
4#pragma once
5
6#include "Parameter.h"
7#include "FrmViewer.h"
8#include "ParameterRecord.h"
9
35class CLIENT_EXPORT CParameterClient : public CParameter
36{
37 Q_OBJECT
38
39public:
40 explicit CParameterClient(QObject *parent = nullptr);
41 virtual ~CParameterClient();
42
43protected:
47 virtual int OnLoad(QSettings &set) override;
51 virtual int OnSave(QSettings &set) override;
52
53public:
54 bool GetHookKeyboard() const;
55 void SetHookKeyboard(bool newHookKeyboard);
56Q_SIGNALS:
57 void sigHookKeyboardChanged();
58private:
59 bool m_bHookKeyboard;
60 Q_PROPERTY(bool HookKeyboard READ GetHookKeyboard WRITE SetHookKeyboard
61 NOTIFY sigHookKeyboardChanged)
62
63public:
64 bool GetHookShowAdministratorPrivilege();
65 void SetHookShowAdministratorPrivilege(bool bShow);
66Q_SIGNALS:
67 void sigHookShowAdministratorPrivilege();
68private:
69 bool m_bHookShowAdministratorPrivilege;
70
71 // Enable use the system user as the user
72public:
73 bool GetEnableSystemUserToUser() const;
74 void SetEnableSystemUserToUser(bool enable);
75private:
76 bool m_bEnableSystemUserToUser;
78
79public:
80 const QString &GetEncryptKey() const;
81 void SetEncryptKey(const QString &newPassword);
82Q_SIGNALS:
83 void sigEncryptKeyChanged();
84private:
85 QString m_szEncryptKey; //Don't save to file
86 Q_PROPERTY(QString EncryptKey READ GetEncryptKey WRITE SetEncryptKey NOTIFY sigEncryptKeyChanged)
87
88public:
89 const bool &GetSavePassword() const;
90 void SetSavePassword(bool NewAutoSavePassword);
91Q_SIGNALS:
92 void sigSavePasswordChanged(bool AutoSavePassword);
93
94private:
95 bool m_bSavePassword;
96 Q_PROPERTY(bool SavePassword READ GetSavePassword WRITE SetSavePassword NOTIFY sigSavePasswordChanged)
97
98public:
99 enum class PromptType
100 {
101 No,
102 First,
103 Always,
104 };
105 Q_ENUM(PromptType)
106 PromptType GetPromptType() const;
107 void SetPromptType(PromptType NewPromptType);
108Q_SIGNALS:
109 void sigPromptTypeChanged(PromptType PromptType);
110private:
111 PromptType m_PromptType;
112 Q_PROPERTY(PromptType PromptType READ GetPromptType WRITE SetPromptType NOTIFY sigPromptTypeChanged)
113
114public:
115 int GetPromptCount() const;
116 void SetPromptCount(int NewPromptCount);
117Q_SIGNALS:
118 void sigPromptCountChanged(int PromptCount);
119private:
120 int m_nPromptCount;
121 Q_PROPERTY(int PromptCount READ GetPromptCount WRITE SetPromptCount NOTIFY sigPromptCountChanged)
122
123public:
124 bool GetViewPassowrd() const;
125 void SetViewPassowrd(bool NewViewPassowrd);
126Q_SIGNALS:
127 void sigViewPassowrdChanged(bool ViewPassowrd);
128private:
129 bool m_bViewPassowrd;
130 Q_PROPERTY(bool ViewPassowrd READ GetViewPassowrd WRITE SetViewPassowrd NOTIFY sigViewPassowrdChanged)
131
132
133
134public:
135 bool GetShowProtocolPrefix() const;
136 void SetShowProtocolPrefix(bool bShowProtocolPrefix);
137Q_SIGNALS:
138 void sigShowProtocolPrefixChanged();
139private:
140 bool m_bShowProtocolPrefix;
141 Q_PROPERTY(bool ShowProtocolPrefix READ GetShowProtocolPrefix WRITE SetShowProtocolPrefix NOTIFY sigShowProtocolPrefixChanged)
142
143public:
144 bool GetShowIpPortInName() const;
145 void SetShowIpPortInName(bool bShowIpPortInName);
146Q_SIGNALS:
147 void sigSHowIpPortInNameChanged();
148private:
149 bool m_bShowIpPortInName;
150 Q_PROPERTY(bool ShowIpPortInName READ GetShowIpPortInName WRITE SetShowIpPortInName NOTIFY sigSHowIpPortInNameChanged)
151
152public:
153 CFrmViewer::ADAPT_WINDOWS GetAdaptWindows();
154 void SetAdaptWindows(CFrmViewer::ADAPT_WINDOWS aw);
155Q_SIGNALS:
156 void sigAdaptWindowsChanged();
157private:
158 CFrmViewer::ADAPT_WINDOWS m_AdaptWindows;
159 Q_PROPERTY(CFrmViewer::ADAPT_WINDOWS AdaptWindows READ GetAdaptWindows WRITE SetAdaptWindows NOTIFY sigAdaptWindowsChanged)
160
161public:
162 CParameterRecord m_Record;
163};
164
165#endif // CPARAMETERVIEWER_H
ADAPT_WINDOWS
The ADAPT_WINDOWS enum.
Definition FrmViewer.h:61
The parameters of client.
Parameter interface.
Definition Parameter.h:169