Diffstat (limited to 'noncore/apps/opie-console/profileconfig.cpp') (more/less context) (ignore 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 @@ | |||
1 | |||
2 | #include "profileconfig.h" | ||
3 | |||
4 | ProfileConfig::ProfileConfig( const QString& prof ) | ||
5 | : Config( prof ) | ||
6 | { | ||
7 | } | ||
8 | ProfileConfig::~ProfileConfig() { | ||
9 | |||
10 | } | ||
11 | QStringList ProfileConfig::groups()const { | ||
12 | QStringList list; | ||
13 | QMap<QString, ConfigGroup>::ConstIterator it; | ||
14 | it= Config::groups.begin(); | ||
15 | |||
16 | for (; it != Config::groups.end(); ++it ) | ||
17 | list << it.key(); | ||
18 | |||
19 | |||
20 | return list; | ||
21 | |||
22 | } | ||
23 | void ProfileConfig::clearAll() { | ||
24 | QMap<QString, ConfigGroup>::ConstIterator it; | ||
25 | it = Config::groups.begin(); | ||
26 | |||
27 | for ( ; it != Config::groups.end(); ++it ) | ||
28 | clearGroup( it.key() ); | ||
29 | } | ||
30 | void ProfileConfig::clearGroup( const QString& str ) { | ||
31 | QString cur =git.key(); | ||
32 | setGroup( str ); | ||
33 | Config::clearGroup(); | ||
34 | setGroup( cur ); | ||
35 | } | ||