diff options
author | Mike Buland <eichlan@xagasoft.com> | 2012-08-24 18:15:11 +0000 |
---|---|---|
committer | Mike Buland <eichlan@xagasoft.com> | 2012-08-24 18:15:11 +0000 |
commit | da642482dee91921fc16786208aa497d3ee31d94 (patch) | |
tree | bae598fca2bb2b55661bc1c854b43a1393aced23 /src/unstable/settingsdriver.h | |
parent | f5ac2c1ba333ce6aa6d385d9a63b658caaa46503 (diff) | |
download | libbu++-da642482dee91921fc16786208aa497d3ee31d94.tar.gz libbu++-da642482dee91921fc16786208aa497d3ee31d94.tar.bz2 libbu++-da642482dee91921fc16786208aa497d3ee31d94.tar.xz libbu++-da642482dee91921fc16786208aa497d3ee31d94.zip |
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.
Diffstat (limited to 'src/unstable/settingsdriver.h')
-rw-r--r-- | src/unstable/settingsdriver.h | 26 |
1 files changed, 26 insertions, 0 deletions
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 @@ | |||
1 | #ifndef BU_SETTINGS_DRIVER_H | ||
2 | #define BU_SETTINGS_DRIVER_H | ||
3 | |||
4 | #include "bu/utfstring.h" | ||
5 | |||
6 | namespace Bu | ||
7 | { | ||
8 | class Settings; | ||
9 | |||
10 | /** | ||
11 | * Base class for i/o interfaces for Bu::Settings. By subclassing this you | ||
12 | * can provide custom storage for application settings. | ||
13 | */ | ||
14 | class SettingsDriver | ||
15 | { | ||
16 | friend class Bu::Settings; | ||
17 | public: | ||
18 | SettingsDriver(); | ||
19 | virtual ~SettingsDriver(); | ||
20 | |||
21 | protected: | ||
22 | virtual void init( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct )=0; | ||
23 | }; | ||
24 | }; | ||
25 | |||
26 | #endif | ||