1.加了一个历遍所有子目录的类

2.加了读入所有匹配数据的功能。

Signed-off-by: dmy@lab <dmy@lab.lab>
This commit is contained in:
dmy@lab
2015-01-15 20:05:44 +08:00
parent 9259da0e93
commit 214c17dd10
8 changed files with 200 additions and 4 deletions

View File

@@ -0,0 +1,21 @@
#ifndef RECURSEDIR_H
#define RECURSEDIR_H
#include <QString>
#include <QDir>
#include <QStringList>
class RecurseDir
{
public:
RecurseDir();
~RecurseDir();
QStringList getFiles();
bool setDir(const QString& dir);
private:
bool lsDir(const QString& dir);
private:
QStringList filePathList;
};
#endif // RECURSEDIR_H