[Scummvm-cvs-logs] CVS: scummvm/common config-manager.h,1.12,1.13

Max Horn fingolfin at users.sourceforge.net
Sun Mar 21 11:06:00 CET 2004


Update of /cvsroot/scummvm/scummvm/common
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv30636

Modified Files:
	config-manager.h 
Log Message:
two TODOs

Index: config-manager.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/common/config-manager.h,v
retrieving revision 1.12
retrieving revision 1.13
diff -u -d -r1.12 -r1.13
--- config-manager.h	4 Mar 2004 22:26:09 -0000	1.12
+++ config-manager.h	21 Mar 2004 18:54:47 -0000	1.13
@@ -38,6 +38,14 @@
  * @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 @@
 	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:





More information about the Scummvm-git-logs mailing list