Handles asynchronous download of images.
More...
#include <qgsrasterdataprovider.h>
|
void | error (const QString &msg) |
| Emitted when an error occurs. More...
|
|
void | finish (const QImage &legend) |
| Emitted when the download completes. More...
|
|
void | progress (qint64 received, qint64 total) |
| Emitted to report progress. More...
|
|
Handles asynchronous download of images.
- Since
- QGIS 2.8
Definition at line 56 of file qgsrasterdataprovider.h.
QgsImageFetcher::QgsImageFetcher |
( |
QObject * |
parent = nullptr | ) |
|
|
inline |
void QgsImageFetcher::error |
( |
const QString & |
msg | ) |
|
|
signal |
Emitted when an error occurs.
void QgsImageFetcher::finish |
( |
const QImage & |
legend | ) |
|
|
signal |
Emitted when the download completes.
- Parameters
-
legend | The downloaded legend image |
void QgsImageFetcher::progress |
( |
qint64 |
received, |
|
|
qint64 |
total |
|
) |
| |
|
signal |
Emitted to report progress.
virtual void QgsImageFetcher::start |
( |
| ) |
|
|
pure virtual |
Starts the image download.
- Note
- Make sure to connect to "finish" and "error" before starting
The documentation for this class was generated from the following file: