QGIS API Documentation 3.30.0-'s-Hertogenbosch (f186b8efe0)
|
Reply object for tile download manager requests returned from calls to QgsTileDownloadManager::get(). More...
#include <qgstiledownloadmanager.h>
Signals | |
void | finished () |
Emitted when the reply has finished (either with a success or with a failure) More... | |
Public Member Functions | |
~QgsTileDownloadManagerReply () | |
QVariant | attribute (QNetworkRequest::Attribute code) |
Returns the attribute associated with the code. More... | |
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... | |
QVariant | header (QNetworkRequest::KnownHeaders header) |
Returns the value of the known header header. More... | |
const QList< QNetworkReply::RawHeaderPair > | rawHeaderPairs () const |
Returns a list of raw header pairs. More... | |
QNetworkRequest | request () const |
Returns the original request for this reply object. More... | |
QUrl | url () const |
Returns the reply URL. More... | |
Friends | |
class | QgsTileDownloadManager |
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).
Definition at line 47 of file qgstiledownloadmanager.h.
QgsTileDownloadManagerReply::~QgsTileDownloadManagerReply | ( | ) |
Definition at line 419 of file qgstiledownloadmanager.cpp.
QVariant QgsTileDownloadManagerReply::attribute | ( | QNetworkRequest::Attribute | code | ) |
Returns the attribute associated with the code.
Definition at line 455 of file qgstiledownloadmanager.cpp.
|
inline |
Returns binary data returned in the reply (only valid when already finished)
Definition at line 56 of file qgstiledownloadmanager.h.
|
inline |
Returns error code (only valid when already finished)
Definition at line 66 of file qgstiledownloadmanager.h.
|
inline |
Returns error string (only valid when already finished)
Definition at line 68 of file qgstiledownloadmanager.h.
|
signal |
Emitted when the reply has finished (either with a success or with a failure)
|
inline |
Returns whether the reply has already finished (with success/failure)
Definition at line 54 of file qgstiledownloadmanager.h.
QVariant QgsTileDownloadManagerReply::header | ( | QNetworkRequest::KnownHeaders | header | ) |
Returns the value of the known header header.
Definition at line 460 of file qgstiledownloadmanager.cpp.
|
inline |
Returns a list of raw header pairs.
Definition at line 64 of file qgstiledownloadmanager.h.
|
inline |
Returns the original request for this reply object.
Definition at line 70 of file qgstiledownloadmanager.h.
|
inline |
Returns the reply URL.
Definition at line 58 of file qgstiledownloadmanager.h.
|
friend |
Definition at line 83 of file qgstiledownloadmanager.h.