source: ntrip/trunk/GnssCenter/main/settings.h@ 5452

Last change on this file since 5452 was 5452, checked in by mervart, 11 years ago
File size: 598 bytes
Line 
1#ifndef GnssCenter_SETTINGS_H
2#define GnssCenter_SETTINGS_H
3
4#include <QMutex>
5
6namespace GnssCenter {
7
8class t_app;
9
10class t_settings {
11 public:
12 t_settings();
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 void beginGroup(const QString& groupName);
20 void endGroup();
21 private:
22 void reRead();
23 t_app* _app;
24 QString _groupName;
25 static QMutex _mutex;
26};
27
28} // namespace GnssCenter
29
30#endif
Note: See TracBrowser for help on using the repository browser.