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 );
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