-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathqsharedsettings.h
More file actions
48 lines (36 loc) · 1.05 KB
/
qsharedsettings.h
File metadata and controls
48 lines (36 loc) · 1.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
#ifndef QSHAREDSETTINGS_H
#define QSHAREDSETTINGS_H
#include <QObject>
#include <QSettings>
#include <QVariant>
#include <QMap>
#include <QStringList>
#include <QTimer>
#include <QDebug>
using namespace std;
class QSharedSettings : public QSettings
{
Q_OBJECT
public:
QSharedSettings(const QString &organization, const QString &application = QString(), QObject *parent = 0);
QSharedSettings(Scope scope, const QString &organization, const QString &application = QString(), QObject *parent = 0);
QSharedSettings(Format format, Scope scope, const QString &organization, const QString &application = QString(), QObject *parent = 0);
QSharedSettings(const QString &fileName, Format format, QObject *parent = 0);
QSharedSettings(QObject * parent = 0);
~QSharedSettings();
protected:
//
private:
void initialize();
QTimer m_pollingTimer;
QVariantMap m_storedSettings; // typedef QMap<QString, QVariant>
public:
//
public slots:
//
private slots:
void checkSettings();
signals:
void settingsChanged(QStringList keys);
};
#endif // QSHAREDSETTINGS_H