author | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
---|---|---|
committer | pohly <pohly> | 2004-08-24 20:52:45 (UTC) |
commit | 73253e93327cf4ef0932de1b4afb56af22a0f37e (patch) (side-by-side diff) | |
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 @@ +#include "useqpe.h" +#ifndef USEQPE +#ifndef __PREFERENCES_H +#define __PREFERENCES_H + +#include <qstring.h> +#include <qmap.h> + +class Config +{ + QMap<QString, QString> values; + QString fname; + public: + Config(const QString& fname); + ~Config();
+ void setGroup(const QString& s) { } + QString readEntry(const QString&, const QString&); + bool readBoolEntry(const QString&, const bool); + int readNumEntry(const QString&, const int); + + void writeEntry(const QString&, const QString&); + void writeEntry(const QString&, const bool); + void writeEntry(const QString&, const int); +}; + +#endif // PREFERENCES +#endif |