Retrieve metadata when adding book to library. Show progress while scanning folders...
[dorian] / model / settings.h
1 #ifndef SETTINGS_H
2 #define SETTINGS_H
3
4 #include <QObject>
5 #include <QVariant>
6
7 class QString;
8
9 /**
10  * Shallow wrapper for QSettings.
11  * Emits valueChanged signals when a setting value has changed.
12  */
13 class Settings: public QObject
14 {
15     Q_OBJECT
16
17 public:
18     explicit Settings(QObject *parent = 0);
19     static Settings *instance();
20     QVariant value(const QString &key, const QVariant &defaultValue = QVariant())
21         const;
22     void setValue(const QString &key, const QVariant &value);
23
24 signals:
25     void valueChanged(const QString &name);
26
27 public slots:
28 };
29
30 #endif // SETTINGS_H