summaryrefslogtreecommitdiffstats
path: root/src/downloadManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloadManager.h')
-rw-r--r--src/downloadManager.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/downloadManager.h b/src/downloadManager.h
index 6c96633..2c0a021 100644
--- a/src/downloadManager.h
+++ b/src/downloadManager.h
@@ -23,7 +23,7 @@
#include <QDir>
#include <QMap>
#include <QtNetwork>
-#include <QTimer>
+#include <QTime>
extern bool debug;
extern QUrl baseURL;
@@ -48,7 +48,7 @@ private:
QFile outfile;
QDir downloadDir;
QTime dltime;
- bool dip;
+ bool dip, infoSent;
int currentProgress, lastProgress;
static int downloaded;
@@ -56,7 +56,8 @@ private:
signals:
void finished();
- void updateProgress(int percent, double speed);
+ void downloadInfo(QString filename, double filesize);
+ void updateProgress(int percent, double speed, QString unit);
void downloadQueueEmpty();
public slots:
@@ -66,6 +67,7 @@ public slots:
private slots:
void startNextDownload();
void downloadReady();
+ void processMetaInfo();
void downloadProgress(qint64 bytesIn, qint64 bytesTotal);
void downloadFinished();
};