35 #include "cxResourceExport.h"
37 #include "boost/shared_ptr.hpp"
58 class cxResource_EXPORT
Settings :
public QObject
67 void setValue(
const QString& key,
const QVariant& value);
68 QVariant value(
const QString& key,
const QVariant& defaultValue = QVariant())
const;
70 bool contains(
const QString& key)
const;
71 QString fileName()
const;
75 void resetFile(QString filename);
87 if (!this->contains(name))
88 this->setValue(name, value);
92 void valueChangedFor(QString key);
104 cxResource_EXPORT Settings*
settings();
Customized interface for setting values in QSettings.
boost::shared_ptr< class QSettings > QSettingsPtr
Settings * settings()
Shortcut for accessing the settings instance.
void fillDefault(QString name, T value)