16 #ifndef QGSFILEDOWNLOADER_H
17 #define QGSFILEDOWNLOADER_H
21 #include <QNetworkReply>
25 #include "qgis_core.h"
67 void downloadCompleted(
const QUrl &url );
69 void downloadExited();
75 void downloadCanceled();
78 void downloadError( QStringList errorMessages );
80 void downloadProgress( qint64 bytesReceived, qint64 bytesTotal );
89 void cancelDownload();
100 void onDownloadProgress( qint64 bytesReceived, qint64 bytesTotal );
102 void onRequestTimedOut( QNetworkReply *reply );
111 void onSslErrors( QNetworkReply *reply,
const QList<QSslError> &errors );
123 void error(
const QStringList &errorMessages );
124 void error(
const QString &errorMessage );
126 QNetworkReply *mReply =
nullptr;
128 bool mDownloadCanceled;
135 #endif // QGSFILEDOWNLOADER_H