summaryrefslogtreecommitdiff
path: root/src/gui_config.hh
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui_config.hh')
-rw-r--r--src/gui_config.hh21
1 files changed, 21 insertions, 0 deletions
diff --git a/src/gui_config.hh b/src/gui_config.hh
new file mode 100644
index 0000000..97b343f
--- /dev/null
+++ b/src/gui_config.hh
@@ -0,0 +1,21 @@
+// -*- mode: c++; c-basic-offset: 2; -*-
+
+#ifndef GUI_CONFIG_HH
+#define GUI_CONFIG_HH
+
+#include "config.hh"
+
+class GuiConfig : public Config {
+public:
+ bool load_name(std::string const& name) override;
+ bool load_file(std::string const& filename) override;
+ bool get(std::string const& key, bool fallback) override;
+
+ bool good() const override;
+ std::string const& last_error() const override;
+
+private:
+ static const std::string EMPTY;
+};
+
+#endif // GUI_CONFIG_HH