diff options
| author | Jonathan Bauer | 2011-03-16 00:36:20 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-16 00:36:20 +0100 |
| commit | 6e6631ea46a30b3a727f3b7b2b0fcbd4644d85c6 (patch) | |
| tree | 509a811a180dddeaba64fc9e6f11f41f35d33c28 /src/downloadManager.h | |
| parent | fixes (diff) | |
| download | fbgui-6e6631ea46a30b3a727f3b7b2b0fcbd4644d85c6.tar.gz fbgui-6e6631ea46a30b3a727f3b7b2b0fcbd4644d85c6.tar.xz fbgui-6e6631ea46a30b3a727f3b7b2b0fcbd4644d85c6.zip | |
update progress now calls updateProgressBar(percent, speed) speed in bytes/sec atm, adapt your sites...
Diffstat (limited to 'src/downloadManager.h')
| -rw-r--r-- | src/downloadManager.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/downloadManager.h b/src/downloadManager.h index c556cb3..6c96633 100644 --- a/src/downloadManager.h +++ b/src/downloadManager.h @@ -23,6 +23,7 @@ #include <QDir> #include <QMap> #include <QtNetwork> +#include <QTimer> extern bool debug; extern QUrl baseURL; @@ -46,6 +47,7 @@ private: QNetworkReply* currentDownload; QFile outfile; QDir downloadDir; + QTime dltime; bool dip; int currentProgress, lastProgress; @@ -54,7 +56,7 @@ private: signals: void finished(); - void updateProgress(QString current, int i); + void updateProgress(int percent, double speed); void downloadQueueEmpty(); public slots: |
