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 | bool contains(const QString& key) const;
|
---|
15 | void reRead();
|
---|
16 | void sync();
|
---|
17 | private:
|
---|
18 | void setValue_p(const QString &key, const QVariant& value);
|
---|
19 | static QMutex _mutex;
|
---|
20 | };
|
---|
21 |
|
---|
22 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.