qt5
Last change
on this file since a023fd2 was
a023fd2,
checked in by pavelpa <pavelpa@…>, 13 years ago
|
implemented 'proxy settings' dialog
- user can secify proxy for network communication
|
-
Property mode set to
100644
|
File size:
526 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef APPSETTINGS_H |
---|
3 | #define APPSETTINGS_H |
---|
4 | |
---|
5 | #include <QString> |
---|
6 | #include <QSettings> |
---|
7 | |
---|
8 | class AppSettings |
---|
9 | { |
---|
10 | private: |
---|
11 | AppSettings() {} |
---|
12 | static QSettings mSettings; |
---|
13 | |
---|
14 | public: |
---|
15 | static QString proxyAddress(); |
---|
16 | static quint16 proxyPort(); |
---|
17 | static bool isDirectConnection(); |
---|
18 | |
---|
19 | static void setProxyAddress(const QString &aAddress); |
---|
20 | static void setProxyPort(const quint16 aPort); |
---|
21 | static void setDirectConnection(bool aDirectConnection); |
---|
22 | }; |
---|
23 | |
---|
24 | #endif /* APPSETTINGS_H */ |
---|
25 | |
---|
Note: See
TracBrowser
for help on using the repository browser.