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 | } | ||