16 #ifndef QGSFILEDOWNLOADER_H 17 #define QGSFILEDOWNLOADER_H 21 #include <QNetworkReply> 22 #include "qgis_core.h" 58 QgsFileDownloader(
const QUrl &url,
const QString &outputFileName,
const QString &authcfg = QString(),
bool delayStart =
false );
62 void downloadCompleted();
64 void downloadExited();
70 void downloadCanceled();
73 void downloadError( QStringList errorMessages );
75 void downloadProgress( qint64 bytesReceived, qint64 bytesTotal );
84 void cancelDownload();
95 void onDownloadProgress( qint64 bytesReceived, qint64 bytesTotal );
97 void onRequestTimedOut( QNetworkReply *reply );
106 void onSslErrors( QNetworkReply *reply,
const QList<QSslError> &errors );
118 void error(
const QStringList &errorMessages );
119 void error(
const QString &errorMessage );
121 QNetworkReply *mReply =
nullptr;
123 bool mDownloadCanceled;
128 #endif // QGSFILEDOWNLOADER_H QgsFileDownloader is a utility class for downloading files.