diff options
| author | Joel Klinghed <the_jk@yahoo.com> | 2017-07-22 23:18:26 +0200 |
|---|---|---|
| committer | Joel Klinghed <the_jk@yahoo.com> | 2017-07-22 23:19:37 +0200 |
| commit | a3da855cddff3c3c71311af6ce3e7629a459024d (patch) | |
| tree | 7ed8cad6256f74fb83632f608891ceeb32e1f59a /src/gui_config.hh | |
| parent | d9e1e04c09a99b2a507e071f434fd394f4781051 (diff) | |
Add application config for GUI
QT5 stored in .config/org.the_jk/tp.Monitor.conf on Linux
GTK stored in dconf
Diffstat (limited to 'src/gui_config.hh')
| -rw-r--r-- | src/gui_config.hh | 21 |
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 |
