Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.cpp | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp index bef6ec7..754f34c 100644 --- a/noncore/apps/opie-console/metafactory.cpp +++ b/noncore/apps/opie-console/metafactory.cpp | |||
@@ -1,13 +1,13 @@ | |||
1 | 1 | #include <qpe/config.h> | |
2 | #include "metafactory.h" | 2 | #include "metafactory.h" |
3 | 3 | ||
4 | MetaFactory::MetaFactory() { | 4 | MetaFactory::MetaFactory() { |
5 | } | 5 | } |
6 | MetaFactory::~MetaFactory() { | 6 | MetaFactory::~MetaFactory() { |
7 | 7 | ||
8 | } | 8 | } |
9 | void MetaFactory::addConfigWidgetFactory( const QString& str, | 9 | void MetaFactory::addConfigWidgetFactory( const QString& str, |
10 | configWidget wid) { | 10 | configWidget wid) { |
11 | m_confFact.insert( str, wid ); | 11 | m_confFact.insert( str, wid ); |
12 | } | 12 | } |
13 | void MetaFactory::addIOLayerFactory( const QString& str, | 13 | void MetaFactory::addIOLayerFactory( const QString& str, |
@@ -33,12 +33,26 @@ QStringList MetaFactory::configWidgets()const { | |||
33 | list << it.key(); | 33 | list << it.key(); |
34 | } | 34 | } |
35 | return list; | 35 | return list; |
36 | } | 36 | } |
37 | QStringList MetaFactory::fileTransferLayers()const { | 37 | QStringList MetaFactory::fileTransferLayers()const { |
38 | QStringList list; | 38 | QStringList list; |
39 | QMap<QString, filelayer>::ConstIterator it; | 39 | QMap<QString, filelayer>::ConstIterator it; |
40 | for ( it = m_fileFact.begin(); it != m_fileFact.end(); ++it ) { | 40 | for ( it = m_fileFact.begin(); it != m_fileFact.end(); ++it ) { |
41 | list << it.key(); | 41 | list << it.key(); |
42 | } | 42 | } |
43 | return list; | 43 | return list; |
44 | } | 44 | } |
45 | IOLayer* MetaFactory::newIOLayer( const QString& str,const Profile& prof ) { | ||
46 | IOLayer* lay = 0l; | ||
47 | |||
48 | QMap<QString, iolayer>::Iterator it; | ||
49 | it = m_layerFact.find( str ); | ||
50 | if ( it != m_layerFact.end() ) { | ||
51 | lay = (*(it.data()))(prof); | ||
52 | /* | ||
53 | iolayer laye = it.data(); | ||
54 | lay = (*laye )(conf);*/ | ||
55 | } | ||
56 | |||
57 | return lay; | ||
58 | } | ||