30class ISettings :
public QObject, MODULE_EXPORT_INTERFACE
38 Key(QString moduleName, QString key)
40 this->moduleName = moduleName;
44 Key(QString moduleName, QString key, QVariant defaultValue)
46 this->moduleName = moduleName;
48 this->defaultValue = defaultValue;
53 QVariant defaultValue;
58 virtual void addKey(QString moduleName, QString keyName, QString key, QVariant defaultValue) = 0;
59 virtual void setValue(QString moduleName, QString keyName, QVariant value) = 0;
60 virtual void setValue(
Key key, QVariant value) = 0;
61 virtual QVariant getValue(QString moduleName, QString keyName) = 0;
62 virtual QVariant getValue(
Key key) = 0;
63 virtual bool containsKey(QString moduleName, QString keyName) = 0;
64 virtual bool containsKey(
Key key) = 0;
66 virtual void freeze() = 0;
67 virtual void saveChanges() = 0;
68 virtual void discardChanges() = 0;
69 virtual bool isFrozen() = 0;