QGIS API Documentation 3.41.0-Master (3440c17df1d)
Loading...
Searching...
No Matches
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)
 

Public Member Functions

 ~QgsTileDownloadManagerReply ()
 
QVariant attribute (QNetworkRequest::Attribute code)
 Returns the attribute associated with the code.
 
QByteArray data () const
 Returns binary data returned in the reply (only valid when already finished)
 
QNetworkReply::NetworkError error () const
 Returns error code (only valid when already finished)
 
QString errorString () const
 Returns error string (only valid when already finished)
 
bool hasFinished () const
 Returns whether the reply has already finished (with success/failure)
 
QVariant header (QNetworkRequest::KnownHeaders header)
 Returns the value of the known header header.
 
const QList< QNetworkReply::RawHeaderPair > rawHeaderPairs () const
 Returns a list of raw header pairs.
 
QNetworkRequest request () const
 Returns the original request for this reply object.
 
QUrl url () const
 Returns the reply URL.
 

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 47 of file qgstiledownloadmanager.h.

Constructor & Destructor Documentation

◆ ~QgsTileDownloadManagerReply()

QgsTileDownloadManagerReply::~QgsTileDownloadManagerReply ( )

Definition at line 421 of file qgstiledownloadmanager.cpp.

Member Function Documentation

◆ attribute()

QVariant QgsTileDownloadManagerReply::attribute ( QNetworkRequest::Attribute  code)

Returns the attribute associated with the code.

Definition at line 457 of file qgstiledownloadmanager.cpp.

◆ data()

QByteArray QgsTileDownloadManagerReply::data ( ) const
inline

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

Definition at line 56 of file qgstiledownloadmanager.h.

◆ error()

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

Returns error code (only valid when already finished)

Definition at line 66 of file qgstiledownloadmanager.h.

◆ errorString()

QString QgsTileDownloadManagerReply::errorString ( ) const
inline

Returns error string (only valid when already finished)

Definition at line 68 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 54 of file qgstiledownloadmanager.h.

◆ header()

QVariant QgsTileDownloadManagerReply::header ( QNetworkRequest::KnownHeaders  header)

Returns the value of the known header header.

Definition at line 462 of file qgstiledownloadmanager.cpp.

◆ rawHeaderPairs()

const QList< QNetworkReply::RawHeaderPair > QgsTileDownloadManagerReply::rawHeaderPairs ( ) const
inline

Returns a list of raw header pairs.

Definition at line 64 of file qgstiledownloadmanager.h.

◆ request()

QNetworkRequest QgsTileDownloadManagerReply::request ( ) const
inline

Returns the original request for this reply object.

Definition at line 70 of file qgstiledownloadmanager.h.

◆ url()

QUrl QgsTileDownloadManagerReply::url ( ) const
inline

Returns the reply URL.

Definition at line 58 of file qgstiledownloadmanager.h.

Friends And Related Symbol Documentation

◆ QgsTileDownloadManager

friend class QgsTileDownloadManager
friend

Definition at line 83 of file qgstiledownloadmanager.h.


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