Copyright 2010 Comarch S.A.
*******************************************************************************/
-
/*!
- \file HttpDownloader.h
- \author Bartosz Szatkowski <bulislaw@linux.com>
+ \file HttpDownloader.h
+ \author Bartosz Szatkowski <bulislaw@linux.com>
*/
-
#include "HttpDownloader.h"
HttpDownloader::HttpDownloader(QObject *parent) {
request.setRawHeader("User-Agent", "Wget/1.12 (linux-gnu)");
currentReply = manager->get(request);
connect(currentReply, SIGNAL(downloadProgress(qint64,qint64)),
- this, SIGNAL(progress(qint64,qint64)));
-
+ this, SIGNAL(progress(qint64,qint64)));
}
-void HttpDownloader::downloadFinished(QNetworkReply *reply) {
+void HttpDownloader::downloadFinished(QNetworkReply *reply) {
disconnect(reply, SIGNAL(downloadProgress(qint64,qint64)),
this, SIGNAL(progress(qint64,qint64)));
if(reply->error() != QNetworkReply::NoError) {
req.setUrl(r);
currentReply = manager->get(req);
connect(currentReply, SIGNAL(downloadProgress(qint64,qint64)),
- this, SIGNAL(progress(qint64,qint64)));
+ this, SIGNAL(progress(qint64,qint64)));
}
else {
QFile resultFile(destFile);