summaryrefslogtreecommitdiffstats
path: root/logic/net/DownloadJob.cpp
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2013-09-06 21:58:51 +0200
committerPetr Mrázek <peterix@gmail.com>2013-09-06 21:58:51 +0200
commit634e22298b14a8ad09f0d0489cb1c08c97d1f73a (patch)
tree9a65cdbed85e24f1cd141c77e58ef7eecbf73551 /logic/net/DownloadJob.cpp
parentd587e7ada4a325cff3974be11e1829fabd52a259 (diff)
downloadMultiMC-634e22298b14a8ad09f0d0489cb1c08c97d1f73a.tar
MultiMC-634e22298b14a8ad09f0d0489cb1c08c97d1f73a.tar.gz
MultiMC-634e22298b14a8ad09f0d0489cb1c08c97d1f73a.tar.lz
MultiMC-634e22298b14a8ad09f0d0489cb1c08c97d1f73a.tar.xz
MultiMC-634e22298b14a8ad09f0d0489cb1c08c97d1f73a.zip
Untested ETag cache class.
Yep.
Diffstat (limited to 'logic/net/DownloadJob.cpp')
-rw-r--r--logic/net/DownloadJob.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/logic/net/DownloadJob.cpp b/logic/net/DownloadJob.cpp
index 5c8ed4b9..b87d3dc9 100644
--- a/logic/net/DownloadJob.cpp
+++ b/logic/net/DownloadJob.cpp
@@ -143,10 +143,12 @@ void DownloadJob::partSucceeded ( int index )
{
if(num_failed)
{
+ qDebug() << "Download JOB failed: " << this;
emit failed();
}
else
{
+ qDebug() << "Download JOB succeeded: " << this;
emit succeeded();
}
}
@@ -157,14 +159,8 @@ void DownloadJob::partFailed ( int index )
num_failed++;
if(num_failed + num_succeeded == downloads.size())
{
- if(num_failed)
- {
- emit failed();
- }
- else
- {
- emit succeeded();
- }
+ qDebug() << "Download JOB failed: " << this;
+ emit failed();
}
}
@@ -176,6 +172,7 @@ void DownloadJob::partProgress ( int index, qint64 bytesReceived, qint64 bytesTo
void DownloadJob::start()
{
+ qDebug() << "Download JOB started: " << this;
for(auto iter: downloads)
{
connect(iter.data(), SIGNAL(succeeded(int)), SLOT(partSucceeded(int)));