From 80471c46265182afccfa832750abd1f4f7fbfaa9 Mon Sep 17 00:00:00 2001 From: zecke Date: Thu, 26 Sep 2002 21:22:18 +0000 Subject: main /s/setMainWindow/showMainWindow First implementation of the gui --- (limited to 'noncore/apps/opie-console/metafactory.cpp') diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp new file mode 100644 index 0000000..bef6ec7 --- a/dev/null +++ b/noncore/apps/opie-console/metafactory.cpp @@ -0,0 +1,44 @@ + +#include "metafactory.h" + +MetaFactory::MetaFactory() { +} +MetaFactory::~MetaFactory() { + +} +void MetaFactory::addConfigWidgetFactory( const QString& str, + configWidget wid) { + m_confFact.insert( str, wid ); +} +void MetaFactory::addIOLayerFactory( const QString& str, + iolayer lay) { + m_layerFact.insert( str, lay ); +} +void MetaFactory::addFileTransferLayer( const QString& str, + filelayer lay) { + m_fileFact.insert( str, lay ); +} +QStringList MetaFactory::ioLayers()const { + QStringList list; + QMap::ConstIterator it; + for (it = m_layerFact.begin(); it != m_layerFact.end(); ++it ) { + list << it.key(); + } + return list; +} +QStringList MetaFactory::configWidgets()const { + QStringList list; + QMap::ConstIterator it; + for ( it = m_confFact.begin(); it != m_confFact.end(); ++it ) { + list << it.key(); + } + return list; +} +QStringList MetaFactory::fileTransferLayers()const { + QStringList list; + QMap::ConstIterator it; + for ( it = m_fileFact.begin(); it != m_fileFact.end(); ++it ) { + list << it.key(); + } + return list; +} -- cgit v0.9.0.2