diff options
| author | Jonathan Bauer | 2011-03-16 01:22:15 +0100 |
|---|---|---|
| committer | Jonathan Bauer | 2011-03-16 01:22:15 +0100 |
| commit | 50c0d85dbe0d604b00c35b67a5ddf6c19cd1c105 (patch) | |
| tree | 1c1fb412d84f71e6be496388de3bafd3ec77972a /src/downloadManager.h | |
| parent | fbgui.conf (diff) | |
| download | fbgui-50c0d85dbe0d604b00c35b67a5ddf6c19cd1c105.tar.gz fbgui-50c0d85dbe0d604b00c35b67a5ddf6c19cd1c105.tar.xz fbgui-50c0d85dbe0d604b00c35b67a5ddf6c19cd1c105.zip | |
javascriptInterface: downloadInfo(filename, filesize) filesize in bytes
Diffstat (limited to 'src/downloadManager.h')
| -rw-r--r-- | src/downloadManager.h | 8 |
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(); }; |
