Diffstat (limited to 'noncore/apps/opie-console/profileconfig.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileconfig.cpp | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileconfig.cpp b/noncore/apps/opie-console/profileconfig.cpp new file mode 100644 index 0000000..8b16920 --- a/dev/null +++ b/noncore/apps/opie-console/profileconfig.cpp @@ -0,0 +1,35 @@ + +#include "profileconfig.h" + +ProfileConfig::ProfileConfig( const QString& prof ) + : Config( prof ) +{ +} +ProfileConfig::~ProfileConfig() { + +} +QStringList ProfileConfig::groups()const { + QStringList list; + QMap<QString, ConfigGroup>::ConstIterator it; + it= Config::groups.begin(); + + for (; it != Config::groups.end(); ++it ) + list << it.key(); + + + return list; + +} +void ProfileConfig::clearAll() { + QMap<QString, ConfigGroup>::ConstIterator it; + it = Config::groups.begin(); + + for ( ; it != Config::groups.end(); ++it ) + clearGroup( it.key() ); +} +void ProfileConfig::clearGroup( const QString& str ) { + QString cur =git.key(); + setGroup( str ); + Config::clearGroup(); + setGroup( cur ); +} |