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