QgsFileDownloaderDialog is a QProgressDialog subclass which handles file downloads and user feedback.
More...
#include <qgsfiledownloaderdialog.h>
|
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.
|
|
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 cancellation.
- Note
- Until QGIS 3.0 this functionality was available via QgsFileDownloader.
Definition at line 36 of file qgsfiledownloaderdialog.h.
◆ QgsFileDownloaderDialog()
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 |
Definition at line 21 of file qgsfiledownloaderdialog.cpp.
◆ downloadCanceled
void QgsFileDownloaderDialog::downloadCanceled |
( |
| ) |
|
|
signal |
Emitted when the download was canceled by the user.
◆ downloadCompleted
void QgsFileDownloaderDialog::downloadCompleted |
( |
| ) |
|
|
signal |
Emitted when the download has completed successfully.
◆ downloadError
void QgsFileDownloaderDialog::downloadError |
( |
QStringList |
errorMessages | ) |
|
|
signal |
Emitted when an error makes the download fail.
◆ downloadExited
void QgsFileDownloaderDialog::downloadExited |
( |
| ) |
|
|
signal |
Emitted always when the downloader exits.
◆ downloadProgress
void QgsFileDownloaderDialog::downloadProgress |
( |
qint64 |
bytesReceived, |
|
|
qint64 |
bytesTotal |
|
) |
| |
|
signal |
Emitted when data are ready to be processed.
The documentation for this class was generated from the following files: