-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.h
115 lines (105 loc) · 2.76 KB
/
mainwindow.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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
#ifndef MAINWINDOW_H
#define MAINWINDOW_H
#include <QMainWindow>
#include <QMouseEvent>
#include <QTableWidget>
#include <QFileInfo>
#include <QGraphicsScene>
#include <QThread>
#include <QObject>
#include <QFileDialog>
#include <QStringList>
#include <QPainter>
#include <QDebug>
#include <QCryptographicHash>
#include <QDataStream>
#include <QFile>
#include <QProgressBar>
#include <QTimer>
#include <QThread>
#include "updater.h"
class LogoAnimation;
class AboutDialog;
class Thread;
class Gear;
class StatusOne;
class OptionsDialog;
class WarningDialog;
class AbortWarningDialog;
class SingleScanThread;
namespace Ui {
class MainWindow;
}
class MainWindow : public QMainWindow
{
Q_OBJECT
public:
explicit MainWindow(QWidget *parent = 0);
~MainWindow();
void startAnimation();
void startGearAnimation();
public slots:
void handleScanStart();
void handleScanComplete();
void displayInfectedFiles(QString);
void stopThread();
void downloadSignatures();
void updateProgressBar(qint64,qint64);
void updateProgressBarF(int);
void updateStatus(QString);
private slots:
void on_abort_clicked();
void on_actionOptions_triggered();
void on_actionAbout_triggered();
void on_scanDirectory_clicked();
void on_actionMinimize_triggered();
void on_smartScanButton_clicked();
void on_actionClose_triggered();
void on_scanSingleFile_clicked();
void on_removeSelectedFile_clicked();
void on_removeAllFiles_clicked();
void on_removeSelectedFile_released();
void on_removeAllFiles_released();
void on_abort_released();
void on_smartScanButton_released();
void on_scanSingleFile_released();
void on_scanDirectory_released();
void on_actionOptions_hovered();
void on_actionAbout_hovered();
void on_actionMinimize_hovered();
void on_actionClose_hovered();
signals:
void finished();
void scanType(QString);
void stopTheTimer();
private:
Ui::MainWindow *ui;
void mousePressEvent(QMouseEvent *event);
void mouseMoveEvent(QMouseEvent *event);
int m_nMouseClick_X_Coordinate;
int m_nMouseClick_Y_Coordinate;
QGraphicsScene *scene;
QGraphicsScene *sceneTwo;
LogoAnimation *logo;
AboutDialog *aboutDialog;
Thread *thread;
Gear *gear;
StatusOne *textOne;
StatusOne *textTwo;
StatusOne *threatText;
StatusOne *mainLogo;
bool checkTextOne;
bool checkTextTwo;
OptionsDialog *optionsDialog;
WarningDialog *warningDialog;
AbortWarningDialog *abortWarningDialog;
QString *fileName;
SingleScanThread *singleScanThread;
bool stopMouseMovement;
QProgressBar *progressBar;
int incomingDataSize;
QTimer *fileDownloader;
QThread *updateThread;
Updater *updater;
};
#endif // MAINWINDOW_H