16#ifndef QGSCPLHTTPFETCHOVERRIDER_H
17#define QGSCPLHTTPFETCHOVERRIDER_H
21#include <QNetworkRequest>
51 void setAttribute( QNetworkRequest::Attribute code,
const QVariant &value );
65 QThread *thread()
const;
69#if GDAL_VERSION_NUM >= GDAL_COMPUTE_VERSION(3,2,0)
70 static CPLHTTPResult *callback(
const char *pszURL,
71 CSLConstList papszOptions,
72 GDALProgressFunc pfnProgress,
74 CPLHTTPFetchWriteFunc pfnWrite,
83 QPointer< QThread > mThread;
85 std::map<QNetworkRequest::Attribute, QVariant> mAttributes;
Utility class to redirect GDAL's CPL HTTP calls through QgsBlockingNetworkRequest.
Base class for feedback objects to be used for cancellation of something running in a worker thread.