]> Dogcows Code - chaz/openbox/blobdiff - src/Configuration.hh
catch button presses on the window's frame window, else they end up passing up the...
[chaz/openbox] / src / Configuration.hh
index 6909c7993f497075f6f8ad1e7480fa398339c1c2..8f4a315745a2420ce7a1463911a6aacd8a197e29 100644 (file)
  */
 class Configuration {
 public:
-  explicit Configuration(const std::string &file);
-  Configuration();
+  explicit Configuration(const std::string &file, bool autosave = True);
+  Configuration(bool autosave = True);
   virtual ~Configuration();
 
   inline const std::string &file() const {
-    return static_cast<const std::string &>(m_file);
+    return static_cast<const std::string &>(_file);
   }
   void setFile(const std::string &file);
 
   // defaults to true!
   inline bool autoSave() const {
-    return m_autosave;
+    return _autosave;
   }
   void setAutoSave(bool);
 
   inline bool isModified() const {
-    return m_modified;
+    return _modified;
   }
 
   void save();
   bool load();
+  bool merge(const std::string &file, bool overwrite = False);
   void create();
 
   void setValue(const std::string &rname, bool value);
@@ -87,11 +88,11 @@ private:
   std::string createClassName(const std::string &rname) const;
   char toUpper(char) const;
   
-  static bool m_initialized;
-  std::string m_file;
-  bool m_modified;
-  bool m_autosave;
-  XrmDatabase m_database;
+  static bool _initialized;
+  std::string _file;
+  bool _modified;
+  bool _autosave;
+  XrmDatabase _database;
 };
 
 #endif // __Configuration_hh
This page took 0.023741 seconds and 4 git commands to generate.