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

108 lines
3.4 KiB
Plaintext
Raw Normal View History

2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsnetworkaccessmanager.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/
class QgsNetworkAccessManager : QNetworkAccessManager
{
2017-05-14 09:48:41 +02:00
%Docstring
network access manager for QGIS
2017-12-15 10:36:55 -04:00
2017-05-14 09:48:41 +02:00
.. versionadded:: 1.5
2017-12-15 10:36:55 -04:00
This class implements the QGIS network access manager. It's a singleton
that can be used across QGIS.
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
Plugins can insert proxy factories and thereby redirect requests to
individual proxies.
2017-05-14 09:48:41 +02:00
2017-12-15 10:36:55 -04:00
If no proxy factories are there or none returns a proxy for an URL a
fallback proxy can be set. There's also a exclude list that defines URLs
that the fallback proxy should not be used for, then no proxy will be used.
%End
2017-05-14 09:48:41 +02:00
%TypeHeaderCode
#include "qgsnetworkaccessmanager.h"
%End
public:
static QgsNetworkAccessManager *instance();
2017-05-14 09:48:41 +02:00
QgsNetworkAccessManager( QObject *parent = 0 );
void insertProxyFactory( QNetworkProxyFactory *factory /Transfer/ );
2017-05-14 09:48:41 +02:00
%Docstring
insert a factory into the proxy factories list
%End
void removeProxyFactory( QNetworkProxyFactory *factory /TransferBack/ );
2017-05-14 09:48:41 +02:00
%Docstring
remove a factory from the proxy factories list
%End
const QList<QNetworkProxyFactory *> proxyFactories() const;
2017-05-14 09:48:41 +02:00
%Docstring
retrieve proxy factory list
%End
const QNetworkProxy &fallbackProxy() const;
2017-05-14 09:48:41 +02:00
%Docstring
retrieve fall back proxy (for urls that no factory returned proxies for)
%End
QStringList excludeList() const;
2017-05-14 09:48:41 +02:00
%Docstring
retrieve exclude list (urls shouldn't use the fallback proxy)
%End
void setFallbackProxyAndExcludes( const QNetworkProxy &proxy, const QStringList &excludes );
2017-05-14 09:48:41 +02:00
%Docstring
Sets fallback proxy and URL that shouldn't use it.
2017-05-14 09:48:41 +02:00
%End
static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl control );
2017-05-14 09:48:41 +02:00
%Docstring
Get name for QNetworkRequest.CacheLoadControl
%End
2014-01-26 18:35:21 +01:00
static QNetworkRequest::CacheLoadControl cacheLoadControlFromName( const QString &name );
2017-05-14 09:48:41 +02:00
%Docstring
Get QNetworkRequest.CacheLoadControl from name
%End
2014-01-26 18:35:21 +01:00
2014-05-27 23:22:50 +02:00
void setupDefaultProxyAndCache();
2017-05-14 09:48:41 +02:00
%Docstring
Setup the NAM according to the user's settings
%End
2014-05-27 23:22:50 +02:00
bool useSystemProxy() const;
2017-05-14 09:48:41 +02:00
%Docstring
Returns whether the system proxy should be used
2017-05-14 09:48:41 +02:00
%End
2014-05-27 23:22:50 +02:00
signals:
void requestAboutToBeCreated( QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice * );
void requestCreated( QNetworkReply * );
2014-05-27 23:22:50 +02:00
void requestTimedOut( QNetworkReply * );
protected:
virtual QNetworkReply *createRequest( QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice *outgoingData = 0 );
};
2017-05-14 09:48:41 +02:00
/************************************************************************
* This file has been generated automatically from *
* *
* src/core/qgsnetworkaccessmanager.h *
* *
* Do not edit manually ! Edit header and run scripts/sipify.pl again *
************************************************************************/