Skip to content

Commit

Permalink
Since QGIS 3.22
Browse files Browse the repository at this point in the history
  • Loading branch information
mhugent committed Jun 21, 2021
1 parent a7739d9 commit 2b97162
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
Expand Up @@ -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;
Expand Down Expand Up @@ -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 ) )
Expand Down Expand Up @@ -420,6 +420,8 @@ Abort any outstanding external browser login request.
Preprocesses request

:param req: the request to preprocess

.. versionadded:: 3.22
%End

signals:
Expand Down
5 changes: 3 additions & 2 deletions src/core/network/qgsnetworkaccessmanager.h
Expand Up @@ -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 );
Expand Down Expand Up @@ -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 );
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 2b97162

Please sign in to comment.