author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (unidiff) | |
tree | 1c9a7a6dd3341e036a894d348a3372525d29acec /noncore/apps/opie-reader/preferences.h | |
parent | e90847c784c48bd21bf8768cb38edb853b832697 (diff) | |
download | opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.zip opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.gz opie-73253e93327cf4ef0932de1b4afb56af22a0f37e.tar.bz2 |
updated source to opie-reader 0.7g
Diffstat (limited to 'noncore/apps/opie-reader/preferences.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-reader/preferences.h | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/noncore/apps/opie-reader/preferences.h b/noncore/apps/opie-reader/preferences.h new file mode 100644 index 0000000..69d1774 --- a/dev/null +++ b/noncore/apps/opie-reader/preferences.h | |||
@@ -0,0 +1,27 @@ | |||
1 | #include "useqpe.h" | ||
2 | #ifndef USEQPE | ||
3 | #ifndef __PREFERENCES_H | ||
4 | #define __PREFERENCES_H | ||
5 | |||
6 | #include <qstring.h> | ||
7 | #include <qmap.h> | ||
8 | |||
9 | class Config | ||
10 | { | ||
11 | QMap<QString, QString> values; | ||
12 | QString fname; | ||
13 | public: | ||
14 | Config(const QString& fname); | ||
15 | ~Config(); | ||
16 | void setGroup(const QString& s) { } | ||
17 | QString readEntry(const QString&, const QString&); | ||
18 | bool readBoolEntry(const QString&, const bool); | ||
19 | int readNumEntry(const QString&, const int); | ||
20 | |||
21 | void writeEntry(const QString&, const QString&); | ||
22 | void writeEntry(const QString&, const bool); | ||
23 | void writeEntry(const QString&, const int); | ||
24 | }; | ||
25 | |||
26 | #endif // PREFERENCES | ||
27 | #endif | ||