source:
ntrip/trunk/GnssCenter/main/settings.h@
5452
Last change on this file since 5452 was 5452, checked in by , 11 years ago | |
---|---|
File size: 598 bytes |
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 sync(); | |
[5452] | 19 | void beginGroup(const QString& groupName); |
20 | void endGroup(); | |
[4814] | 21 | private: |
[5452] | 22 | void reRead(); |
[4861] | 23 | t_app* _app; |
[5452] | 24 | QString _groupName; |
[4814] | 25 | static QMutex _mutex; |
26 | }; | |
27 | ||
[5001] | 28 | } // namespace GnssCenter |
[4861] | 29 | |
[4814] | 30 | #endif |
Note:
See TracBrowser
for help on using the repository browser.