Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp index 754f34c..04f1cbe 100644 --- a/noncore/apps/opie-console/metafactory.cpp +++ b/noncore/apps/opie-console/metafactory.cpp | |||
@@ -4,13 +4,15 @@ | |||
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 | const QString& name, | ||
10 | configWidget wid) { | 11 | configWidget wid) { |
12 | m_namemap.insert ( str, name ); | ||
11 | m_confFact.insert( str, wid ); | 13 | m_confFact.insert( str, wid ); |
12 | } | 14 | } |
13 | void MetaFactory::addIOLayerFactory( const QString& str, | 15 | void MetaFactory::addIOLayerFactory( const QString& str, |
14 | iolayer lay) { | 16 | iolayer lay) { |
15 | m_layerFact.insert( str, lay ); | 17 | m_layerFact.insert( str, lay ); |
16 | } | 18 | } |
@@ -53,6 +55,11 @@ IOLayer* MetaFactory::newIOLayer( const QString& str,const Profile& prof ) { | |||
53 | iolayer laye = it.data(); | 55 | iolayer laye = it.data(); |
54 | lay = (*laye )(conf);*/ | 56 | lay = (*laye )(conf);*/ |
55 | } | 57 | } |
56 | 58 | ||
57 | return lay; | 59 | return lay; |
58 | } | 60 | } |
61 | |||
62 | QString MetaFactory::name( const QString& str ) { | ||
63 | return m_namemap[str]; | ||
64 | } | ||
65 | |||