author | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
---|---|---|
committer | zecke <zecke> | 2002-09-26 20:04:21 (UTC) |
commit | 48b3a7159c613b59ca3f838517373620b8afd1d5 (patch) (unidiff) | |
tree | e634b8bd762b38e49bc5fbee3c1719c5b596f8a2 /noncore/apps/opie-console/metafactory.h | |
parent | 50edb4865c45aa51874b2284d12939bf4fe69041 (diff) | |
download | opie-48b3a7159c613b59ca3f838517373620b8afd1d5.zip opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.gz opie-48b3a7159c613b59ca3f838517373620b8afd1d5.tar.bz2 |
The basic gui outline
a MainWindow
a Session
and a Factory
Diffstat (limited to 'noncore/apps/opie-console/metafactory.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/apps/opie-console/metafactory.h | 46 |
1 files changed, 46 insertions, 0 deletions
diff --git a/noncore/apps/opie-console/metafactory.h b/noncore/apps/opie-console/metafactory.h new file mode 100644 index 0000000..9c0f0a1 --- a/dev/null +++ b/noncore/apps/opie-console/metafactory.h | |||
@@ -0,0 +1,46 @@ | |||
1 | #ifndef OPIE_META_FACTORY_H | ||
2 | #define OPIE_META_FACTORY_H | ||
3 | |||
4 | /** | ||
5 | * meta factory is our factory servie | ||
6 | */ | ||
7 | |||
8 | #include <qwidget.h> | ||
9 | #include <qmap.h> | ||
10 | |||
11 | #include <qpe/config.h> | ||
12 | |||
13 | #include "io_layer.h" | ||
14 | #include "file_layer.h" | ||
15 | |||
16 | |||
17 | class MetaFactory { | ||
18 | public: | ||
19 | typedef QWidget* (*configWidget)(QWidget* parent); | ||
20 | typedef IOLayer* (*iolayer)(const Config& ); | ||
21 | typedef FileTransferLayer* (*filelayer)(IOLayer*); | ||
22 | MetaFactory(); | ||
23 | ~MetaFactory(); | ||
24 | |||
25 | void addConfigWidgetFactory( const QString&, | ||
26 | configWidget ); | ||
27 | void addIOLayerFactory(const QString&, | ||
28 | iolayer ); | ||
29 | void addFileTransferLayer( const QString&, | ||
30 | filelayer ); | ||
31 | QStringList ioLayers()const; | ||
32 | QStringList configWidgets()const; | ||
33 | QStringList fileTransferLayers()const; | ||
34 | |||
35 | |||
36 | private: | ||
37 | QMap<QString, configWidget> m_confFact; | ||
38 | QMap<QString, iolayer> m_layerFact; | ||
39 | QMap<QString, filelayer> m_fileFact; | ||
40 | |||
41 | |||
42 | |||
43 | }; | ||
44 | |||
45 | |||
46 | #endif | ||