Diffstat (limited to 'libopie/ofileselector/olister.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | libopie/ofileselector/olister.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libopie/ofileselector/olister.h b/libopie/ofileselector/olister.h index ef61cab..0885525 100644 --- a/libopie/ofileselector/olister.h +++ b/libopie/ofileselector/olister.h | |||
@@ -3,12 +3,13 @@ | |||
3 | 3 | ||
4 | #include <qfileinfo.h> | 4 | #include <qfileinfo.h> |
5 | #include <qmap.h> | 5 | #include <qmap.h> |
6 | #include <qstring.h> | 6 | #include <qstring.h> |
7 | #include <qstringlist.h> | 7 | #include <qstringlist.h> |
8 | 8 | ||
9 | class OPixmapProvider; | ||
9 | class OFileSelector; | 10 | class OFileSelector; |
10 | /** | 11 | /** |
11 | * lister is something like KIO but very | 12 | * lister is something like KIO but very |
12 | * very basic and currently only for | 13 | * very basic and currently only for |
13 | * populating our views. | 14 | * populating our views. |
14 | * This is a base class which needs to be implemented. | 15 | * This is a base class which needs to be implemented. |
@@ -21,12 +22,13 @@ public: | |||
21 | virtual void reparse(const QString& path) = 0; | 22 | virtual void reparse(const QString& path) = 0; |
22 | 23 | ||
23 | /** | 24 | /** |
24 | * return a list of available mimetypes | 25 | * return a list of available mimetypes |
25 | */ | 26 | */ |
26 | virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0; | 27 | virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0; |
28 | void setPixmapProvider( OPixmapProvider* ); | ||
27 | 29 | ||
28 | protected: | 30 | protected: |
29 | bool showFiles()const; | 31 | bool showFiles()const; |
30 | bool showDirs()const; | 32 | bool showDirs()const; |
31 | bool compliesMime( const QString& mime ); | 33 | bool compliesMime( const QString& mime ); |
32 | void addFile( const QString& mine, | 34 | void addFile( const QString& mine, |
@@ -48,13 +50,15 @@ protected: | |||
48 | bool isSymlink = FALSE); | 50 | bool isSymlink = FALSE); |
49 | void addSymlink( const QString& mine, | 51 | void addSymlink( const QString& mine, |
50 | const QString& path, | 52 | const QString& path, |
51 | const QString& name, | 53 | const QString& name, |
52 | bool isSymlink = FALSE ); | 54 | bool isSymlink = FALSE ); |
53 | OFileSelector* view(); | 55 | OFileSelector* view(); |
56 | OPixmapProvider* provider(); | ||
54 | private: | 57 | private: |
55 | OFileSelector* m_view; | 58 | OFileSelector* m_view; |
59 | OPixmapProvider* m_prov; | ||
56 | 60 | ||
57 | 61 | ||
58 | }; | 62 | }; |
59 | 63 | ||
60 | #endif | 64 | #endif |