summaryrefslogtreecommitdiffstats
path: root/src/choosersettings.h
blob: 28bf619b6c4f8a2a8526bfa8df2f5eaa3a0eee4e (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_ */