Fixed file downloader.

This commit is contained in:
codestation
2015-02-15 23:13:41 -04:30
parent f39d441da3
commit dcd6964d6a
2 changed files with 27 additions and 56 deletions

View File

@@ -20,6 +20,7 @@
#ifndef HTTPDOWNLOADER_H
#define HTTPDOWNLOADER_H
#include <QByteArray>
#include <QMutex>
#include <QNetworkReply>
#include <QObject>
@@ -57,8 +58,8 @@ private:
static QNetworkReply *reply;
volatile static qint64 m_contentLength;
static char *buffer;
static qint64 bufferSize;
static QByteArray buffer;
static bool bufferReady;
static qint64 downloadLeft;
};