author | zecke <zecke> | 2002-09-28 20:45:11 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-28 20:45:11 (UTC) |
commit | 7980189a2cb34e2864c339ef68bfbe7fb4910750 (patch) (unidiff) | |
tree | a14028faccc70982d105c229f84d77e13741e987 /noncore/apps/opie-console/profileconfig.cpp | |
parent | b6df65ad2ffb50f029b96ebf9d0d78dfa23f3f19 (diff) | |
download | opie-7980189a2cb34e2864c339ef68bfbe7fb4910750.zip opie-7980189a2cb34e2864c339ef68bfbe7fb4910750.tar.gz opie-7980189a2cb34e2864c339ef68bfbe7fb4910750.tar.bz2 |
Add profiles and the profilemanager to the mainwindow
if one would have a ConfigureDialog one could see it....
Diffstat (limited to 'noncore/apps/opie-console/profileconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/profileconfig.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/profileconfig.cpp b/noncore/apps/opie-console/profileconfig.cpp index bd089c8..732fae7 100644 --- a/noncore/apps/opie-console/profileconfig.cpp +++ b/noncore/apps/opie-console/profileconfig.cpp | |||
@@ -1,45 +1,46 @@ | |||
1 | 1 | ||
2 | #include "profileconfig.h" | 2 | #include "profileconfig.h" |
3 | 3 | ||
4 | ProfileConfig::ProfileConfig( const QString& prof ) | 4 | ProfileConfig::ProfileConfig( const QString& prof ) |
5 | : Config( prof ) | 5 | : Config( prof ) |
6 | { | 6 | { |
7 | } | 7 | } |
8 | ProfileConfig::~ProfileConfig() { | 8 | ProfileConfig::~ProfileConfig() { |
9 | 9 | ||
10 | } | 10 | } |
11 | QStringList ProfileConfig::groups()const { | 11 | QStringList ProfileConfig::groups()const { |
12 | QStringList list; | 12 | QStringList list; |
13 | QMap<QString, ConfigGroup>::ConstIterator it; | 13 | QMap<QString, ConfigGroup>::ConstIterator it; |
14 | it= Config::groups.begin(); | 14 | it= Config::groups.begin(); |
15 | qWarning("config %d", Config::groups.count() ); | ||
15 | 16 | ||
16 | for (; it != Config::groups.end(); ++it ) | 17 | for (; it != Config::groups.end(); ++it ) |
17 | list << it.key(); | 18 | list << it.key(); |
18 | 19 | ||
19 | 20 | ||
20 | return list; | 21 | return list; |
21 | 22 | ||
22 | } | 23 | } |
23 | void ProfileConfig::clearAll() { | 24 | void ProfileConfig::clearAll() { |
24 | QMap<QString, ConfigGroup>::ConstIterator it; | 25 | QMap<QString, ConfigGroup>::ConstIterator it; |
25 | it = Config::groups.begin(); | 26 | it = Config::groups.begin(); |
26 | 27 | ||
27 | for ( ; it != Config::groups.end(); ++it ) | 28 | for ( ; it != Config::groups.end(); ++it ) |
28 | clearGroup( it.key() ); | 29 | clearGroup( it.key() ); |
29 | } | 30 | } |
30 | void ProfileConfig::clearGroup( const QString& str ) { | 31 | void ProfileConfig::clearGroup( const QString& str ) { |
31 | QString cur =git.key(); | 32 | QString cur =git.key(); |
32 | setGroup( str ); | 33 | setGroup( str ); |
33 | Config::clearGroup(); | 34 | Config::clearGroup(); |
34 | setGroup( cur ); | 35 | setGroup( cur ); |
35 | } | 36 | } |
36 | QMap<QString, QString> ProfileConfig::items( const QString& group )const { | 37 | QMap<QString, QString> ProfileConfig::items( const QString& group )const { |
37 | QMap<QString, QString> map; | 38 | QMap<QString, QString> map; |
38 | QMap<QString, ConfigGroup>::ConstIterator it; | 39 | QMap<QString, ConfigGroup>::ConstIterator it; |
39 | it = Config::groups.find( group ); | 40 | it = Config::groups.find( group ); |
40 | 41 | ||
41 | if (it != Config::groups.end() ) | 42 | if (it != Config::groups.end() ) |
42 | map = it.data(); | 43 | map = it.data(); |
43 | 44 | ||
44 | return map; | 45 | return map; |
45 | } | 46 | } |