summaryrefslogtreecommitdiff
path: root/noncore/apps/opie-console/metafactory.cpp
blob: bef6ec773896683b982ea0d393fc681245160a81 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44

#include "metafactory.h"

MetaFactory::MetaFactory() {
}
MetaFactory::~MetaFactory() {

}
void MetaFactory::addConfigWidgetFactory( const QString& str,
                                          configWidget wid) {
    m_confFact.insert( str, wid );
}
void MetaFactory::addIOLayerFactory( const QString& str,
                                     iolayer lay) {
    m_layerFact.insert( str, lay );
}
void MetaFactory::addFileTransferLayer( const QString& str,
                                        filelayer lay) {
    m_fileFact.insert( str, lay );
}
QStringList MetaFactory::ioLayers()const {
    QStringList list;
    QMap<QString, iolayer>::ConstIterator it;
    for (it = m_layerFact.begin(); it != m_layerFact.end(); ++it ) {
        list << it.key();
    }
    return list;
}
QStringList MetaFactory::configWidgets()const {
    QStringList list;
    QMap<QString,  configWidget>::ConstIterator it;
    for ( it = m_confFact.begin(); it != m_confFact.end(); ++it ) {
        list << it.key();
    }
    return list;
}
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;
}