Added application config. Moved application data from /tmp to ~/.someplayer
[someplayer] / src / config.h
1 #ifndef CONFIG_H
2 #define CONFIG_H
3
4 #include <QSettings>
5
6 namespace SomePlayer {
7         namespace Storage {
8                 class Config
9                 {
10                 public:
11                     Config();
12                     ~Config();
13                     QString applicationDir();
14                     QVariant getValue(QString key);
15                     void setValue(QString key, QVariant value);
16                 private:
17                     QSettings *_settings;
18                 };
19         };
20 };
21
22 #endif // CONFIG_H