summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 4b0238e9a..2e694002d 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -246,9 +246,14 @@ class Configuration : public ConfigurationObject
void setValue(const std::string &key, const std::string &value);
+ void setSilent(const std::string &key, const std::string &value);
+
inline void setValue(const std::string &key, const char *value)
{ setValue(key, std::string(value)); }
+ inline void setSilent(const std::string &key, const char *value)
+ { setSilent(key, std::string(value)); }
+
inline void setValue(const std::string &key, float value)
{ setValue(key, toString(value)); }
@@ -267,6 +272,9 @@ class Configuration : public ConfigurationObject
inline void setValue(const std::string &key, bool value)
{ setValue(key, value ? "1" : "0"); }
+ inline void setSilent(const std::string &key, bool value)
+ { setSilent(key, value ? "1" : "0"); }
+
int resetIntValue(const std::string &key);
bool resetBoolValue(const std::string &key);