1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
| #ifndef FILECOPYDIALOG_H
| #define FILECOPYDIALOG_H
|
| #include <QDialog>
| #include "Common/filemanage.h"
| #include "qtimer.h"
|
| namespace Ui {
| class FileCopyDialog;
| }
|
| class FileCopyDialog : public QDialog
| {
| Q_OBJECT
|
| public:
| explicit FileCopyDialog(QWidget *parent = 0);
| ~FileCopyDialog();
| void CopyFiles(const QStringList &fromDir, const QString &toDir,
| bool coverFileIfExist);
|
| private:
| QTimer *timer;
| int value;
|
| private slots:
| void on_pushButton_released();
| void updateProgress();
| void valueAdd();
| void updateTimeSetProgress();
|
| private:
| Ui::FileCopyDialog *ui;
| };
|
| #endif // FILECOPYDIALOG_H
|
|