QGIS API Documentation 3.41.0-Master (af5edcb665c)
Loading...
Searching...
No Matches
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.
 
void finish (const QImage &legend)
 Emitted when the download completes.
 
void progress (qint64 received, qint64 total)
 Emitted to report progress.
 

Public Member Functions

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

Detailed Description

Handles asynchronous download of images.

Definition at line 57 of file qgsrasterdataprovider.h.

Constructor & Destructor Documentation

◆ QgsImageFetcher()

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

Constructor.

Definition at line 62 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: