Rev | Line | |
---|
[1535] | 1 | #ifndef BNCSETTINGS_H
|
---|
| 2 | #define BNCSETTINGS_H
|
---|
| 3 |
|
---|
[4072] | 4 | #include <QMutex>
|
---|
[1535] | 5 |
|
---|
[4070] | 6 | class bncApp;
|
---|
| 7 |
|
---|
| 8 | class bncSettings {
|
---|
[1535] | 9 | public:
|
---|
[4077] | 10 | bncSettings();
|
---|
[4070] | 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 );
|
---|
[4251] | 16 | void reRead();
|
---|
[4070] | 17 | void sync();
|
---|
[1535] | 18 | private:
|
---|
[4078] | 19 | void setValue_p(const QString &key, const QVariant& value);
|
---|
[4072] | 20 | bncApp* _bncApp;
|
---|
| 21 | static QMutex _mutex;
|
---|
[1535] | 22 | };
|
---|
| 23 |
|
---|
| 24 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.