QGIS API Documentation 3.37.0-Master (fdefdf9c27f)
Public Member Functions | List of all members
QgsCPLHTTPFetchOverrider Class Reference

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. More...
 
 ~QgsCPLHTTPFetchOverrider ()
 Destructor. More...
 
void setAttribute (QNetworkRequest::Attribute code, const QVariant &value)
 Define attribute that must be forwarded to the actual QNetworkRequest. More...
 
void setFeedback (QgsFeedback *feedback)
 Sets the feedback cancellation object for the redirection. More...
 
QThread * thread () const
 Returns the thread associated with the overrider. More...
 

Detailed Description

Utility class to redirect GDAL's CPL HTTP calls through QgsBlockingNetworkRequest.

The implementation is a no-op before GDAL 3.2

Note
not available in Python bindings
Since
QGIS 3.18

Definition at line 41 of file qgscplhttpfetchoverrider.h.

Constructor & Destructor Documentation

◆ QgsCPLHTTPFetchOverrider()

QgsCPLHTTPFetchOverrider::QgsCPLHTTPFetchOverrider ( const QString &  authCfg = QString(),
QgsFeedback feedback = nullptr 
)
explicit

Installs the redirection for the current thread.

Definition at line 23 of file qgscplhttpfetchoverrider.cpp.

◆ ~QgsCPLHTTPFetchOverrider()

QgsCPLHTTPFetchOverrider::~QgsCPLHTTPFetchOverrider ( )

Destructor.

Definition at line 31 of file qgscplhttpfetchoverrider.cpp.

Member Function Documentation

◆ setAttribute()

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.

◆ setFeedback()

void QgsCPLHTTPFetchOverrider::setFeedback ( QgsFeedback feedback)

Sets the feedback cancellation object for the redirection.

Since
QGIS 3.32

Definition at line 200 of file qgscplhttpfetchoverrider.cpp.

◆ thread()

QThread * QgsCPLHTTPFetchOverrider::thread ( ) const

Returns the thread associated with the overrider.

Since
QGIS 3.32

Definition at line 205 of file qgscplhttpfetchoverrider.cpp.


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