17 CkbSettings(
const QString& basePath,
bool eraseExisting =
false);
24 static QVariant
get(
const QString&
key,
const QVariant& defaultValue = QVariant());
25 static void set(
const QString&
key,
const QVariant&
value);
39 bool contains(
const QString& key)
const;
41 QVariant
value(
const QString& key,
const QVariant& defaultValue = QVariant())
const;
42 void setValue(
const QString& key,
const QVariant& value);
43 void remove(
const QString& key);
51 inline QString
pwd()
const {
return groups.join(
"/"); }
52 inline QString
pwd(
const QString& key)
const {
return pwd() + (
groups.isEmpty() ?
"" :
"/") + key; }
67 #endif // CKBSETTINGS_H
void setValue(const QString &key, const QVariant &value)
static void set(const QString &key, const QVariant &value)
QStringList childKeys() const
QString pwd(const QString &key) const
QVariant value(const QString &key, const QVariant &defaultValue=QVariant()) const
SGroup(CkbSettings &settings, const QString &prefix)
bool contains(const QString &key) const
QMap< QString, QVariant > writeCache
bool containsGroup(const QString &group)
void beginGroup(const QString &prefix)
QStringList childGroups() const