source: src/app/appsettings.cpp @ a023fd2

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