]> Dogcows Code - chaz/openbox/blobdiff - src/Resource.h
fix Resource class so that you cant cast a string to a Resource
[chaz/openbox] / src / Resource.h
index 912ae75377b725604159f51789799dbfbf89be9f..e75b87185dbec898bd88519401380373c6f47f72 100644 (file)
 #include <X11/Xlib.h>
 #include <X11/Xresource.h>
 
-class obResource {
+class Resource {
 public:
-  obResource(const std::string &file);
-  obResource();
-  virtual ~obResource();
+  explicit Resource(const std::string &file);
+  Resource();
+  virtual ~Resource();
 
   inline const std::string &file() const {
     return static_cast<const std::string &>(m_file);
@@ -50,6 +50,7 @@ public:
 
   void save();
   bool load();
+  void create();
 
   void setValue(const std::string &rname, bool value);
   void setValue(const std::string &rname, int value);
This page took 0.022635 seconds and 4 git commands to generate.