Skip to content
Permalink
Browse files

Dox

  • Loading branch information
nyalldawson committed Feb 1, 2019
1 parent 630cd02 commit 03a2a03dcfbb4b265fa980218e819cfc2cd842f0
Showing with 28 additions and 0 deletions.
  1. +14 −0 python/core/auto_generated/qgsnetworkreply.sip.in
  2. +14 −0 src/core/qgsnetworkreply.h
@@ -110,8 +110,22 @@ Returns the original network request.
%End

void setContent( const QByteArray &content );
%Docstring
Sets the reply content. This is not done by default, as reading network reply content
can only be done once.

.. seealso:: :py:func:`content`
%End

QByteArray content() const;
%Docstring
Returns the reply content. This is not available by default, as reading network reply content
can only be done once.

Blocking network requests (see :py:class:`QgsBlockingNetworkRequest`) will automatically populate this content.

.. seealso:: :py:func:`setContent`
%End

};

@@ -139,8 +139,22 @@ class CORE_EXPORT QgsNetworkReplyContent
*/
QNetworkRequest request() const { return mRequest; }

/**
* Sets the reply content. This is not done by default, as reading network reply content
* can only be done once.
*
* \see content()
*/
void setContent( const QByteArray &content ) { mContent = content; }

/**
* Returns the reply content. This is not available by default, as reading network reply content
* can only be done once.
*
* Blocking network requests (see QgsBlockingNetworkRequest) will automatically populate this content.
*
* \see setContent()
*/
QByteArray content() const { return mContent; }

private:

0 comments on commit 03a2a03

Please sign in to comment.
You can’t perform that action at this time.