author | zecke <zecke> | 2002-09-26 21:22:18 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 21:22:18 (UTC) |
commit | 80471c46265182afccfa832750abd1f4f7fbfaa9 (patch) (side-by-side diff) | |
tree | 73b174abc34fcd23abe2d865365726d85db312b3 /noncore/apps/opie-console/metafactory.cpp | |
parent | 48b3a7159c613b59ca3f838517373620b8afd1d5 (diff) | |
download | opie-80471c46265182afccfa832750abd1f4f7fbfaa9.zip opie-80471c46265182afccfa832750abd1f4f7fbfaa9.tar.gz opie-80471c46265182afccfa832750abd1f4f7fbfaa9.tar.bz2 |
main /s/setMainWindow/showMainWindow
First implementation of the gui
Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.cpp | 44 |
1 files changed, 44 insertions, 0 deletions
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<QString, iolayer>::ConstIterator it; + for (it = m_layerFact.begin(); it != m_layerFact.end(); ++it ) { + list << it.key(); + } + return list; +} +QStringList MetaFactory::configWidgets()const { + QStringList list; + QMap<QString, configWidget>::ConstIterator it; + for ( it = m_confFact.begin(); it != m_confFact.end(); ++it ) { + list << it.key(); + } + return list; +} +QStringList MetaFactory::fileTransferLayers()const { + QStringList list; + QMap<QString, filelayer>::ConstIterator it; + for ( it = m_fileFact.begin(); it != m_fileFact.end(); ++it ) { + list << it.key(); + } + return list; +} |