Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

profileconfig.cpp

Go to the documentation of this file.
00001 
00002 #include "profileconfig.h"
00003 
00004 ProfileConfig::ProfileConfig( const QString& prof )
00005     : Config( prof )
00006 {
00007 }
00008 ProfileConfig::~ProfileConfig() {
00009 
00010 }
00011 QStringList ProfileConfig::groups()const {
00012     QStringList list;
00013     QMap<QString, ConfigGroup>::ConstIterator it;
00014     it= Config::groups.begin();
00015 
00016     for (; it != Config::groups.end(); ++it )
00017         list << it.key();
00018 
00019 
00020     return list;
00021 
00022 }
00023 void ProfileConfig::clearAll() {
00024     QMap<QString, ConfigGroup>::ConstIterator it;
00025     it = Config::groups.begin();
00026 
00027     for ( ; it != Config::groups.end(); ++it )
00028         clearGroup( it.key() );
00029 }
00030 void ProfileConfig::clearGroup( const QString& str ) {
00031     QString cur =git.key();
00032     setGroup( str );
00033     Config::clearGroup();
00034     setGroup( cur );
00035 }
00036 QMap<QString, QString> ProfileConfig::items( const QString& group )const {
00037     QMap<QString, QString> map;
00038     QMap<QString, ConfigGroup>::ConstIterator it;
00039     it = Config::groups.find( group );
00040 
00041     if (it != Config::groups.end() )
00042         map = it.data();
00043 
00044     return map;
00045 }

Generated on Sat Nov 5 16:16:50 2005 for OPIE by  doxygen 1.4.2