00001 #ifndef USEQPE 00002 #ifndef __PREFERENCES_H 00003 #define __PREFERENCES_H 00004 00005 #include <qstring.h> 00006 #include <qmap.h> 00007 00008 class Config 00009 { 00010 QMap<QString, QString> values; 00011 QString fname; 00012 public: 00013 Config(const QString& fname); 00014 ~Config(); 00015 void setGroup(const QString& s) { } 00016 QString readEntry(const QString&, const QString&); 00017 bool readBoolEntry(const QString&, const bool); 00018 int readNumEntry(const QString&, const int); 00019 00020 void writeEntry(const QString&, const QString&); 00021 void writeEntry(const QString&, const bool); 00022 void writeEntry(const QString&, const int); 00023 }; 00024 00025 #endif // PREFERENCES 00026 #endif
1.4.2