summaryrefslogtreecommitdiffstats
path: root/src/downloadManager.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/downloadManager.h')
-rw-r--r--src/downloadManager.h14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/downloadManager.h b/src/downloadManager.h
index 2e26b70..2ee980a 100644
--- a/src/downloadManager.h
+++ b/src/downloadManager.h
@@ -19,11 +19,6 @@
#define DOWNLOADMANAGER_H
#include "fbgui.h"
-#include <QObject>
-#include <QDir>
-#include <QMap>
-#include <QtNetwork>
-#include <QTime>
extern bool debug;
extern QUrl baseURL;
@@ -40,23 +35,24 @@ public:
downloadManager();
private:
+ void checkDownloadDirectory();
void processDownloadRequest(QUrl& url);
QNetworkAccessManager* qnam;
QQueue<QUrl> dlQ;
- QNetworkRequest request;
QNetworkReply* currentDownload;
QFile outfile;
- QDir downloadDir;
+ QString currentTargetFilename;
QTime dltime;
- bool dip;
int currentProgress, lastProgress;
+ bool dip;
static int downloaded;
- QString currentTargetFilename;
+
signals:
void finished();
void downloadInfo(QString filename, double filesize);
+ void notify(QString msg);
void updateProgress(int percent, double speed, QString unit);
void downloadQueueEmpty();