QgsFileDownloaderDialog class

QgsFileDownloaderDialog is a QProgressDialog subclass which handles file downloads and user feedback.

Internally, it uses QgsFileDownloader to handle the download, while showing progress via a progress dialog and supporting cancelation.

Constructors, destructors, conversion operators

QgsFileDownloaderDialog(const QUrl& url, const QString& outputFileName, const QString& authcfg = QString())
QgsFileDownloader.

Signals

void downloadCanceled()
Emitted when the download was canceled by the user.
void downloadCompleted()
Emitted when the download has completed successfully.
void downloadError(QStringList errorMessages)
Emitted when an error makes the download fail.
void downloadExited()
Emitted always when the downloader exits.
void downloadProgress(qint64 bytesReceived, qint64 bytesTotal)
Emitted when data are ready to be processed.

Function documentation

QgsFileDownloaderDialog::QgsFileDownloaderDialog(const QUrl& url, const QString& outputFileName, const QString& authcfg = QString())

QgsFileDownloader.

Parameters
url the download url
outputFileName file name where the downloaded content will be stored
authcfg optionally apply this authentication configuration