summaryrefslogtreecommitdiffstats
path: root/src/downloadManager.h
diff options
context:
space:
mode:
authorJonathan Bauer2011-03-16 00:36:20 +0100
committerJonathan Bauer2011-03-16 00:36:20 +0100
commit6e6631ea46a30b3a727f3b7b2b0fcbd4644d85c6 (patch)
tree509a811a180dddeaba64fc9e6f11f41f35d33c28 /src/downloadManager.h
parentfixes (diff)
downloadfbgui-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.h4
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: