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

Last change on this file since 6429 was 5453, checked in by mervart, 11 years ago
File size: 570 bytes
RevLine 
[5001]1#ifndef GnssCenter_SETTINGS_H
2#define GnssCenter_SETTINGS_H
[4814]3
4#include <QMutex>
5
[5001]6namespace GnssCenter {
[4814]7
[4861]8class t_app;
9
10class t_settings {
[4814]11 public:
[5453]12 t_settings(const QString& groupName = QString());
[4861]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();
19 private:
[5452]20 void reRead();
[4861]21 t_app* _app;
[5452]22 QString _groupName;
[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.