QGIS API Documentation  3.24.2-Tisler (13c1a02865)
Signals | Public Member Functions | Friends | List of all members
QgsTileDownloadManagerReply Class Reference

Reply object for tile download manager requests returned from calls to QgsTileDownloadManager::get(). More...

#include <qgstiledownloadmanager.h>

Inheritance diagram for QgsTileDownloadManagerReply:
Inheritance graph
[legend]

Signals

void finished ()
 Emitted when the reply has finished (either with a success or with a failure) More...
 

Public Member Functions

 ~QgsTileDownloadManagerReply ()
 
QByteArray data () const
 Returns binary data returned in the reply (only valid when already finished) More...
 
QNetworkReply::NetworkError error () const
 Returns error code (only valid when already finished) More...
 
QString errorString () const
 Returns error string (only valid when already finished) More...
 
bool hasFinished () const
 Returns whether the reply has already finished (with success/failure) More...
 
QNetworkRequest request () const
 Returns the original request for this reply object. More...
 

Friends

class QgsTileDownloadManager
 

Detailed Description

Reply object for tile download manager requests returned from calls to QgsTileDownloadManager::get().

When the underlying network request has finished (with success or failure), the finished() signal gets emitted.

It is OK to delete this object before the request has finished - the request will not be aborted, the download manager will finish the download (as it may be needed soon afterwards).

Since
QGIS 3.18

Definition at line 46 of file qgstiledownloadmanager.h.

Constructor & Destructor Documentation

◆ ~QgsTileDownloadManagerReply()

QgsTileDownloadManagerReply::~QgsTileDownloadManagerReply ( )

Definition at line 329 of file qgstiledownloadmanager.cpp.

Member Function Documentation

◆ data()

QByteArray QgsTileDownloadManagerReply::data ( ) const
inline

Returns binary data returned in the reply (only valid when already finished)

Definition at line 55 of file qgstiledownloadmanager.h.

◆ error()

QNetworkReply::NetworkError QgsTileDownloadManagerReply::error ( ) const
inline

Returns error code (only valid when already finished)

Definition at line 57 of file qgstiledownloadmanager.h.

◆ errorString()

QString QgsTileDownloadManagerReply::errorString ( ) const
inline

Returns error string (only valid when already finished)

Definition at line 59 of file qgstiledownloadmanager.h.

◆ finished

void QgsTileDownloadManagerReply::finished ( )
signal

Emitted when the reply has finished (either with a success or with a failure)

◆ hasFinished()

bool QgsTileDownloadManagerReply::hasFinished ( ) const
inline

Returns whether the reply has already finished (with success/failure)

Definition at line 53 of file qgstiledownloadmanager.h.

◆ request()

QNetworkRequest QgsTileDownloadManagerReply::request ( ) const
inline

Returns the original request for this reply object.

Definition at line 62 of file qgstiledownloadmanager.h.

Friends And Related Function Documentation

◆ QgsTileDownloadManager

friend class QgsTileDownloadManager
friend

Definition at line 74 of file qgstiledownloadmanager.h.


The documentation for this class was generated from the following files: