diff options
Diffstat (limited to 'src/unstable/settings.h')
-rw-r--r-- | src/unstable/settings.h | 46 |
1 files changed, 23 insertions, 23 deletions
diff --git a/src/unstable/settings.h b/src/unstable/settings.h index c1d0e1c..80d3049 100644 --- a/src/unstable/settings.h +++ b/src/unstable/settings.h | |||
@@ -5,31 +5,31 @@ | |||
5 | 5 | ||
6 | namespace Bu | 6 | namespace Bu |
7 | { | 7 | { |
8 | /** | 8 | /** |
9 | * Simple access to configuration data. Provides a consistant, cross | 9 | * Simple access to configuration data. Provides a consistant, cross |
10 | * platform interface to configuration data using native storage. | 10 | * platform interface to configuration data using native storage. |
11 | */ | 11 | */ |
12 | class Settings | 12 | class Settings |
13 | { | 13 | { |
14 | public: | 14 | public: |
15 | enum Driver | 15 | enum Driver |
16 | { | 16 | { |
17 | DriverNative, | 17 | DriverNative, |
18 | DriverTaf, | 18 | DriverTaf, |
19 | DriverIni | 19 | DriverIni |
20 | }; | 20 | }; |
21 | Settings( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct, | 21 | Settings( const Bu::UtfString &sCompany, const Bu::UtfString &sProduct, |
22 | Driver driver=DriverNative ); | 22 | Driver driver=DriverNative ); |
23 | virtual ~Settings(); | 23 | virtual ~Settings(); |
24 | 24 | ||
25 | void set( const Bu::UtfString &sKey, const Bu::UtfString &sValue ); | 25 | void set( const Bu::UtfString &sKey, const Bu::UtfString &sValue ); |
26 | Bu::UtfString get( const Bu::UtfString &sKey, const Bu::UtfString &sValue=Bu::UtfString() ); | 26 | Bu::UtfString get( const Bu::UtfString &sKey, const Bu::UtfString &sValue=Bu::UtfString() ); |
27 | 27 | ||
28 | private: | 28 | private: |
29 | Bu::UtfString sCompany; | 29 | Bu::UtfString sCompany; |
30 | Bu::UtfString sProduct; | 30 | Bu::UtfString sProduct; |
31 | class SettingsDriver *pDriver; | 31 | class SettingsDriver *pDriver; |
32 | }; | 32 | }; |
33 | }; | 33 | }; |
34 | 34 | ||
35 | #endif | 35 | #endif |