aboutsummaryrefslogtreecommitdiff
path: root/src/unstable/settings.h
diff options
context:
space:
mode:
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