author | wazlaf <wazlaf> | 2002-09-28 15:21:53 (UTC) |
---|---|---|
committer | wazlaf <wazlaf> | 2002-09-28 15:21:53 (UTC) |
commit | 18d575d0ee47a0700091de81bc3e8c54be4eae18 (patch) (unidiff) | |
tree | a4a890a3d9e823ed75ba0b5a51a67b6e47a57ab9 /noncore/apps/opie-console/metafactory.h | |
parent | ea1975bdf411de3e08e7b84d2480a522596fe143 (diff) | |
download | opie-18d575d0ee47a0700091de81bc3e8c54be4eae18.zip opie-18d575d0ee47a0700091de81bc3e8c54be4eae18.tar.gz opie-18d575d0ee47a0700091de81bc3e8c54be4eae18.tar.bz2 |
indenting, comments
Diffstat (limited to 'noncore/apps/opie-console/metafactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.h | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/noncore/apps/opie-console/metafactory.h b/noncore/apps/opie-console/metafactory.h index 9c0f0a1..aae9391 100644 --- a/noncore/apps/opie-console/metafactory.h +++ b/noncore/apps/opie-console/metafactory.h | |||
@@ -1,46 +1,43 @@ | |||
1 | #ifndef OPIE_META_FACTORY_H | 1 | #ifndef OPIE_META_FACTORY_H |
2 | #define OPIE_META_FACTORY_H | 2 | #define OPIE_META_FACTORY_H |
3 | 3 | ||
4 | /** | 4 | /** |
5 | * meta factory is our factory servie | 5 | * The MetaFactory is used to keep track of all IOLayers, FileTransferLayers and ConfigWidgets |
6 | * and to instantiate these implementations on demand | ||
6 | */ | 7 | */ |
7 | 8 | ||
8 | #include <qwidget.h> | 9 | #include <qwidget.h> |
9 | #include <qmap.h> | 10 | #include <qmap.h> |
10 | 11 | ||
11 | #include <qpe/config.h> | 12 | #include <qpe/config.h> |
12 | 13 | ||
13 | #include "io_layer.h" | 14 | #include "io_layer.h" |
14 | #include "file_layer.h" | 15 | #include "file_layer.h" |
15 | 16 | ||
16 | 17 | ||
17 | class MetaFactory { | 18 | class MetaFactory { |
18 | public: | 19 | public: |
19 | typedef QWidget* (*configWidget)(QWidget* parent); | 20 | typedef QWidget* (*configWidget)(QWidget* parent); |
20 | typedef IOLayer* (*iolayer)(const Config& ); | 21 | typedef IOLayer* (*iolayer)(const Config& ); |
21 | typedef FileTransferLayer* (*filelayer)(IOLayer*); | 22 | typedef FileTransferLayer* (*filelayer)(IOLayer*); |
23 | |||
22 | MetaFactory(); | 24 | MetaFactory(); |
23 | ~MetaFactory(); | 25 | ~MetaFactory(); |
24 | 26 | ||
25 | void addConfigWidgetFactory( const QString&, | 27 | void addConfigWidgetFactory( const QString&, |
26 | configWidget ); | 28 | configWidget ); |
27 | void addIOLayerFactory(const QString&, | 29 | void addIOLayerFactory(const QString&, |
28 | iolayer ); | 30 | iolayer ); |
29 | void addFileTransferLayer( const QString&, | 31 | void addFileTransferLayer( const QString&, |
30 | filelayer ); | 32 | filelayer ); |
31 | QStringList ioLayers()const; | 33 | QStringList ioLayers()const; |
32 | QStringList configWidgets()const; | 34 | QStringList configWidgets()const; |
33 | QStringList fileTransferLayers()const; | 35 | QStringList fileTransferLayers()const; |
34 | |||
35 | |||
36 | private: | 36 | private: |
37 | QMap<QString, configWidget> m_confFact; | 37 | QMap<QString, configWidget> m_confFact; |
38 | QMap<QString, iolayer> m_layerFact; | 38 | QMap<QString, iolayer> m_layerFact; |
39 | QMap<QString, filelayer> m_fileFact; | 39 | QMap<QString, filelayer> m_fileFact; |
40 | |||
41 | |||
42 | |||
43 | }; | 40 | }; |
44 | 41 | ||
45 | 42 | ||
46 | #endif | 43 | #endif |