qt/LedOK/program/copydirthread.h

22 lines
418 B
C
Raw Normal View History

2023-04-18 14:14:46 +08:00
#ifndef COPYDIRTHREAD_H
#define COPYDIRTHREAD_H
#include <QThread>
class CopyDirThread : public QThread {
Q_OBJECT
public:
CopyDirThread();
QStringList dirSrcs;
QString dirDst;
protected:
void run();
bool copyDir(const QString &fromDir, const QString &toDir, bool coverFileIfExist);
int i{0};
int copiedSize = 0;
signals:
void sigProgress(int, int);
};
#endif // COPYDIRTHREAD_H