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 @@ -1,38 +1,40 @@ #ifndef OPIE_FILE_LISTER_H #define OPIE_FILE_LISTER_H #include <qfileinfo.h> #include <qmap.h> #include <qstring.h> #include <qstringlist.h> +class OPixmapProvider; class OFileSelector; /** * lister is something like KIO but very * very basic and currently only for * populating our views. * This is a base class which needs to be implemented. * @see OLocalLister for a filesystem based implementation */ class OLister { public: OLister( OFileSelector* ); virtual ~OLister(); virtual void reparse(const QString& path) = 0; /** * return a list of available mimetypes */ virtual QMap<QString, QStringList> mimeTypes( const QString& dir ) = 0; + void setPixmapProvider( OPixmapProvider* ); protected: bool showFiles()const; bool showDirs()const; bool compliesMime( const QString& mime ); void addFile( const QString& mine, QFileInfo*, bool isSymlink = FALSE ); void addFile( const QString& mine, const QString& path, const QString& file, bool isSymlink = FALSE ); @@ -42,19 +44,21 @@ protected: void addDir( const QString& mine, const QString& path, const QString& dir, bool isSymlink = FALSE ); void addSymlink( const QString& mine, QFileInfo* info, bool isSymlink = FALSE); void addSymlink( const QString& mine, const QString& path, const QString& name, bool isSymlink = FALSE ); OFileSelector* view(); + OPixmapProvider* provider(); private: OFileSelector* m_view; + OPixmapProvider* m_prov; }; #endif |