QGIS API Documentation 3.40.0-Bratislava (b56115d8743)
|
Utility class to redirect GDAL's CPL HTTP calls through QgsBlockingNetworkRequest. More...
#include <qgscplhttpfetchoverrider.h>
Public Member Functions | |
QgsCPLHTTPFetchOverrider (const QString &authCfg=QString(), QgsFeedback *feedback=nullptr) | |
Installs the redirection for the current thread. | |
~QgsCPLHTTPFetchOverrider () | |
void | setAttribute (QNetworkRequest::Attribute code, const QVariant &value) |
Define attribute that must be forwarded to the actual QNetworkRequest. | |
void | setFeedback (QgsFeedback *feedback) |
Sets the feedback cancellation object for the redirection. | |
QThread * | thread () const |
Returns the thread associated with the overrider. | |
Utility class to redirect GDAL's CPL HTTP calls through QgsBlockingNetworkRequest.
The implementation is a no-op before GDAL 3.2
Definition at line 41 of file qgscplhttpfetchoverrider.h.
|
explicit |
Installs the redirection for the current thread.
Definition at line 23 of file qgscplhttpfetchoverrider.cpp.
QgsCPLHTTPFetchOverrider::~QgsCPLHTTPFetchOverrider | ( | ) |
Definition at line 31 of file qgscplhttpfetchoverrider.cpp.
void QgsCPLHTTPFetchOverrider::setAttribute | ( | QNetworkRequest::Attribute | code, |
const QVariant & | value | ||
) |
Define attribute that must be forwarded to the actual QNetworkRequest.
Definition at line 195 of file qgscplhttpfetchoverrider.cpp.
void QgsCPLHTTPFetchOverrider::setFeedback | ( | QgsFeedback * | feedback | ) |
Sets the feedback cancellation object for the redirection.
Definition at line 200 of file qgscplhttpfetchoverrider.cpp.
QThread * QgsCPLHTTPFetchOverrider::thread | ( | ) | const |
Returns the thread associated with the overrider.
Definition at line 205 of file qgscplhttpfetchoverrider.cpp.