Send PTP_RC_GeneralError when cancelling object transfers.

Moved back uint64 to unsigned long to avoid variable truncation with the vitamtp library.
Astyle format dds.cpp.
This commit is contained in:
codestation
2014-01-07 18:33:21 -04:30
parent 5fb47de3da
commit 019d2a03a4
6 changed files with 90 additions and 75 deletions

View File

@@ -40,7 +40,7 @@ signals:
public slots:
void downloadFile();
static int readCallback(unsigned char *data, int64_t wantlen, int64_t *gotlen);
static int readCallback(unsigned char *data, unsigned long wantlen, unsigned long *gotlen);
void metadataChanged();
void readyRead();
void error(QNetworkReply::NetworkError);
@@ -58,8 +58,8 @@ private:
volatile static qint64 m_contentLength;
static char *buffer;
static qint64 bufferSize;
static qint64 downloadLeft;
static unsigned long bufferSize;
static unsigned long downloadLeft;
};
#endif // HTTPDOWNLOADER_H