Skip to content

Commit 03a2a03

Browse files
committed
Dox
1 parent 630cd02 commit 03a2a03

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

python/core/auto_generated/qgsnetworkreply.sip.in

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,22 @@ Returns the original network request.
110110
%End
111111

112112
void setContent( const QByteArray &content );
113+
%Docstring
114+
Sets the reply content. This is not done by default, as reading network reply content
115+
can only be done once.
116+
117+
.. seealso:: :py:func:`content`
118+
%End
113119

114120
QByteArray content() const;
121+
%Docstring
122+
Returns the reply content. This is not available by default, as reading network reply content
123+
can only be done once.
124+
125+
Blocking network requests (see :py:class:`QgsBlockingNetworkRequest`) will automatically populate this content.
126+
127+
.. seealso:: :py:func:`setContent`
128+
%End
115129

116130
};
117131

src/core/qgsnetworkreply.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,8 +139,22 @@ class CORE_EXPORT QgsNetworkReplyContent
139139
*/
140140
QNetworkRequest request() const { return mRequest; }
141141

142+
/**
143+
* Sets the reply content. This is not done by default, as reading network reply content
144+
* can only be done once.
145+
*
146+
* \see content()
147+
*/
142148
void setContent( const QByteArray &content ) { mContent = content; }
143149

150+
/**
151+
* Returns the reply content. This is not available by default, as reading network reply content
152+
* can only be done once.
153+
*
154+
* Blocking network requests (see QgsBlockingNetworkRequest) will automatically populate this content.
155+
*
156+
* \see setContent()
157+
*/
144158
QByteArray content() const { return mContent; }
145159

146160
private:

0 commit comments

Comments
 (0)