Skip to content

Commit dcb6104

Browse files
committedFeb 1, 2019
Dox++
1 parent 18941a1 commit dcb6104

File tree

2 files changed

+104
-18
lines changed

2 files changed

+104
-18
lines changed
 

‎python/core/auto_generated/qgsnetworkaccessmanager.sip.in

Lines changed: 46 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -147,42 +147,79 @@ need to be handled on the main thread. See in-depth discussion below.
147147

148148
void insertProxyFactory( QNetworkProxyFactory *factory /Transfer/ );
149149
%Docstring
150-
insert a factory into the proxy factories list
150+
Inserts a ``factory`` into the proxy factories list.
151+
152+
Ownership of ``factory`` is transferred to the manager.
153+
154+
.. seealso:: :py:func:`removeProxyFactory`
155+
156+
.. seealso:: :py:func:`proxyFactories`
151157
%End
152158

153159
void removeProxyFactory( QNetworkProxyFactory *factory /TransferBack/ );
154160
%Docstring
155-
remove a factory from the proxy factories list
161+
Removes a ``factory`` from the proxy factories list.
162+
163+
.. seealso:: :py:func:`insertProxyFactory`
164+
165+
.. seealso:: :py:func:`proxyFactories`
156166
%End
157167

158168
const QList<QNetworkProxyFactory *> proxyFactories() const;
159169
%Docstring
160-
retrieve proxy factory list
170+
Returns a list of proxy factories used by the manager.
171+
172+
.. seealso:: :py:func:`insertProxyFactory`
173+
174+
.. seealso:: :py:func:`proxyFactories`
161175
%End
162176

163177
const QNetworkProxy &fallbackProxy() const;
164178
%Docstring
165-
retrieve fall back proxy (for urls that no factory returned proxies for)
179+
Returns the fallback proxy used by the manager.
180+
181+
The fallback proxy is used for URLs which no other proxy factory returned proxies for.
182+
183+
.. seealso:: :py:func:`proxyFactories`
184+
185+
.. seealso:: :py:func:`setFallbackProxyAndExcludes`
166186
%End
167187

168188
QStringList excludeList() const;
169189
%Docstring
170-
retrieve exclude list (urls shouldn't use the fallback proxy)
190+
Returns the proxy exclude list.
191+
192+
This list consists of the beginning of URL strings which will not use the fallback proxy.
193+
194+
.. seealso:: :py:func:`fallbackProxy`
195+
196+
.. seealso:: :py:func:`setFallbackProxyAndExcludes`
171197
%End
172198

173199
void setFallbackProxyAndExcludes( const QNetworkProxy &proxy, const QStringList &excludes );
174200
%Docstring
175-
Sets fallback proxy and URL that shouldn't use it.
201+
Sets the fallback ``proxy`` and URLs which shouldn't use it.
202+
203+
The fallback proxy is used for URLs which no other proxy factory returned proxies for.
204+
The ``excludes`` list specifies the beginning of URL strings which will not use this fallback proxy.
205+
206+
.. seealso:: :py:func:`fallbackProxy`
207+
208+
.. seealso:: :py:func:`excludeList`
176209
%End
177210

178211
static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl control );
179212
%Docstring
180-
Gets name for QNetworkRequest.CacheLoadControl
213+
Returns the name for QNetworkRequest.CacheLoadControl.
214+
215+
.. seealso:: :py:func:`cacheLoadControlFromName`
181216
%End
182217

183218
static QNetworkRequest::CacheLoadControl cacheLoadControlFromName( const QString &name );
184219
%Docstring
185-
Gets QNetworkRequest.CacheLoadControl from name
220+
Returns QNetworkRequest.CacheLoadControl from a ``name``.
221+
222+
.. seealso:: :py:func:`cacheLoadControlName`
186223
%End
187224

188225
void setupDefaultProxyAndCache( Qt::ConnectionType connectionType = Qt::BlockingQueuedConnection );
@@ -196,7 +233,7 @@ for the constructor of this class.
196233

197234
bool useSystemProxy() const;
198235
%Docstring
199-
Returns whether the system proxy should be used
236+
Returns whether the system proxy should be used.
200237
%End
201238

202239
signals:

‎src/core/qgsnetworkaccessmanager.h

Lines changed: 58 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -313,28 +313,75 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
313313
void setAuthHandler( std::unique_ptr< QgsNetworkAuthenticationHandler > handler );
314314
#endif
315315

316-
//! insert a factory into the proxy factories list
316+
/**
317+
* Inserts a \a factory into the proxy factories list.
318+
*
319+
* Ownership of \a factory is transferred to the manager.
320+
*
321+
* \see removeProxyFactory()
322+
* \see proxyFactories()
323+
*/
317324
void insertProxyFactory( QNetworkProxyFactory *factory SIP_TRANSFER );
318325

319-
//! remove a factory from the proxy factories list
326+
/**
327+
* Removes a \a factory from the proxy factories list.
328+
*
329+
* \see insertProxyFactory()
330+
* \see proxyFactories()
331+
*/
320332
void removeProxyFactory( QNetworkProxyFactory *factory SIP_TRANSFERBACK );
321333

322-
//! retrieve proxy factory list
334+
/**
335+
* Returns a list of proxy factories used by the manager.
336+
*
337+
* \see insertProxyFactory()
338+
* \see proxyFactories()
339+
*/
323340
const QList<QNetworkProxyFactory *> proxyFactories() const;
324341

325-
//! retrieve fall back proxy (for urls that no factory returned proxies for)
342+
/**
343+
* Returns the fallback proxy used by the manager.
344+
*
345+
* The fallback proxy is used for URLs which no other proxy factory returned proxies for.
346+
*
347+
* \see proxyFactories()
348+
* \see setFallbackProxyAndExcludes()
349+
*/
326350
const QNetworkProxy &fallbackProxy() const;
327351

328-
//! retrieve exclude list (urls shouldn't use the fallback proxy)
352+
/**
353+
* Returns the proxy exclude list.
354+
*
355+
* This list consists of the beginning of URL strings which will not use the fallback proxy.
356+
*
357+
* \see fallbackProxy()
358+
* \see setFallbackProxyAndExcludes()
359+
*/
329360
QStringList excludeList() const;
330361

331-
//! Sets fallback proxy and URL that shouldn't use it.
362+
/**
363+
* Sets the fallback \a proxy and URLs which shouldn't use it.
364+
*
365+
* The fallback proxy is used for URLs which no other proxy factory returned proxies for.
366+
* The \a excludes list specifies the beginning of URL strings which will not use this fallback proxy.
367+
*
368+
* \see fallbackProxy()
369+
* \see excludeList()
370+
*/
332371
void setFallbackProxyAndExcludes( const QNetworkProxy &proxy, const QStringList &excludes );
333372

334-
//! Gets name for QNetworkRequest::CacheLoadControl
373+
/**
374+
* Returns the name for QNetworkRequest::CacheLoadControl.
375+
*
376+
* \see cacheLoadControlFromName()
377+
*/
335378
static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl control );
336379

337-
//! Gets QNetworkRequest::CacheLoadControl from name
380+
/**
381+
* Returns QNetworkRequest::CacheLoadControl from a \a name.
382+
*
383+
* \see cacheLoadControlName()
384+
*/
338385
static QNetworkRequest::CacheLoadControl cacheLoadControlFromName( const QString &name );
339386

340387
/**
@@ -346,7 +393,9 @@ class CORE_EXPORT QgsNetworkAccessManager : public QNetworkAccessManager
346393
*/
347394
void setupDefaultProxyAndCache( Qt::ConnectionType connectionType = Qt::BlockingQueuedConnection );
348395

349-
//! Returns whether the system proxy should be used
396+
/**
397+
* Returns whether the system proxy should be used.
398+
*/
350399
bool useSystemProxy() const { return mUseSystemProxy; }
351400

352401
signals:

0 commit comments

Comments
 (0)
Please sign in to comment.