| Line | |
|---|
| 1 | #ifndef GnssCenter_SETTINGS_H
|
|---|
| 2 | #define GnssCenter_SETTINGS_H
|
|---|
| 3 |
|
|---|
| 4 | #include <QMutex>
|
|---|
| 5 |
|
|---|
| 6 | namespace GnssCenter {
|
|---|
| 7 |
|
|---|
| 8 | class t_app;
|
|---|
| 9 |
|
|---|
| 10 | class t_settings {
|
|---|
| 11 | public:
|
|---|
| 12 | t_settings(const QString& groupName = QString());
|
|---|
| 13 | ~t_settings();
|
|---|
| 14 | QVariant value(const QString& key,
|
|---|
| 15 | const QVariant& defaultValue = QVariant()) const;
|
|---|
| 16 | void setValue(const QString &key, const QVariant& value);
|
|---|
| 17 | void remove(const QString& key );
|
|---|
| 18 | void sync();
|
|---|
| 19 | private:
|
|---|
| 20 | void reRead();
|
|---|
| 21 | t_app* _app;
|
|---|
| 22 | QString _groupName;
|
|---|
| 23 | static QMutex _mutex;
|
|---|
| 24 | };
|
|---|
| 25 |
|
|---|
| 26 | } // namespace GnssCenter
|
|---|
| 27 |
|
|---|
| 28 | #endif
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.