summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-reader/preferences.h
blob: 39959d445bf159c7a09668225f99159e4bda17de (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#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