summaryrefslogtreecommitdiff
path: root/libopie/ofileselector/olister.h
authorzecke <zecke>2002-09-15 22:19:08 (UTC)
committer zecke <zecke>2002-09-15 22:19:08 (UTC)
commitaabe567e96d040c483b947f5758a1405cc312fdc (patch) (unidiff)
treeceb8ebba2384f1737277c0dfb89256eaa2ac1717 /libopie/ofileselector/olister.h
parent09561ee29b5288e02e513172fc590d27e9e09333 (diff)
downloadopie-aabe567e96d040c483b947f5758a1405cc312fdc.zip
opie-aabe567e96d040c483b947f5758a1405cc312fdc.tar.gz
opie-aabe567e96d040c483b947f5758a1405cc312fdc.tar.bz2
add files
Diffstat (limited to 'libopie/ofileselector/olister.h') (more/less context) (ignore whitespace changes)
-rw-r--r--libopie/ofileselector/olister.h59
1 files changed, 59 insertions, 0 deletions
diff --git a/libopie/ofileselector/olister.h b/libopie/ofileselector/olister.h
new file mode 100644
index 0000000..081b876
--- a/dev/null
+++ b/libopie/ofileselector/olister.h
@@ -0,0 +1,59 @@
1#ifndef OPIE_FILE_LISTER_H
2#define OPIE_FILE_LISTER_H
3
4#include <qfileinfo.h>
5#include <qmap.h>
6#include <qstring.h>
7
8class OFileSelector;
9/**
10 * lister is something like KIO but very
11 * very basic and currently only for
12 * populating our views.
13 * This is a base class which needs to be implemented.
14 * @see OLocalLister for a filesystem based implementation
15 */
16class OLister {
17public:
18 OLister( OFileSelector* );
19 virtual ~OLister();
20 virtual void reparse(const QString& path) = 0;
21
22 /**
23 * return a list of available mimetypes
24 */
25 virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0;
26
27protected:
28 bool showFiles()const;
29 bool showDirs()const;
30 bool compliesMime( const QString& mime );
31 void addFile( const QString& mine,
32 QFileInfo*,
33 bool isSymlink = FALSE );
34 void addFile( const QString& mine,
35 const QString& path,
36 const QString& file,
37 bool isSymlink = FALSE );
38 void addDir( const QString& mine,
39 QFileInfo*,
40 bool isSymlink = FALSE );
41 void addDir( const QString& mine,
42 const QString& path,
43 const QString& dir,
44 bool isSymlink = FALSE );
45 void addSymlink( const QString& mine,
46 QFileInfo* info,
47 bool isSymlink = FALSE);
48 void addSymlink( const QString& mine,
49 const QString& path,
50 const QString& name,
51 bool isSymlink = FALSE );
52 OFileSelector* view();
53private:
54 OFileSelector* m_view;
55
56
57};
58
59#endif