Diffstat (limited to 'noncore/graphics/opie-eye/iface/dirlister.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/iface/dirlister.h | 47 |
1 files changed, 47 insertions, 0 deletions
diff --git a/noncore/graphics/opie-eye/iface/dirlister.h b/noncore/graphics/opie-eye/iface/dirlister.h new file mode 100644 index 0000000..fcc55ec --- a/dev/null +++ b/noncore/graphics/opie-eye/iface/dirlister.h | |||
@@ -0,0 +1,47 @@ | |||
1 | /* | ||
2 | * GPLv2 zecke@handhelds.org | ||
3 | * No WArranty... | ||
4 | */ | ||
5 | |||
6 | #ifndef PHUNK_DIR_LISTER_H | ||
7 | #define PHUNK_DIR_LISTER_H | ||
8 | |||
9 | #include <qobject.h> | ||
10 | #include <qstring.h> | ||
11 | #include <qstringlist.h> | ||
12 | |||
13 | |||
14 | class PDirLister : public QObject { | ||
15 | Q_OBJECT | ||
16 | public: | ||
17 | enum Factor { Width, Height, None }; | ||
18 | |||
19 | PDirLister( const char* name ); | ||
20 | |||
21 | virtual QString defaultPath()const = 0; | ||
22 | virtual QString setStartPath( const QString& ) = 0; | ||
23 | virtual QString currentPath()const = 0; | ||
24 | virtual QStringList folders()const = 0; | ||
25 | virtual QStringList files()const = 0; | ||
26 | public slots: | ||
27 | virtual void deleteImage( const QString& ) = 0; | ||
28 | virtual void imageInfo( const QString&) = 0; | ||
29 | virtual void fullImageInfo( const QString& ) = 0; | ||
30 | virtual void thumbNail( const QString&, int max_wid, int max_h ) = 0; | ||
31 | virtual QImage image( const QString&, Factor, int max = 0) = 0; | ||
32 | |||
33 | signals: | ||
34 | void sig_dirchanged(); | ||
35 | void sig_filechanged(); | ||
36 | void sig_start(); | ||
37 | void sig_end(); | ||
38 | // If this app ever happens to get multithreaded... | ||
39 | void sig_thumbInfo( const QString&, const QString& ); | ||
40 | void sig_fullInfo( const QString&, const QString& ); | ||
41 | void sig_thumbNail( const QString&, const QPixmap& ); | ||
42 | |||
43 | protected: | ||
44 | ~PDirLister(); | ||
45 | }; | ||
46 | |||
47 | #endif | ||