-rw-r--r-- | library/config.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/library/config.h b/library/config.h index 29ba0d6..f8d3bf7 100644 --- a/library/config.h +++ b/library/config.h @@ -26,16 +26,17 @@ #include <qpe/qpeglobal.h> #include <qmap.h> #include <qstringlist.h> typedef QMap< QString, QString > ConfigGroup; typedef QMap< QString, ConfigGroup> ConfigGroupMap; +class QTextStream; class ConfigPrivate; class Config { public: enum Domain { File, User }; Config( const QString &name, Domain domain=User ); ~Config(); @@ -87,22 +88,23 @@ public: QTOPIA_MERGED_METHOD(QStringList allGroups() const, "2.1.0"); void write( const QString &fn = QString::null ); protected: void read(); bool parse( const QString &line ); - QMap< QString, ConfigGroup > groups; - QMap< QString, ConfigGroup >::Iterator git; + ConfigGroupMap groups; + ConfigGroupMap::Iterator git; QString filename; QString lang; QString glang; bool changed; ConfigPrivate *d; static QString configFilename(const QString& name, Domain); private: // Sharp ROM compatibility Config( const QString &name, bool what ); + void read( QTextStream &s); }; #endif |