qt/LedOK/program/copydirthread.h
2024-02-21 18:08:50 +08:00

24 lines
499 B
C++

#ifndef COPYDIRTHREAD_H
#define COPYDIRTHREAD_H
#include <QThread>
class CopyDirThread : public QThread {
Q_OBJECT
public:
CopyDirThread();
QStringList dirSrcs;
QString dirDst;
void run();
void move();
protected:
bool copyDir(const QString &fromDir, const QString &toDir, bool coverFileIfExist);
bool moveDir(const QString &fromDir, const QString &toDir);
int i{0};
int copiedSize = 0;
signals:
void sigProgress(int, int);
};
#endif // COPYDIRTHREAD_H