-
Notifications
You must be signed in to change notification settings - Fork 0
/
vdownload.h
58 lines (46 loc) · 1.09 KB
/
vdownload.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
#ifndef VDOWNLOAD_H
#define VDOWNLOAD_H
#include <QDialog>
#include <QPushButton>
#include <QWidget>
#include <QLabel>
#include <QProgressBar>
#include <QVariant>
#include <QGridLayout>
#include <QDataStream>
#include <QByteArray>
#include <QDebug>
#include <QMessageBox>
#include <QFile>
#include <QTime>
#include <QtNetwork/QTcpSocket>
#include <QFileDialog>
class FenPrincipale;
class Connexion;
class FenPrincipale;
class VWidget;
class FenOptions;
class VDownload : public QDialog {
public:
VDownload(QWidget* parent, QString nom, int nbPaquet, FenOptions* opt);
QString getNomFichier();
void addBytes(QByteArray bytes);
QFile* getFile();
void terminate();
private:
unsigned int calculerTaille(int nbPaquet);
QLabel *lab_nomDuFichier;
QLabel *lab_vitesse;
QVariant *num_vitesse;
QVariant *tailleFichierEu;
QVariant *tailleFichierFinal;
QProgressBar *progression;
QString nomDuFichier;
QString urlStockage;
QFile *fichier;
int tailleMorceauxFichiers;
QTime *timerDL;
int lastTime;
FenOptions *options;
};
#endif // VDOWNLOAD_H