Skip to content
Permalink
Browse files
Since QGIS 3.22
  • Loading branch information
mhugent committed Jun 21, 2021
1 parent a7739d9 commit 2b97162c23bc8c85f7633e79fe867d94ecab9050
Showing with 7 additions and 4 deletions.
  1. +4 −2 python/core/auto_generated/network/qgsnetworkaccessmanager.sip.in
  2. +3 −2 src/core/network/qgsnetworkaccessmanager.h
@@ -332,7 +332,7 @@ The ``processor`` function takes the QNetworkRequest as its argument, and can mu

.. seealso:: :py:func:`removeRequestPreprocessor`

.. versionadded:: 3.12
.. versionadded:: 3.22
%End
%MethodCode
PyObject *s = 0;
@@ -370,7 +370,7 @@ Returns ``True`` if processor existed and was removed.

.. seealso:: :py:func:`setRequestPreprocessor`

.. versionadded:: 3.12
.. versionadded:: 3.22
%End
%MethodCode
if ( !QgsNetworkAccessManager::removeRequestPreprocessor( *a0 ) )
@@ -420,6 +420,8 @@ Abort any outstanding external browser login request.
Preprocesses request

:param req: the request to preprocess

.. versionadded:: 3.22
%End

signals:
@@ -525,7 +525,7 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
* used to remove the preprocessor (via a call to removeRequestPreprocessor()).
*
* \see removeRequestPreprocessor()
* \since QGIS 3.12
* \since QGIS 3.22
*/
#ifndef SIP_RUN
static QString setRequestPreprocessor( const std::function< void( QNetworkRequest *request )> &processor );
@@ -566,7 +566,7 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
* Returns TRUE if processor existed and was removed.
*
* \see setRequestPreprocessor()
* \since QGIS 3.12
* \since QGIS 3.22
*/
#ifndef SIP_RUN
static bool removeRequestPreprocessor( const QString &id );
@@ -614,6 +614,7 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
/**
* Preprocesses request
* \param req the request to preprocess
* \since QGIS 3.22
*/
void preprocessRequest( QNetworkRequest *req ) const;

0 comments on commit 2b97162

Please sign in to comment.