implemented 'proxy settings' dialog
[toast/confclerk.git] / src / app / appsettings.cpp
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