summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/profileconfig.cpp
authorzecke <zecke>2002-09-28 18:29:02 (UTC)
committer zecke <zecke>2002-09-28 18:29:02 (UTC)
commitbc88219d0a9cf935d90c88fe75e238e86c675937 (patch) (side-by-side diff)
tree0121d1d3d881cf69948f3faf420a71d894dd6832 /noncore/apps/opie-console/profileconfig.cpp
parent18d575d0ee47a0700091de81bc3e8c54be4eae18 (diff)
downloadopie-bc88219d0a9cf935d90c88fe75e238e86c675937.zip
opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.gz
opie-bc88219d0a9cf935d90c88fe75e238e86c675937.tar.bz2
io_layer take Profile instead of Config
Profile added including some Config like stuff io_serial getBaud -> baud a default for gcc3 later tabdwidget will be our central widget profileconfig I needed groups() and clearAll that's pretty much it
Diffstat (limited to 'noncore/apps/opie-console/profileconfig.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--noncore/apps/opie-console/profileconfig.cpp35
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 );
+}