Fixed compilation issue
This commit is contained in:
@@ -65,8 +65,8 @@ protected:
|
|||||||
string mETag;
|
string mETag;
|
||||||
DownloadStatus mDownloadStatus;
|
DownloadStatus mDownloadStatus;
|
||||||
bool mUpgradeAvailable;
|
bool mUpgradeAvailable;
|
||||||
uint32_t mTotalSize;
|
size_t mTotalSize;
|
||||||
uint32_t mCurrentSize;
|
size_t mCurrentSize;
|
||||||
ofstream mFile;
|
ofstream mFile;
|
||||||
#ifdef QT_CONFIG
|
#ifdef QT_CONFIG
|
||||||
QNetworkReply* mNetworkReply;
|
QNetworkReply* mNetworkReply;
|
||||||
@@ -79,8 +79,8 @@ public:
|
|||||||
string remoteResourceURL="",
|
string remoteResourceURL="",
|
||||||
string ETag = "",
|
string ETag = "",
|
||||||
DownloadStatus downloadStatus=NOT_PRESENT,
|
DownloadStatus downloadStatus=NOT_PRESENT,
|
||||||
uint32_t totalSize = 0,
|
size_t totalSize = 0,
|
||||||
uint32_t currentSize = 0);
|
size_t currentSize = 0);
|
||||||
~DownloadRequest();
|
~DownloadRequest();
|
||||||
static bool NetworkIsAccessible();
|
static bool NetworkIsAccessible();
|
||||||
|
|
||||||
@@ -92,7 +92,7 @@ public:
|
|||||||
void startHead();
|
void startHead();
|
||||||
DownloadStatus getDownloadStatus() const { return mDownloadStatus; };
|
DownloadStatus getDownloadStatus() const { return mDownloadStatus; };
|
||||||
bool upgradeAvailable() const { return mUpgradeAvailable; };
|
bool upgradeAvailable() const { return mUpgradeAvailable; };
|
||||||
void getSizes(uint32_t& totalSize, uint32_t¤tSize) {
|
void getSizes(size_t& totalSize, size_t¤tSize) {
|
||||||
totalSize = mTotalSize;
|
totalSize = mTotalSize;
|
||||||
currentSize = mCurrentSize;
|
currentSize = mCurrentSize;
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -12,8 +12,8 @@ DownloadRequest::DownloadRequest(string localPath,
|
|||||||
string remoteResourceURL,
|
string remoteResourceURL,
|
||||||
string ETag,
|
string ETag,
|
||||||
DownloadStatus downloadStatus,
|
DownloadStatus downloadStatus,
|
||||||
uint32_t totalSize,
|
size_t totalSize,
|
||||||
uint32_t currentSize):
|
size_t currentSize):
|
||||||
mLocalPath(localPath),
|
mLocalPath(localPath),
|
||||||
mRemoteResourceURL(remoteResourceURL),
|
mRemoteResourceURL(remoteResourceURL),
|
||||||
mRequestedRemoteResourceURL(remoteResourceURL),
|
mRequestedRemoteResourceURL(remoteResourceURL),
|
||||||
|
|||||||
Reference in New Issue
Block a user