forked from mss/securepoint-openvpn-client
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.h
104 lines (77 loc) · 2.69 KB
/
settings.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
#ifndef SETTINGS_H
#define SETTINGS_H
#include <QtCore>
class Settings
{
public:
static Settings *getInstance ();
void refresh ();
// Getter
bool getIsAutoReconnect () const;
bool getIsShowNoBallonMessage () const;
bool getIsRunAsSevice () const;
bool getIsStartCommandConfig () const;
bool getIsStartConfigDir () const;
bool getIsLanguageGerman () const;
bool getUseNoInteract () const;
bool getIsPortableClient () const;
bool getIsManageClient () const;
QString getCommandConfigPath () const;
QString getStartConfigDirPath () const;
QString getStartWithPwdPwd () const;
QString getStartWithUser () const;
quint16 getListenPort () const;
quint16 getServerPort () const;
QString getCryptKey () const;
QString getProxyIniPath ();
bool popUpDialog () const;
bool showSplashScreen () const;
bool autoStartOnWindowsStartup ();
QString delayConfig () const;
// Setter
void setIsAutoReconnect (const bool &flag);
void setIsShowNoBallonMessage (const bool &flag);
void setIsRunAsService (const bool &flag);
void setIsStartCommandConfig (const bool &flag, bool save = false);
void setIsStartConfigDir (const bool &flag);
void setIsNoPopUp (const bool &flag);
void setIsLanguageGerman (const bool &flag);
void setUseNoInteract (const bool &flag);
void setIsPortableClient (const bool &flag);
void setIsManageClient (const bool &flag);
void setCommandConfigPath (const QString &path, bool save = false);
void setStartConfigDirPath (const QString &path);
void setStartWithPwdPwd (const QString &pwd);
void setStartWithUserName (const QString &user);
void setListenPort (quint16 port);
void setServerPort (quint16 port);
void setCryptKey (const QString &key);
void setPopUpDialog (const bool &flag);
void setShowSplashScreen (const bool &flag);
void setAutoStartOnWindowsStartup (const bool &flag);
void setDelayStartConfig (const QString &value);
private:
static Settings *mInst;
Settings();
// Member
bool autoReconnect;
bool noBallonMessage;
bool runAsService;
bool startCommandConfig;
bool startConfigDir;
bool isLangGerman;
bool useNoInteract;
bool isPortableClient;
bool manageClient;
bool popUpDialogValue;
bool showSplashScreenValue;
QString commandConfigPath;
QString startConfigDirPath;
// Client und Serverport
quint16 listenPort;
quint16 servicePort;
QString iniPath;
QString cryptKey;
QString delayConfigVal;
};
#endif // SETTINGS_H