summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/preferences.h
Unidiff
Diffstat (limited to 'noncore/apps/opie-reader/preferences.h') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-reader/preferences.h27
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
9class 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