15#include <QNetworkReply>
16#include <QNetworkRequest>
18#include <QSharedPointer>
31 QSharedPointer<QNetworkReply> mCurrentReply;
32 QQueue<QNetworkRequest> mPendingRequests;
34 void scheduleDownload(
const QNetworkRequest& pDownloadRequest);
35 void startDownloadIfPending();
42 void onMetadataChanged();
43 void onNetworkReplyFinished();
44 void onNetworkReplyProgress(qint64 pBytesReceived, qint64 pBytesTotal);
47 bool abort(
const QUrl& pUpdateUrl);
48 virtual void download(
const QUrl& pUpdateUrl,
const QDateTime& pCurrentTimestamp = QDateTime());
52 void fireDownloadSuccess(
const QUrl& pUpdateUrl,
const QDateTime& pNewTimestamp,
const QByteArray& pData);
~Downloader() override
Definition Downloader.cpp:149
Downloader()
Definition Downloader.cpp:142
void fireDownloadProgress(const QUrl &pUpdateUrl, qint64 pBytesReceived, qint64 pBytesTotal)
void fireDownloadUnnecessary(const QUrl &pUpdateUrl)
friend class Env
Definition Downloader.h:28
virtual void download(const QUrl &pUpdateUrl, const QDateTime &pCurrentTimestamp=QDateTime())
Definition Downloader.cpp:190
bool abort(const QUrl &pUpdateUrl)
Definition Downloader.cpp:159
void fireDownloadSuccess(const QUrl &pUpdateUrl, const QDateTime &pNewTimestamp, const QByteArray &pData)
void fireDownloadFailed(const QUrl &pUpdateUrl, GlobalStatus::Code pErrorCode)
Code
Definition GlobalStatus.h:30
Implementation of GeneralAuthenticate response APDUs.
Definition CommandApdu.h:17