a20af3c78aa2d3254b05b9d3fa94b956373ba050
[toast/confclerk.git] / src / app / appsettings.h
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 bool contains(const QString &aKey);
16
17         static QString proxyAddress();
18         static quint16 proxyPort();
19         static bool isDirectConnection();
20
21         static void setProxyAddress(const QString &aAddress);
22         static void setProxyPort(const quint16 aPort);
23         static void setDirectConnection(bool aDirectConnection);
24 };
25
26 #endif /* APPSETTINGS_H */
27