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
37
38
39
40
41
42
| #ifndef FILECOPYDIALOG_H
| #define FILECOPYDIALOG_H
|
| #include <QDialog>
| #include "filemanage.h"
| #include "qtimer.h"
|
| namespace Ui {
| class FileCopyDialog;
| }
|
| class FileCopyDialog : public QDialog
| {
| Q_OBJECT
|
| public:
| explicit FileCopyDialog(QWidget *parent = 0);
| ~FileCopyDialog();
| bool CopyFiles(const QStringList &fromDir, const QString &toDir,
| bool coverFileIfExist);
|
| bool DeleteFiles(const QStringList &fromDir);
|
| private:
| QTimer *timer;
| int value;
| int max_value;
| bool save_ok;
|
| bool is_delete;
|
| private slots:
| void on_pushButton_released();
| void updateProgress(int val);
| void valueAdd();
| void updateTimeSetProgress();
|
| private:
| Ui::FileCopyDialog *ui;
| };
|
| #endif // FILECOPYDIALOG_H
|
|