Rabbit Remote Control 0.0.30
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
63 // Enable use the system user as the user
64public:
65 bool GetEnableSystemUserToUser() const;
66 void SetEnableSystemUserToUser(bool enable);
67private:
68 bool m_bEnableSystemUserToUser;
70
71public:
72 const QString &GetEncryptKey() const;
73 void SetEncryptKey(const QString &newPassword);
74Q_SIGNALS:
75 void sigEncryptKeyChanged();
76private:
77 QString m_szEncryptKey; //Don't save to file
78 Q_PROPERTY(QString EncryptKey READ GetEncryptKey WRITE SetEncryptKey NOTIFY sigEncryptKeyChanged)
79
80public:
81 const bool &GetSavePassword() const;
82 void SetSavePassword(bool NewAutoSavePassword);
83Q_SIGNALS:
84 void sigSavePasswordChanged(bool AutoSavePassword);
85
86private:
87 bool m_bSavePassword;
88 Q_PROPERTY(bool SavePassword READ GetSavePassword WRITE SetSavePassword NOTIFY sigSavePasswordChanged)
89
90public:
91 enum class PromptType
92 {
93 No,
94 First,
95 Always,
96 };
97 Q_ENUM(PromptType)
98 PromptType GetPromptType() const;
99 void SetPromptType(PromptType NewPromptType);
100Q_SIGNALS:
101 void sigPromptTypeChanged(PromptType PromptType);
102private:
103 PromptType m_PromptType;
104 Q_PROPERTY(PromptType PromptType READ GetPromptType WRITE SetPromptType NOTIFY sigPromptTypeChanged)
105
106public:
107 int GetPromptCount() const;
108 void SetPromptCount(int NewPromptCount);
109Q_SIGNALS:
110 void sigPromptCountChanged(int PromptCount);
111private:
112 int m_nPromptCount;
113 Q_PROPERTY(int PromptCount READ GetPromptCount WRITE SetPromptCount NOTIFY sigPromptCountChanged)
114
115public:
116 bool GetViewPassowrd() const;
117 void SetViewPassowrd(bool NewViewPassowrd);
118Q_SIGNALS:
119 void sigViewPassowrdChanged(bool ViewPassowrd);
120private:
121 bool m_bViewPassowrd;
122 Q_PROPERTY(bool ViewPassowrd READ GetViewPassowrd WRITE SetViewPassowrd NOTIFY sigViewPassowrdChanged)
123
124
125
126public:
127 bool GetShowProtocolPrefix() const;
128 void SetShowProtocolPrefix(bool bShowProtocolPrefix);
129Q_SIGNALS:
130 void sigShowProtocolPrefixChanged();
131private:
132 bool m_bShowProtocolPrefix;
133 Q_PROPERTY(bool ShowProtocolPrefix READ GetShowProtocolPrefix WRITE SetShowProtocolPrefix NOTIFY sigShowProtocolPrefixChanged)
134
135public:
136 bool GetShowIpPortInName() const;
137 void SetShowIpPortInName(bool bShowIpPortInName);
138Q_SIGNALS:
139 void sigSHowIpPortInNameChanged();
140private:
141 bool m_bShowIpPortInName;
142 Q_PROPERTY(bool ShowIpPortInName READ GetShowIpPortInName WRITE SetShowIpPortInName NOTIFY sigSHowIpPortInNameChanged)
143
144public:
145 CFrmViewer::ADAPT_WINDOWS GetAdaptWindows();
146 void SetAdaptWindows(CFrmViewer::ADAPT_WINDOWS aw);
147Q_SIGNALS:
148 void sigAdaptWindowsChanged();
149private:
150 CFrmViewer::ADAPT_WINDOWS m_AdaptWindows;
151 Q_PROPERTY(CFrmViewer::ADAPT_WINDOWS AdaptWindows READ GetAdaptWindows WRITE SetAdaptWindows NOTIFY sigAdaptWindowsChanged)
152
153public:
154 CParameterRecord m_Record;
155};
156
157#endif // CPARAMETERVIEWER_H
ADAPT_WINDOWS
The ADAPT_WINDOWS enum.
Definition FrmViewer.h:61
The parameters of client.
Parameter interface.
Definition Parameter.h:169