14 #include <QNetworkReply>
15 #include <QNetworkRequest>
17 #include <QSharedPointer>
30 QSharedPointer<QNetworkReply> mCurrentReply;
31 QQueue<QSharedPointer<QNetworkRequest>> mPendingRequests;
33 void scheduleDownload(QSharedPointer<QNetworkRequest> pDownloadRequest);
34 void startDownloadIfPending();
41 void onSslErrors(
const QList<QSslError>& pErrors);
42 void onSslHandshakeDone();
43 void onMetadataChanged();
44 void onNetworkReplyFinished();
45 void onNetworkReplyProgress(qint64 pBytesReceived, qint64 pBytesTotal);
48 bool abort(
const QUrl& pUpdateUrl);
49 virtual void download(
const QUrl& pUpdateUrl,
const QDateTime& pCurrentTimestamp = QDateTime());
53 void fireDownloadSuccess(
const QUrl& pUpdateUrl,
const QDateTime& pNewTimestamp,
const QByteArray& pData);
Definition: Downloader.h:25
~Downloader() override
Definition: Downloader.cpp:182
Downloader()
Definition: Downloader.cpp:175
void fireDownloadProgress(const QUrl &pUpdateUrl, qint64 pBytesReceived, qint64 pBytesTotal)
void fireDownloadUnnecessary(const QUrl &pUpdateUrl)
virtual void download(const QUrl &pUpdateUrl, const QDateTime &pCurrentTimestamp=QDateTime())
Definition: Downloader.cpp:223
bool abort(const QUrl &pUpdateUrl)
Definition: Downloader.cpp:192
void fireDownloadSuccess(const QUrl &pUpdateUrl, const QDateTime &pNewTimestamp, const QByteArray &pData)
void fireDownloadFailed(const QUrl &pUpdateUrl, GlobalStatus::Code pErrorCode)
Code
Definition: GlobalStatus.h:26
Implementation of ActivationContext for Intent based activation on Android systems.
Definition: ActivationContext.h:15