}
}
-GConfStringValue::GConfStringValue(const GConfKey& key, const std::string& name, const std::string& defaultValue):
- GConfOption(GCONF_VALUE_STRING, key, name),
+GConfStringOption::GConfStringOption(const GConfKey& key, const std::string& name, const std::string& defaultValue):
+ GConfOption(key, name),
myDefaultValue(defaultValue) {
}
-const std::string& GConfStringValue::value() const {
+const std::string& GConfStringOption::value() const {
if (!myIsSynchronized) {
GConfValue *value = getGConfValue();
return myValue;
}
-const std::string& GConfStringValue::setValue(const std::string& newValue) {
+const std::string& GConfStringOption::setValue(const std::string& newValue) {
if (!myIsSynchronized || (myValue != newValue)) {
myValue = newValue;
return myValue;
}
-GConfBooleanValue::GConfBooleanValue(const GConfKey& key, const std::string& name, bool defaultValue):
- GConfOption(GCONF_VALUE_BOOL, key, name),
+GConfBooleanOption::GConfBooleanOption(const GConfKey& key, const std::string& name, bool defaultValue):
+ GConfOption(key, name),
+ myValue(defaultValue),
myDefaultValue(defaultValue) {
}
-bool GConfBooleanValue::value() const {
+bool GConfBooleanOption::value() const {
if (!myIsSynchronized) {
GConfValue *value = getGConfValue();
return myValue;
}
-bool GConfBooleanValue::setValue(bool newValue) {
+bool GConfBooleanOption::setValue(bool newValue) {
if (!myIsSynchronized || (myValue != newValue)) {
myValue = newValue;
return myValue;
}
-GConfIntegerValue::GConfIntegerValue(const GConfKey& key, const std::string& name, int defaultValue):
- GConfOption(GCONF_VALUE_INT, key, name),
+GConfIntegerOption::GConfIntegerOption(const GConfKey& key, const std::string& name, int defaultValue):
+ GConfOption(key, name),
+ myValue(defaultValue),
myDefaultValue(defaultValue) {
}
-int GConfIntegerValue::value() const {
+int GConfIntegerOption::value() const {
if (!myIsSynchronized) {
GConfValue *value = getGConfValue();
return myValue;
}
-int GConfIntegerValue::setValue(int newValue) {
+int GConfIntegerOption::setValue(int newValue) {
if (!myIsSynchronized || (myValue != newValue)) {
myValue = newValue;