17 #ifndef TIANCHI_TCDIR_H
18 #define TIANCHI_TCDIR_H
20 #include <tianchi/tcglobal.h>
23 #include <QStringList>
27 class TIANCHI_API
TcDir :
public QObject
31 explicit TcDir(QObject *parent = 0);
37 QStringList findFiles(
const QString &path,
38 const QStringList &nameFilters = QStringList());
46 int copyDirs(
const QString &fromPath,
const QString &toPath,
47 const QStringList &nameFilters = QStringList(),
48 bool overWrite =
true);
55 int copyFiles(
const QStringList &files,
const QString &toPath,
56 bool overWrite =
true);
59 void resetCopyFileCount();
65 void currentFile(
int count,
const QString &name);
70 void doDirTree(
const QString &fromPath,
const QString &toPath,
71 const QStringList &nameFilters,
bool overWrite,
72 QStringList &findFiles,
bool isFind);
73 QString formatPath(
const QString &path);
76 #endif // TIANCHI_TCDIR_H