summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/ofilefactory.cpp
authorzecke <zecke>2002-10-05 20:49:38 (UTC)
committer zecke <zecke>2002-10-05 20:49:38 (UTC)
commit19c0a4610292a95281a64655cef9c2d695a214dc (patch) (side-by-side diff)
treedde4afda2629a6e10d545d9492ada7b43e431ee7 /libopie/ofileselector/ofilefactory.cpp
parentd7f9d00fcc9261db9c4af4f1b4afde9d50e8a2a2 (diff)
downloadopie-19c0a4610292a95281a64655cef9c2d695a214dc.zip
opie-19c0a4610292a95281a64655cef9c2d695a214dc.tar.gz
opie-19c0a4610292a95281a64655cef9c2d695a214dc.tar.bz2
more steps to make ofileselector modular
We now got the API for a factory so switching should work in future and we now got a OPixmapProvider which provides us with pixmaps.... So an ImageViewer could install a differen OPixmapProvider and a different OFileView to make Previewing work
Diffstat (limited to 'libopie/ofileselector/ofilefactory.cpp') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/ofilefactory.cpp40
1 files changed, 40 insertions, 0 deletions
diff --git a/libopie/ofileselector/ofilefactory.cpp b/libopie/ofileselector/ofilefactory.cpp
new file mode 100644
index 0000000..f752149
--- a/dev/null
+++ b/libopie/ofileselector/ofilefactory.cpp
@@ -0,0 +1,40 @@
+#include "ofilefactory.h"
+
+OFileFactory::OFileFactory() {
+}
+OFileFactory::~OFileFactory() {
+}
+QStringList OFileFactory::lister()const {
+ QStringList list;
+ QMap<QString, listerFact>::ConstIterator it;
+ for ( it = m_lister.begin(); it != m_lister.end(); ++it ) {
+ list << (*it);
+ }
+ return list;
+}
+QStringList OFileFactory::views()const {
+ QStringList list;
+
+
+ return list;
+}
+OFileView* OFileFactory::view( const QString& name,
+ OFileSelector*, QWidget* ) {
+
+}
+OLister* OFileFactory::lister(const QString&, OFileSelector*) {
+
+}
+void OFileFactory::addLister( const QString&, listerFact fact ) {
+
+}
+void OFileFactory::addView( const QString&, viewFact fact ) {
+
+
+}
+void OFileFactory::removeLister( const QString& ) {
+
+}
+void OFileFactory::removeView( const QString& ) {
+
+}