qt5
Last change
on this file since 6645e1f 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:
921 bytes
|
Line | |
---|
1 | #include "appsettings.h" |
---|
2 | |
---|
3 | const QString PROXY_ADDRESS_SETTING ("proxyAddress"); |
---|
4 | const QString PROXY_PORT_SETTING ("proxyPort"); |
---|
5 | const QString PROXY_ISDIRECT_SETTING ("proxyIsDirectConnection"); |
---|
6 | |
---|
7 | QSettings AppSettings::mSettings("Ixonos", "FOSDEM"); |
---|
8 | |
---|
9 | |
---|
10 | |
---|
11 | QString AppSettings::proxyAddress() |
---|
12 | { |
---|
13 | return mSettings.value(PROXY_ADDRESS_SETTING).toString(); |
---|
14 | } |
---|
15 | |
---|
16 | quint16 AppSettings::proxyPort() |
---|
17 | { |
---|
18 | return mSettings.value(PROXY_PORT_SETTING).toUInt(); |
---|
19 | } |
---|
20 | |
---|
21 | bool AppSettings::isDirectConnection() |
---|
22 | { |
---|
23 | return mSettings.value(PROXY_ISDIRECT_SETTING).toBool(); |
---|
24 | } |
---|
25 | |
---|
26 | void AppSettings::setProxyAddress(const QString &aAddress) |
---|
27 | { |
---|
28 | mSettings.setValue(PROXY_ADDRESS_SETTING, aAddress); |
---|
29 | } |
---|
30 | |
---|
31 | void AppSettings::setProxyPort(const quint16 aPort) |
---|
32 | { |
---|
33 | mSettings.setValue(PROXY_PORT_SETTING, aPort); |
---|
34 | } |
---|
35 | |
---|
36 | void AppSettings::setDirectConnection(bool aDirectConnection) |
---|
37 | { |
---|
38 | mSettings.setValue(PROXY_ISDIRECT_SETTING, aDirectConnection); |
---|
39 | } |
---|
40 | |
---|
Note: See
TracBrowser
for help on using the repository browser.