14 #include "cxResourceExport.h"
16 #include "boost/shared_ptr.hpp"
37 class cxResource_EXPORT
Settings :
public QObject
43 void setValueIfNotDefault(
const QString& key,
const QVariant& value,
const QVariant& defaultValue);
45 void setValue(
const QString& key,
const QVariant& value);
46 QVariant value(
const QString& key,
const QVariant& defaultValue = QVariant())
const;
48 bool contains(
const QString& key)
const;
49 QString fileName()
const;
53 void resetFile(QString filename);
62 if (!this->contains(name))
63 this->setValue(name, value);
67 void valueChangedFor(QString key);
76 cxResource_EXPORT Settings*
settings();