summaryrefslogtreecommitdiff
path: root/plugingui/pluginconfig.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 11:53:17 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-05-15 11:53:17 +0200
commit9555c6e2734977c82023907f82a3ae82f845720a (patch)
tree75354bb1449b49639bd8171fac30d9afa12380b7 /plugingui/pluginconfig.h
parent6a19e8f182183ad88df91d4a46e418fb4d42f9bd (diff)
New ConfigFile class for generic config file reading/writing in homedir .drumgizmo folder. Use said new class for PluginConfig class.
Diffstat (limited to 'plugingui/pluginconfig.h')
-rw-r--r--plugingui/pluginconfig.h22
1 files changed, 9 insertions, 13 deletions
diff --git a/plugingui/pluginconfig.h b/plugingui/pluginconfig.h
index d0e9bcd..29d2ef5 100644
--- a/plugingui/pluginconfig.h
+++ b/plugingui/pluginconfig.h
@@ -27,22 +27,18 @@
#ifndef __DRUMGIZMO_CONFIG_H__
#define __DRUMGIZMO_CONFIG_H__
-#include <string>
-#include <list>
+#include <configfile.h>
-#define DIRECTORY_HIDDEN 1
+class Config : public ConfigFile {
+public:
+ Config();
+ ~Config();
-class Config {
+ void load();
+ void save();
- public:
- Config();
- ~Config();
-
- void load();
- void save();
-
- std::string lastkit;
- std::string lastmidimap;
+ std::string lastkit;
+ std::string lastmidimap;
};
#endif/*__DRUMGIZMO_CONFIG_H__*/