summaryrefslogtreecommitdiff
path: root/src/configuration.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/configuration.h')
-rw-r--r--src/configuration.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/configuration.h b/src/configuration.h
index 696ddcf3a..79fa9b5ba 100644
--- a/src/configuration.h
+++ b/src/configuration.h
@@ -192,6 +192,14 @@ class ConfigurationObject
return container;
}
+#ifdef DEBUG_CONFIG
+ void enableKeyLogging()
+ { mLogKeys = true; }
+
+ void setIsMain(bool b)
+ { mIsMain = b; }
+#endif
+
protected:
virtual void initFromXML(XmlNodePtr node);
virtual void writeToXML(XmlTextWriterPtr writer);
@@ -203,6 +211,11 @@ class ConfigurationObject
typedef std::list<ConfigurationObject *> ConfigurationList;
std::map<std::string, ConfigurationList> mContainerOptions;
+
+#ifdef DEBUG_CONFIG
+ bool mLogKeys;
+ bool mIsMain;
+#endif
};
/**
@@ -301,6 +314,8 @@ class Configuration : public ConfigurationObject
std::string getDirectory() const
{ return mDirectory; }
+ void removeOldKeys();
+
private:
/**
* Clean up the default values member.