Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

dirlister.h

Go to the documentation of this file.
00001 /*
00002  * GPLv2 zecke@handhelds.org
00003  * No WArranty...
00004  */
00005 
00006 #ifndef PHUNK_DIR_LISTER_H
00007 #define PHUNK_DIR_LISTER_H
00008 
00009 #include <qobject.h>
00010 #include <qstring.h>
00011 #include <qstringlist.h>
00012 
00013 
00014 class PDirLister : public QObject {
00015     Q_OBJECT
00016 public:
00017     enum Factor { Width, Height, None };
00018 
00019     PDirLister( const char* name );
00020 
00021     virtual QString defaultPath()const = 0;
00022     virtual QString setStartPath( const QString& ) = 0;
00023     virtual QString currentPath()const = 0;
00024     virtual QStringList folders()const = 0;
00025     virtual QStringList files()const = 0;
00026     virtual QString nameToFname(const QString&name)const = 0;
00027     virtual QString dirUp(const QString&)const ;
00028 
00029 
00030 public slots:
00031     virtual void deleteImage( const QString& ) = 0;
00032     virtual void imageInfo( const QString&) = 0;
00033     virtual void fullImageInfo( const QString& ) = 0;
00034     virtual void thumbNail( const QString&, int max_wid, int max_h ) = 0;
00035     virtual QImage image(  const QString&, Factor, int max = 0) = 0;
00036 
00037 
00038 signals:
00039     void sig_dirchanged();
00040     void sig_filechanged();
00041     void sig_start();
00042     void sig_end();
00043 // If this app ever happens to get multithreaded...
00044     void sig_thumbInfo( const QString&, const QString& );
00045     void sig_fullInfo( const QString&, const QString& );
00046     void sig_thumbNail( const QString&, const QPixmap& );
00047     void sig_reloadDir();
00048 
00049 protected:
00050     virtual ~PDirLister();
00051 };
00052 
00053 #endif

Generated on Sat Nov 5 16:17:30 2005 for OPIE by  doxygen 1.4.2