Diffstat (limited to 'noncore/apps/opie-console/metafactory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/metafactory.cpp b/noncore/apps/opie-console/metafactory.cpp index 2b672cf..901f29f 100644 --- a/noncore/apps/opie-console/metafactory.cpp +++ b/noncore/apps/opie-console/metafactory.cpp | |||
@@ -117,23 +117,32 @@ ProfileDialogWidget *MetaFactory::newTerminalPlugin( const QString& str, QWidget | |||
117 | } | 117 | } |
118 | EmulationLayer* MetaFactory::newEmulationLayer( const QString& str, WidgetLayer* wid) { | 118 | EmulationLayer* MetaFactory::newEmulationLayer( const QString& str, WidgetLayer* wid) { |
119 | EmulationLayer* lay = 0l; | 119 | EmulationLayer* lay = 0l; |
120 | 120 | ||
121 | QMap<QString, emulationLayer>::Iterator it; | 121 | QMap<QString, emulationLayer>::Iterator it; |
122 | it = m_emu.find( str ); | 122 | it = m_emu.find( str ); |
123 | if ( it != m_emu.end() ) { | 123 | if ( it != m_emu.end() ) { |
124 | lay = (*(it.data() ) )(wid); | 124 | lay = (*(it.data() ) )(wid); |
125 | } | 125 | } |
126 | 126 | ||
127 | return lay; | 127 | return lay; |
128 | } | 128 | } |
129 | FileTransferLayer* MetaFactory::newFileTransfer(const QString& str, IOLayer* lay ) { | ||
130 | FileTransferLayer* file = 0l; | ||
131 | QMap<QString, filelayer>::Iterator it; | ||
132 | it = m_fileFact.find( str ); | ||
133 | if ( it != m_fileFact.end() ) { | ||
134 | file = (*(it.data() ) )(lay); | ||
135 | } | ||
136 | return file; | ||
137 | } | ||
129 | QCString MetaFactory::internal( const QString& str )const { | 138 | QCString MetaFactory::internal( const QString& str )const { |
130 | return m_strings[str]; | 139 | return m_strings[str]; |
131 | } | 140 | } |
132 | QString MetaFactory::external( const QCString& str )const { | 141 | QString MetaFactory::external( const QCString& str )const { |
133 | QMap<QString, QCString>::ConstIterator it; | 142 | QMap<QString, QCString>::ConstIterator it; |
134 | for ( it = m_strings.begin(); it != m_strings.end(); ++it ) { | 143 | for ( it = m_strings.begin(); it != m_strings.end(); ++it ) { |
135 | if ( it.data() == str ) | 144 | if ( it.data() == str ) |
136 | return it.key(); | 145 | return it.key(); |
137 | } | 146 | } |
138 | return QString::null; | 147 | return QString::null; |
139 | } | 148 | } |