-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathverifierwindow.h
64 lines (51 loc) · 1.33 KB
/
verifierwindow.h
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
#ifndef VERIFIERWINDOW_H
#define VERIFIERWINDOW_H
#include "settings.h"
#include <QLabel>
#include <QMainWindow>
#include <QThread>
#include <QTreeWidgetItem>
namespace Ui {
class VerifierWindow;
}
class VerifierWindow : public QMainWindow
{
Q_OBJECT
QThread workerThread;
int filesCount = 0;
int checkedCount = 1;
int okCount = 0;
int badCount = 0;
int missingCount = 0;
int hashType{};
//QString rootPath;
QIcon icon[4];
QList<QTreeWidgetItem*> okFiles;
QList<QTreeWidgetItem*> badFiles;
QList<QTreeWidgetItem*> missingFiles;
public:
explicit VerifierWindow(QWidget *parent = nullptr);
~VerifierWindow();
QString rootPath;
private:
Ui::VerifierWindow *ui;
bool firstTime = true;
bool ReadFile();
void Verify();
QLabel *statusLabel;
private slots:
void finished();
void showResult(int, const QByteArray&);
void showProgress(int, int);
void showError(const QString&, int);
void on_checkBoxOK_stateChanged(int arg1);
void on_checkBoxBad_stateChanged(int arg1);
void on_checkBoxMissing_stateChanged(int arg1);
void on_actionExit_triggered();
void on_actionAbout_triggered();
void on_actionOperation_triggered();
// QWidget interface
protected:
void showEvent(QShowEvent *event) override;
};
#endif // VERIFIERWINDOW_H