16 #ifndef QGSCPLHTTPFETCHOVERRIDER_H 
   17 #define QGSCPLHTTPFETCHOVERRIDER_H 
   21 #include <QNetworkRequest> 
   31 #define QgsSetCPLHTTPFetchOverriderInitiatorClass(overrider, _class) QgsSetRequestInitiatorClass(overrider, _class) 
   54     void setAttribute( QNetworkRequest::Attribute code, 
const QVariant &value );
 
   58 #if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,2,0) 
   59     static CPLHTTPResult *callback( 
const char *pszURL,
 
   60                                     CSLConstList papszOptions,
 
   61                                     GDALProgressFunc pfnProgress,
 
   63                                     CPLHTTPFetchWriteFunc pfnWrite,
 
   72     std::map<QNetworkRequest::Attribute, QVariant> mAttributes;
 
Utility class to redirect GDAL's CPL HTTP calls through QgsBlockingNetworkRequest.
QgsCPLHTTPFetchOverrider(const QString &authCfg=QString(), QgsFeedback *feedback=nullptr)
Installs the redirection for the current thread.
void setAttribute(QNetworkRequest::Attribute code, const QVariant &value)
Define attribute that must be forwarded to the actual QNetworkRequest.
~QgsCPLHTTPFetchOverrider()
Destructor.
Base class for feedback objects to be used for cancellation of something running in a worker thread.