From 5377a2c897ae67ec2cd0cf8e57da9037366efe67 Mon Sep 17 00:00:00 2001 From: sandman Date: Sun, 22 Dec 2002 16:43:55 +0000 Subject: added a funtion to check the presence of a group in a config file -- if you setGroup() to a non-existing group this group gets created and the config file is rewritten with an empty group, which is not needed in most cases. --- (limited to 'library/config.h') diff --git a/library/config.h b/library/config.h index 0bab7ca..c908fea 100644 --- a/library/config.h +++ b/library/config.h @@ -41,6 +41,9 @@ public: bool isValid() const; bool hasKey( const QString &key ) const; + + // inline for better SharpROM BC + inline bool hasGroup ( const QString &gname ) const { return ( groups. find ( gname ) != groups. end ( )); }; void setGroup( const QString &gname ); void writeEntry( const QString &key, const char* value ); -- cgit v0.9.0.2