blob: ea0bb760263306bdbc0e2a04e83f9683ac2620e1 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
/*
* choosersettings.h
*
* Created on: Mar 24, 2014
* Author: nils
*/
#ifndef CHOOSERSETTINGS_H_
#define CHOOSERSETTINGS_H_
#include <QDebug>
#include <QSettings>
#include <QDir>
// TODO: Proper name. This is the user specific settings, not global
class ChooserSettings {
public:
static QString getSetting(QString key);
static bool setSetting(QString key, QString value);
private:
static ChooserSettings* chooserSettings;
static bool settingsLoaded;
QSettings* settings;
ChooserSettings();
virtual ~ChooserSettings();
};
#endif /* CHOOSERSETTINGS_H_ */
|