Diffstat (limited to 'libopie/ofileselector/ofilefactory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/ofilefactory.cpp | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/libopie/ofileselector/ofilefactory.cpp b/libopie/ofileselector/ofilefactory.cpp deleted file mode 100644 index aa143b4..0000000 --- a/libopie/ofileselector/ofilefactory.cpp +++ b/dev/null | |||
@@ -1,58 +0,0 @@ | |||
1 | #include "ofilefactory.h" | ||
2 | |||
3 | OFileFactory::OFileFactory() { | ||
4 | } | ||
5 | OFileFactory::~OFileFactory() { | ||
6 | } | ||
7 | QStringList OFileFactory::lister()const { | ||
8 | QStringList list; | ||
9 | QMap<QString, listerFact>::ConstIterator it; | ||
10 | for ( it = m_lister.begin(); it != m_lister.end(); ++it ) { | ||
11 | list << it.key(); | ||
12 | } | ||
13 | return list; | ||
14 | } | ||
15 | QStringList OFileFactory::views()const { | ||
16 | QStringList list; | ||
17 | QMap<QString, viewFact>::ConstIterator it; | ||
18 | for (it = m_view.begin(); it != m_view.end(); ++it ) { | ||
19 | list << it.key(); | ||
20 | } | ||
21 | |||
22 | return list; | ||
23 | } | ||
24 | OFileView* OFileFactory::view( const QString& name, | ||
25 | OFileSelector* sel, QWidget* par) { | ||
26 | OFileView* vie= 0l; | ||
27 | |||
28 | QMap<QString, viewFact>::Iterator it; | ||
29 | it = m_view.find( name ); | ||
30 | |||
31 | if ( it != m_view.end() ) { | ||
32 | vie = (*(it.data() ) )(sel, par); | ||
33 | } | ||
34 | return vie; | ||
35 | } | ||
36 | OLister* OFileFactory::lister(const QString& name, OFileSelector* sel) { | ||
37 | OLister* lis = 0l; | ||
38 | |||
39 | QMap<QString, listerFact>::Iterator it; | ||
40 | it = m_lister.find( name ); | ||
41 | if ( it != m_lister.end() ) { | ||
42 | lis = (*(it.data() ) )(sel); | ||
43 | } | ||
44 | |||
45 | return lis; | ||
46 | } | ||
47 | void OFileFactory::addLister( const QString& name, listerFact fact ) { | ||
48 | m_lister.insert( name, fact ); | ||
49 | } | ||
50 | void OFileFactory::addView( const QString& name, viewFact fact ) { | ||
51 | m_view.insert( name, fact ); | ||
52 | } | ||
53 | void OFileFactory::removeLister( const QString& name) { | ||
54 | m_lister.remove( name ); | ||
55 | } | ||
56 | void OFileFactory::removeView( const QString& name) { | ||
57 | m_view.remove( name ); | ||
58 | } | ||