16 #ifndef QGSFILEDOWNLOADER_H
17 #define QGSFILEDOWNLOADER_H
21 #include <QNetworkReply>
25 #include "qgis_core.h"
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;
HttpMethod
Different methods of HTTP requests.
QgsFileDownloader is a utility class for downloading files.
void downloadExited()
Emitted always when the downloader exits.
void downloadCanceled()
Emitted when the download was canceled by the user.
void downloadError(QStringList errorMessages)
Emitted when an error makes the download fail.
void downloadCompleted(const QUrl &url)
Emitted when the download has completed successfully.
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
Emitted when data are ready to be processed.