|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
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). | |
Public Member Functions | |
| ~QgsTileDownloadManagerReply () override | |
| 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 |
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 46 of file qgstiledownloadmanager.h.
|
override |
Definition at line 426 of file qgstiledownloadmanager.cpp.
| QVariant QgsTileDownloadManagerReply::attribute | ( | QNetworkRequest::Attribute | code | ) |
Returns the attribute associated with the code.
Definition at line 462 of file qgstiledownloadmanager.cpp.
|
inline |
Returns binary data returned in the reply (only valid when already finished).
Definition at line 55 of file qgstiledownloadmanager.h.
|
inline |
Returns error code (only valid when already finished).
Definition at line 65 of file qgstiledownloadmanager.h.
|
inline |
Returns error string (only valid when already finished).
Definition at line 67 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 53 of file qgstiledownloadmanager.h.
| QVariant QgsTileDownloadManagerReply::header | ( | QNetworkRequest::KnownHeaders | header | ) |
Returns the value of the known header header.
Definition at line 467 of file qgstiledownloadmanager.cpp.
|
inline |
Returns a list of raw header pairs.
Definition at line 63 of file qgstiledownloadmanager.h.
|
inline |
Returns the original request for this reply object.
Definition at line 69 of file qgstiledownloadmanager.h.
|
inline |
Returns the reply URL.
Definition at line 57 of file qgstiledownloadmanager.h.
|
friend |
Definition at line 82 of file qgstiledownloadmanager.h.