diff options
author | Reid <reidyaro@gmail.com> | 2011-08-08 16:51:11 +0200 |
---|---|---|
committer | Reid <reidyaro@gmail.com> | 2011-08-08 16:51:11 +0200 |
commit | 7f8498bf14338f67089881afb14b0b398a152c8c (patch) | |
tree | e0ba5648c775776be6177dae3c0c8b50922517b1 /src/configuration.h | |
parent | 391a4c3a1e4d5c3815ba7c822fb9bd03969dea6e (diff) | |
parent | bcd0bdb1f087c3153d070baa274e7ecf8c8268e1 (diff) | |
download | manaplus-7f8498bf14338f67089881afb14b0b398a152c8c.tar.gz manaplus-7f8498bf14338f67089881afb14b0b398a152c8c.tar.bz2 manaplus-7f8498bf14338f67089881afb14b0b398a152c8c.tar.xz manaplus-7f8498bf14338f67089881afb14b0b398a152c8c.zip |
Merge branch 'master' of gitorious.org:manaplus/manaplus
Diffstat (limited to 'src/configuration.h')
-rw-r--r-- | src/configuration.h | 8 |
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); |