-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfenetre.h
44 lines (36 loc) · 809 Bytes
/
fenetre.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
#ifndef FENETRE_H
#define FENETRE_H
#include <QtWidgets>
#include <QtNetwork>
#include <QNetworkAccessManager>
#include <QNetworkRequest>
#include <QNetworkReply>
#include <QUrl>
#include <QFile>
#include <QSystemTrayIcon>
class fenetre : public QWidget
{
Q_OBJECT
public:
fenetre();
private:
QByteArray *md5;
QByteArray *last_md5;
QNetworkAccessManager *md5Manager;
QNetworkAccessManager *imageManager;
QNetworkReply *reply;
QFile *file;
QTimer *timer;
QLabel *label;
QVBoxLayout *layout;
QSystemTrayIcon *trayIcon;
QAction *quit;
private slots:
void DLTest();
void onDownloadFileComplete(QNetworkReply *reply);
void onDownloadMd5FileComplete(QNetworkReply *reply);
void goDLSlot();
signals:
void goDL();
};
#endif // FENETRE_H