aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/settings.h
diff options
context:
space:
mode:
authorMike Buland <eichlan@xagasoft.com>2012-08-24 18:15:11 +0000
committerMike Buland <eichlan@xagasoft.com>2012-08-24 18:15:11 +0000
commitda642482dee91921fc16786208aa497d3ee31d94 (patch)
treebae598fca2bb2b55661bc1c854b43a1393aced23 /src/unstable/settings.h
parentf5ac2c1ba333ce6aa6d385d9a63b658caaa46503 (diff)
downloadlibbu++-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 '')
-rw-r--r--src/unstable/settings.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/unstable/settings.h b/src/unstable/settings.h
new file mode 100644
index 0000000..0736ee5
--- /dev/null
+++ b/src/unstable/settings.h
@@ -0,0 +1,34 @@
1#ifndef BU_SETTINGS_H
2#define BU_SETTINGS_H
3
4#include "bu/utfstring.h"
5
6namespace Bu
7{
8 /**
9 * Simple access to configuration data. Provides a consistant, cross
10 * platform interface to configuration data using native storage.
11 */
12 class Settings
13 {
14 public:
15 enum Driver
16 {
17 DriverNative,
18 DriverTaf,
19 DriverIni
20 };
21 Settings( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct,
22 Driver driver=DriverNative );
23 virtual ~Settings();
24
25 void set( const Bu::UtfString &sKey, const Bu::UtfString &sValue );
26
27 private:
28 Bu::UtfString sCompany;
29 Bu::UtfString sProduct;
30 class SettingsDriver *pDriver;
31 };
32};
33
34#endif