author | zecke <zecke> | 2002-09-26 21:22:18 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 21:22:18 (UTC) |
commit | 80471c46265182afccfa832750abd1f4f7fbfaa9 (patch) (unidiff) | |
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) (ignore 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 @@ | |||
1 | |||
2 | #include "metafactory.h" | ||
3 | |||
4 | MetaFactory::MetaFactory() { | ||
5 | } | ||
6 | MetaFactory::~MetaFactory() { | ||
7 | |||
8 | } | ||
9 | void MetaFactory::addConfigWidgetFactory( const QString& str, | ||
10 | configWidget wid) { | ||
11 | m_confFact.insert( str, wid ); | ||
12 | } | ||
13 | void MetaFactory::addIOLayerFactory( const QString& str, | ||
14 | iolayer lay) { | ||
15 | m_layerFact.insert( str, lay ); | ||
16 | } | ||
17 | void MetaFactory::addFileTransferLayer( const QString& str, | ||
18 | filelayer lay) { | ||
19 | m_fileFact.insert( str, lay ); | ||
20 | } | ||
21 | QStringList MetaFactory::ioLayers()const { | ||
22 | QStringList list; | ||
23 | QMap<QString, iolayer>::ConstIterator it; | ||
24 | for (it = m_layerFact.begin(); it != m_layerFact.end(); ++it ) { | ||
25 | list << it.key(); | ||
26 | } | ||
27 | return list; | ||
28 | } | ||
29 | QStringList MetaFactory::configWidgets()const { | ||
30 | QStringList list; | ||
31 | QMap<QString, configWidget>::ConstIterator it; | ||
32 | for ( it = m_confFact.begin(); it != m_confFact.end(); ++it ) { | ||
33 | list << it.key(); | ||
34 | } | ||
35 | return list; | ||
36 | } | ||
37 | QStringList MetaFactory::fileTransferLayers()const { | ||
38 | QStringList list; | ||
39 | QMap<QString, filelayer>::ConstIterator it; | ||
40 | for ( it = m_fileFact.begin(); it != m_fileFact.end(); ++it ) { | ||
41 | list << it.key(); | ||
42 | } | ||
43 | return list; | ||
44 | } | ||