qt/LedOK/program/copydirthread.h

24 lines
499 B
C
Raw Permalink 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;
void run();
2024-02-21 18:08:50 +08:00
void move();
protected:
2023-04-18 14:14:46 +08:00
bool copyDir(const QString &fromDir, const QString &toDir, bool coverFileIfExist);
2024-02-21 18:08:50 +08:00
bool moveDir(const QString &fromDir, const QString &toDir);
2023-04-18 14:14:46 +08:00
int i{0};
int copiedSize = 0;
signals:
void sigProgress(int, int);
};
#endif // COPYDIRTHREAD_H