From ebdc2d346272bae27c867b855207993985df4450 Mon Sep 17 00:00:00 2001 From: alwin Date: Tue, 02 Nov 2004 17:52:41 +0000 Subject: if wanted the user may search directories recursiv --- (limited to 'noncore/graphics/opie-eye/impl/dir/dir_lister.h') 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 @@ -13,7 +13,7 @@ class Config; class Dir_DirLister : public PDirLister { Q_OBJECT public: - Dir_DirLister( bool ); + Dir_DirLister(bool,bool,int); virtual ~Dir_DirLister(){} QString defaultPath()const; @@ -30,8 +30,16 @@ public: virtual QString nameToFname(const QString&name)const; private: - bool m_allFiles; + bool m_allFiles:1; + bool m_recursive:1; + int m_recDepth; QDir m_currentDir; + //! recursive listing. + /*! + * \param path this is the offset to the current path. eg. when currentDepth = 0 then it MUST empty + */ + QStringList recFiles(const QString&path,int currentDepth)const; + QString m_Filter; }; #endif -- cgit v0.9.0.2