Rev | Line | |
---|
[5001] | 1 | #ifndef GnssCenter_SETTINGS_H
|
---|
| 2 | #define GnssCenter_SETTINGS_H
|
---|
[4814] | 3 |
|
---|
| 4 | #include <QMutex>
|
---|
| 5 |
|
---|
[5001] | 6 | namespace GnssCenter {
|
---|
[4814] | 7 |
|
---|
[4861] | 8 | class t_app;
|
---|
| 9 |
|
---|
| 10 | class t_settings {
|
---|
[4814] | 11 | public:
|
---|
[4861] | 12 | t_settings();
|
---|
| 13 | ~t_settings();
|
---|
[4814] | 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 reRead();
|
---|
| 19 | void sync();
|
---|
| 20 | private:
|
---|
| 21 | void setValue_p(const QString &key, const QVariant& value);
|
---|
[4861] | 22 | t_app* _app;
|
---|
[4814] | 23 | static QMutex _mutex;
|
---|
| 24 | };
|
---|
| 25 |
|
---|
[5001] | 26 | } // namespace GnssCenter
|
---|
[4861] | 27 |
|
---|
[4814] | 28 | #endif
|
---|
Note:
See
TracBrowser
for help on using the repository browser.