summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/metafactory.cpp
Side-by-side diff
Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (show whitespace changes)
-rw-r--r--noncore/apps/opie-console/metafactory.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp
index ea7f739..c5e614d 100644
--- a/noncore/apps/opie-console/metafactory.cpp
+++ b/noncore/apps/opie-console/metafactory.cpp
@@ -39,38 +39,38 @@ QStringList MetaFactory::configWidgets()const {
QStringList MetaFactory::fileTransferLayers()const {
QStringList list;
QMap<QString, filelayer>::ConstIterator it;
for ( it = m_fileFact.begin(); it != m_fileFact.end(); ++it ) {
list << it.key();
}
return list;
}
IOLayer* MetaFactory::newIOLayer( const QString& str,const Profile& prof ) {
IOLayer* lay = 0l;
QMap<QString, iolayer>::Iterator it;
it = m_layerFact.find( str );
if ( it != m_layerFact.end() ) {
lay = (*(it.data()))(prof);
/*
iolayer laye = it.data();
lay = (*laye )(conf);*/
}
return lay;
}
-QWidget *MetaFactory::newConfigWidget ( const QString& str, QWidget* parent) {
- QWidget *w = NULL;
+ProfileEditorPlugin *MetaFactory::newConfigPlugin ( const QString& str, QWidget *parent, const Profile& prof) {
+ ProfileEditorPlugin *p = NULL;
configWidget c;
c = m_confFact[str];
- if(c) w = c(parent);
+ if(c) p = c(parent, prof);
- return w;
+ return p;
}
QString MetaFactory::name( const QString& str ) {
return m_namemap[str];
}