Diffstat (limited to 'noncore/apps/opie-console/metafactory.h') (more/less context) (show whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/noncore/apps/opie-console/metafactory.h b/noncore/apps/opie-console/metafactory.h index aae9391..bdd2ad2 100644 --- a/noncore/apps/opie-console/metafactory.h +++ b/noncore/apps/opie-console/metafactory.h | |||
@@ -4,40 +4,42 @@ | |||
4 | /** | 4 | /** |
5 | * The MetaFactory is used to keep track of all IOLayers, FileTransferLayers and ConfigWidgets | 5 | * The MetaFactory is used to keep track of all IOLayers, FileTransferLayers and ConfigWidgets |
6 | * and to instantiate these implementations on demand | 6 | * and to instantiate these implementations on demand |
7 | */ | 7 | */ |
8 | 8 | ||
9 | #include <qwidget.h> | 9 | #include <qwidget.h> |
10 | #include <qmap.h> | 10 | #include <qmap.h> |
11 | 11 | ||
12 | #include <qpe/config.h> | 12 | #include <qpe/config.h> |
13 | 13 | ||
14 | #include "io_layer.h" | 14 | #include "io_layer.h" |
15 | #include "file_layer.h" | 15 | #include "file_layer.h" |
16 | 16 | #include "profile.h" | |
17 | 17 | ||
18 | class MetaFactory { | 18 | class MetaFactory { |
19 | public: | 19 | public: |
20 | typedef QWidget* (*configWidget)(QWidget* parent); | 20 | typedef QWidget* (*configWidget)(QWidget* parent); |
21 | typedef IOLayer* (*iolayer)(const Config& ); | 21 | typedef IOLayer* (*iolayer)(const Profile& ); |
22 | typedef FileTransferLayer* (*filelayer)(IOLayer*); | 22 | typedef FileTransferLayer* (*filelayer)(IOLayer*); |
23 | 23 | ||
24 | MetaFactory(); | 24 | MetaFactory(); |
25 | ~MetaFactory(); | 25 | ~MetaFactory(); |
26 | 26 | ||
27 | void addConfigWidgetFactory( const QString&, | 27 | void addConfigWidgetFactory( const QString&, |
28 | configWidget ); | 28 | configWidget ); |
29 | void addIOLayerFactory(const QString&, | 29 | void addIOLayerFactory(const QString&, |
30 | iolayer ); | 30 | iolayer ); |
31 | void addFileTransferLayer( const QString&, | 31 | void addFileTransferLayer( const QString&, |
32 | filelayer ); | 32 | filelayer ); |
33 | QStringList ioLayers()const; | 33 | QStringList ioLayers()const; |
34 | QStringList configWidgets()const; | 34 | QStringList configWidgets()const; |
35 | QStringList fileTransferLayers()const; | 35 | QStringList fileTransferLayers()const; |
36 | IOLayer* newIOLayer( const QString&,const Profile& ); | ||
37 | |||
36 | private: | 38 | private: |
37 | QMap<QString, configWidget> m_confFact; | 39 | QMap<QString, configWidget> m_confFact; |
38 | QMap<QString, iolayer> m_layerFact; | 40 | QMap<QString, iolayer> m_layerFact; |
39 | QMap<QString, filelayer> m_fileFact; | 41 | QMap<QString, filelayer> m_fileFact; |
40 | }; | 42 | }; |
41 | 43 | ||
42 | 44 | ||
43 | #endif | 45 | #endif |