| Line | |
|---|
| 1 | #ifndef BNCSETTINGS_H
|
|---|
| 2 | #define BNCSETTINGS_H
|
|---|
| 3 |
|
|---|
| 4 | #include <QMutex>
|
|---|
| 5 |
|
|---|
| 6 | class bncApp;
|
|---|
| 7 |
|
|---|
| 8 | class bncSettings {
|
|---|
| 9 | public:
|
|---|
| 10 | bncSettings();
|
|---|
| 11 | ~bncSettings();
|
|---|
| 12 | QVariant value(const QString& key,
|
|---|
| 13 | const QVariant& defaultValue = QVariant()) const;
|
|---|
| 14 | void setValue(const QString &key, const QVariant& value);
|
|---|
| 15 | void remove(const QString& key );
|
|---|
| 16 | void sync();
|
|---|
| 17 | private:
|
|---|
| 18 | void setValue_p(const QString &key, const QVariant& value);
|
|---|
| 19 | bncApp* _bncApp;
|
|---|
| 20 | static QMutex _mutex;
|
|---|
| 21 | };
|
|---|
| 22 |
|
|---|
| 23 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.