Fixed compilation issue

This commit is contained in:
xawotihs
2014-01-12 22:56:53 +01:00
parent 0c4b09891b
commit 1d33de59a9
2 changed files with 7 additions and 7 deletions

View File

@@ -65,8 +65,8 @@ protected:
string mETag;
DownloadStatus mDownloadStatus;
bool mUpgradeAvailable;
uint32_t mTotalSize;
uint32_t mCurrentSize;
size_t mTotalSize;
size_t mCurrentSize;
ofstream mFile;
#ifdef QT_CONFIG
QNetworkReply* mNetworkReply;
@@ -79,8 +79,8 @@ public:
string remoteResourceURL="",
string ETag = "",
DownloadStatus downloadStatus=NOT_PRESENT,
uint32_t totalSize = 0,
uint32_t currentSize = 0);
size_t totalSize = 0,
size_t currentSize = 0);
~DownloadRequest();
static bool NetworkIsAccessible();
@@ -92,7 +92,7 @@ public:
void startHead();
DownloadStatus getDownloadStatus() const { return mDownloadStatus; };
bool upgradeAvailable() const { return mUpgradeAvailable; };
void getSizes(uint32_t& totalSize, uint32_t&currentSize) {
void getSizes(size_t& totalSize, size_t&currentSize) {
totalSize = mTotalSize;
currentSize = mCurrentSize;
};

View File

@@ -12,8 +12,8 @@ DownloadRequest::DownloadRequest(string localPath,
string remoteResourceURL,
string ETag,
DownloadStatus downloadStatus,
uint32_t totalSize,
uint32_t currentSize):
size_t totalSize,
size_t currentSize):
mLocalPath(localPath),
mRemoteResourceURL(remoteResourceURL),
mRequestedRemoteResourceURL(remoteResourceURL),