From da642482dee91921fc16786208aa497d3ee31d94 Mon Sep 17 00:00:00 2001 From: Mike Buland Date: Fri, 24 Aug 2012 18:15:11 +0000 Subject: Adding new Bu::Settings system, which works more or less like QSettings from Qt, only...without qt. It's the first real system in libbu++ that is going to be all unicode, which is exciting, but I'm having to actually finish the Bu::UtfString class while I work on it. Also exciting. --- src/unstable/settingsdriver.h | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 src/unstable/settingsdriver.h (limited to 'src/unstable/settingsdriver.h') diff --git a/src/unstable/settingsdriver.h b/src/unstable/settingsdriver.h new file mode 100644 index 0000000..0a63106 --- /dev/null +++ b/src/unstable/settingsdriver.h @@ -0,0 +1,26 @@ +#ifndef BU_SETTINGS_DRIVER_H +#define BU_SETTINGS_DRIVER_H + +#include "bu/utfstring.h" + +namespace Bu +{ + class Settings; + + /** + * Base class for i/o interfaces for Bu::Settings. By subclassing this you + * can provide custom storage for application settings. + */ + class SettingsDriver + { + friend class Bu::Settings; + public: + SettingsDriver(); + virtual ~SettingsDriver(); + + protected: + virtual void init( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct )=0; + }; +}; + +#endif -- cgit v1.2.3