Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (ignore 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,4 +1,4 @@ | |||
1 | 1 | #include <qpe/config.h> | |
2 | #include "metafactory.h" | 2 | #include "metafactory.h" |
3 | 3 | ||
4 | MetaFactory::MetaFactory() { | 4 | MetaFactory::MetaFactory() { |
@@ -42,3 +42,17 @@ QStringList MetaFactory::fileTransferLayers()const { | |||
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 | } | ||