Handles asynchronous download of images.
More...
#include <qgsrasterdataprovider.h>
|
void | error (const QString &msg) |
| Emitted when an error occurs.
|
|
void | finish (const QImage &legend) |
| Emitted when the download completes.
|
|
void | progress (qint64 received, qint64 total) |
| Emitted to report progress.
|
|
|
| QgsImageFetcher (QObject *parent=nullptr) |
| Constructor.
|
|
virtual void | start ()=0 |
| Starts the image download.
|
|
Handles asynchronous download of images.
- Since
- QGIS 2.8
Definition at line 58 of file qgsrasterdataprovider.h.
◆ QgsImageFetcher()
QgsImageFetcher::QgsImageFetcher |
( |
QObject * |
parent = nullptr | ) |
|
|
inline |
◆ error
void QgsImageFetcher::error |
( |
const QString & |
msg | ) |
|
|
signal |
Emitted when an error occurs.
◆ finish
void QgsImageFetcher::finish |
( |
const QImage & |
legend | ) |
|
|
signal |
Emitted when the download completes.
- Parameters
-
legend | The downloaded legend image |
◆ progress
void QgsImageFetcher::progress |
( |
qint64 |
received, |
|
|
qint64 |
total |
|
) |
| |
|
signal |
Emitted to report progress.
◆ start()
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: