blob: 6ab48a08afa8de7d9e98119d1d96fb6410f19c48 (
plain)
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
|
#ifndef KZQSETTINGS_H
#define KZQSETTINGS_H
#include <QObject>
#include <QVariant>
namespace KaZoe {
class KzSettings;
class KzQSettings : public QObject
{
Q_OBJECT
QScopedPointer<KaZoe::KzSettings> m_settings;
public:
explicit KzQSettings(QObject *parent = nullptr);
virtual ~KzQSettings();
static QVariant getValue(const QString &id, QVariant defvalue = QVariant());
static bool setValue(const QString &id, const QVariant &value);
public slots:
int count() const;
QVariant get(const QString &id, const QVariant defvalue = QVariant()) const;
bool set(const QString &id, const QVariant &value);
QStringList keys() const;
signals:
void valueChanged(QString id, QVariant value);
};
};
#endif // KZQSETTINGS_H
|