-rw-r--r-- | library/config.h | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/library/config.h b/library/config.h index af61777..a2f9b2d 100644 --- a/library/config.h +++ b/library/config.h | |||
@@ -33,3 +33,3 @@ public: | |||
33 | typedef QMap< QString, QString > ConfigGroup; | 33 | typedef QMap< QString, QString > ConfigGroup; |
34 | 34 | ||
35 | enum Domain { File, User }; | 35 | enum Domain { File, User }; |
@@ -37,6 +37,6 @@ public: | |||
37 | ~Config(); | 37 | ~Config(); |
38 | 38 | ||
39 | bool operator == ( const Config & other ) const { return (filename == other.filename); } | 39 | bool operator == ( const Config & other ) const { return (filename == other.filename); } |
40 | bool operator != ( const Config & other ) const { return (filename != other.filename); } | 40 | bool operator != ( const Config & other ) const { return (filename != other.filename); } |
41 | 41 | ||
42 | bool isValid() const; | 42 | bool isValid() const; |
@@ -47,3 +47,3 @@ public: | |||
47 | inline QStringList groupList ( ) const { QStringList sl; for ( QMap< QString, ConfigGroup >::ConstIterator it = groups. begin ( ); it != groups. end ( ); ++it ) { sl << it.key(); } return sl; }; | 47 | inline QStringList groupList ( ) const { QStringList sl; for ( QMap< QString, ConfigGroup >::ConstIterator it = groups. begin ( ); it != groups. end ( ); ++it ) { sl << it.key(); } return sl; }; |
48 | 48 | ||
49 | void setGroup( const QString &gname ); | 49 | void setGroup( const QString &gname ); |
@@ -58,3 +58,3 @@ public: | |||
58 | void removeEntry( const QString &key ); | 58 | void removeEntry( const QString &key ); |
59 | 59 | ||
60 | QString readEntry( const QString &key, const QString &deflt = QString::null ) const; | 60 | QString readEntry( const QString &key, const QString &deflt = QString::null ) const; |
@@ -73,7 +73,7 @@ public: | |||
73 | QStringList readListEntry( const QString &key, const QChar &sep ); | 73 | QStringList readListEntry( const QString &key, const QChar &sep ); |
74 | 74 | ||
75 | void clearGroup(); | 75 | void clearGroup(); |
76 | 76 | ||
77 | void write( const QString &fn = QString::null ); | 77 | void write( const QString &fn = QString::null ); |
78 | 78 | ||
79 | protected: | 79 | protected: |
@@ -81,3 +81,3 @@ protected: | |||
81 | bool parse( const QString &line ); | 81 | bool parse( const QString &line ); |
82 | 82 | ||
83 | QMap< QString, ConfigGroup > groups; | 83 | QMap< QString, ConfigGroup > groups; |