author | josef <josef> | 2002-10-06 11:38:51 (UTC) |
---|---|---|
committer | josef <josef> | 2002-10-06 11:38:51 (UTC) |
commit | 0b7136e077b0ec2767722c38ee0939b53a95fe6a (patch) (side-by-side diff) | |
tree | 74fe158d876abbcdbeb17fbe0bc217a4df09eac9 /noncore/apps/opie-console/metafactory.cpp | |
parent | a8a476782082bd340690308673983bc7e3238db5 (diff) | |
download | opie-0b7136e077b0ec2767722c38ee0939b53a95fe6a.zip opie-0b7136e077b0ec2767722c38ee0939b53a95fe6a.tar.gz opie-0b7136e077b0ec2767722c38ee0939b53a95fe6a.tar.bz2 |
- restructure menu to use metafactory
- this is work in progress
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 @@ MetaFactory::MetaFactory() { } MetaFactory::~MetaFactory() { } void MetaFactory::addConfigWidgetFactory( const QString& str, + const QString& name, configWidget wid) { + m_namemap.insert ( str, name ); m_confFact.insert( str, wid ); } void MetaFactory::addIOLayerFactory( const QString& str, iolayer lay) { m_layerFact.insert( str, lay ); } @@ -53,6 +55,11 @@ IOLayer* MetaFactory::newIOLayer( const QString& str,const Profile& prof ) { iolayer laye = it.data(); lay = (*laye )(conf);*/ } return lay; } + +QString MetaFactory::name( const QString& str ) { + return m_namemap[str]; +} + |