Diffstat (limited to 'noncore/graphics/opie-eye/impl/dir/dir_lister.h') (more/less context) (ignore whitespace changes)
-rw-r--r-- | noncore/graphics/opie-eye/impl/dir/dir_lister.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/noncore/graphics/opie-eye/impl/dir/dir_lister.h b/noncore/graphics/opie-eye/impl/dir/dir_lister.h index d6ca6c0..445adbf 100644 --- a/noncore/graphics/opie-eye/impl/dir/dir_lister.h +++ b/noncore/graphics/opie-eye/impl/dir/dir_lister.h | |||
@@ -1,37 +1,45 @@ | |||
1 | /* | 1 | /* |
2 | * GPLv2 zecke@handhelds.org | 2 | * GPLv2 zecke@handhelds.org |
3 | */ | 3 | */ |
4 | 4 | ||
5 | #ifndef DIR_LISTER_INTERFACE_LISTER_H | 5 | #ifndef DIR_LISTER_INTERFACE_LISTER_H |
6 | #define DIR_LISTER_INTERFACE_LISTER_H | 6 | #define DIR_LISTER_INTERFACE_LISTER_H |
7 | 7 | ||
8 | #include <qdir.h> | 8 | #include <qdir.h> |
9 | 9 | ||
10 | #include <iface/dirlister.h> | 10 | #include <iface/dirlister.h> |
11 | 11 | ||
12 | class Config; | 12 | class Config; |
13 | class Dir_DirLister : public PDirLister { | 13 | class Dir_DirLister : public PDirLister { |
14 | Q_OBJECT | 14 | Q_OBJECT |
15 | public: | 15 | public: |
16 | Dir_DirLister( bool ); | 16 | Dir_DirLister(bool,bool,int); |
17 | virtual ~Dir_DirLister(){} | 17 | virtual ~Dir_DirLister(){} |
18 | 18 | ||
19 | QString defaultPath()const; | 19 | QString defaultPath()const; |
20 | QString setStartPath( const QString& ); | 20 | QString setStartPath( const QString& ); |
21 | QString currentPath()const; | 21 | QString currentPath()const; |
22 | QStringList folders()const; | 22 | QStringList folders()const; |
23 | QStringList files()const; | 23 | QStringList files()const; |
24 | 24 | ||
25 | void deleteImage( const QString& ); | 25 | void deleteImage( const QString& ); |
26 | void thumbNail( const QString&, int, int ); | 26 | void thumbNail( const QString&, int, int ); |
27 | QImage image( const QString&, Factor, int ); | 27 | QImage image( const QString&, Factor, int ); |
28 | void imageInfo( const QString& ); | 28 | void imageInfo( const QString& ); |
29 | void fullImageInfo( const QString& ); | 29 | void fullImageInfo( const QString& ); |
30 | virtual QString nameToFname(const QString&name)const; | 30 | virtual QString nameToFname(const QString&name)const; |
31 | 31 | ||
32 | private: | 32 | private: |
33 | bool m_allFiles; | 33 | bool m_allFiles:1; |
34 | bool m_recursive:1; | ||
35 | int m_recDepth; | ||
34 | QDir m_currentDir; | 36 | QDir m_currentDir; |
37 | //! recursive listing. | ||
38 | /*! | ||
39 | * \param path this is the offset to the current path. eg. when currentDepth = 0 then it MUST empty | ||
40 | */ | ||
41 | QStringList recFiles(const QString&path,int currentDepth)const; | ||
42 | QString m_Filter; | ||
35 | }; | 43 | }; |
36 | 44 | ||
37 | #endif | 45 | #endif |