QGIS API Documentation  3.10.0-A Coruña (6c816b4204)
Signals | Public Member Functions | List of all members
QgsImageFetcher Class Referenceabstract

Handles asynchronous download of images. More...

#include <qgsrasterdataprovider.h>

Inheritance diagram for QgsImageFetcher:
Inheritance graph
[legend]

Signals

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...
 

Public Member Functions

 QgsImageFetcher (QObject *parent=nullptr)
 Constructor. More...
 
virtual void start ()=0
 Starts the image download. More...
 

Detailed Description

Handles asynchronous download of images.

Since
QGIS 2.8

Definition at line 56 of file qgsrasterdataprovider.h.

Constructor & Destructor Documentation

◆ QgsImageFetcher()

QgsImageFetcher::QgsImageFetcher ( QObject *  parent = nullptr)
inline

Constructor.

Definition at line 61 of file qgsrasterdataprovider.h.

Member Function Documentation

◆ 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
legendThe 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: