aboutsummaryrefslogtreecommitdiff
path: root/common/config-manager.h
diff options
context:
space:
mode:
authorMax Horn2004-03-21 18:54:47 +0000
committerMax Horn2004-03-21 18:54:47 +0000
commit23dbd0de994ebfc97c65ab9deb96b052d1983426 (patch)
treee75e4dc1561edbe71e76f23fa1757e1b6e3536e7 /common/config-manager.h
parent5c7ff637159f574d0952f00829d195e78922dd6e (diff)
downloadscummvm-rg350-23dbd0de994ebfc97c65ab9deb96b052d1983426.tar.gz
scummvm-rg350-23dbd0de994ebfc97c65ab9deb96b052d1983426.tar.bz2
scummvm-rg350-23dbd0de994ebfc97c65ab9deb96b052d1983426.zip
two TODOs
svn-id: r13356
Diffstat (limited to 'common/config-manager.h')
-rw-r--r--common/config-manager.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/config-manager.h b/common/config-manager.h
index eaf38a443a..604ccce111 100644
--- a/common/config-manager.h
+++ b/common/config-manager.h
@@ -38,6 +38,14 @@ namespace Common {
* @todo Implement the callback based notification system (outline below)
* which sends out notifications to interested parties whenever the value
* of some specific (or any) configuration key changes.
+ * @todo Store comments and write them back out to disk. A simple approach for
+ * that would be to store comments which come before a section, and
+ * comments which comes before a specific config key. While this is
+ * limited, it is at least much better than not saving any comments, and
+ * it shouldn't be hard to implement either.
+ * @todo Allow preserving the order of the entries in the config file. Maybe
+ * even add an API to query/modify that order, which could be used by the
+ * launcher to allow arranging the game targets.
*/
class ConfigManager : public Singleton<ConfigManager> {
struct IgnoreCaseComparator {
@@ -98,8 +106,8 @@ public:
TODO: Callback/change notification system
typedef void (*ConfigCallback)(const ConstString &key, void *refCon);
- void registerCallback(const ConstString &key, ConfigCallback cfgc, void *refCon)
- void unregisterCallback(const ConstString &key, ConfigCallback cfgc)
+ void registerCallback(ConfigCallback cfgc, void *refCon, const ConstString &key = String::emptyString)
+ void unregisterCallback(ConfigCallback cfgc, const ConstString &key = String::emptyString)
*/
private: