QGIS API Documentation
2.8.2-Wien
|
#include <qgsnetworkaccessmanager.h>
Signals | |
void | requestAboutToBeCreated (QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice *) |
void | requestCreated (QNetworkReply *) |
void | requestTimedOut (QNetworkReply *) |
Public Member Functions | |
QgsNetworkAccessManager (QObject *parent=0) | |
~QgsNetworkAccessManager () | |
destructor | |
const QStringList & | excludeList () const |
retrieve exclude list (urls shouldn't use the fallback proxy) | |
const QNetworkProxy & | fallbackProxy () const |
retrieve fall back proxy (for urls that no factory returned proxies for) | |
void | insertProxyFactory (QNetworkProxyFactory *factory) |
insert a factory into the proxy factories list | |
const QList < QNetworkProxyFactory * > | proxyFactories () const |
retrieve proxy factory list | |
void | removeProxyFactory (QNetworkProxyFactory *factory) |
remove a factory from the proxy factories list | |
void | setFallbackProxyAndExcludes (const QNetworkProxy &proxy, const QStringList &excludes) |
set fallback proxy and URL that shouldn't use it. | |
void | setupDefaultProxyAndCache () |
Setup the NAM according to the user's settings. | |
bool | useSystemProxy () |
Static Public Member Functions | |
static QNetworkRequest::CacheLoadControl | cacheLoadControlFromName (const QString &theName) |
Get QNetworkRequest::CacheLoadControl from name. | |
static QString | cacheLoadControlName (QNetworkRequest::CacheLoadControl theControl) |
Get name for QNetworkRequest::CacheLoadControl. | |
![]() | |
static void | cleanup () |
static QgsNetworkAccessManager * | instance () |
Protected Member Functions | |
virtual QNetworkReply * | createRequest (QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice *outgoingData=0) override |
![]() | |
QgsSingleton () | |
virtual | ~QgsSingleton () |
Definition at line 46 of file qgsnetworkaccessmanager.h.
QgsNetworkAccessManager::QgsNetworkAccessManager | ( | QObject * | parent = 0 | ) |
Definition at line 89 of file qgsnetworkaccessmanager.cpp.
QgsNetworkAccessManager::~QgsNetworkAccessManager | ( | ) |
destructor
Definition at line 96 of file qgsnetworkaccessmanager.cpp.
|
static |
Get QNetworkRequest::CacheLoadControl from name.
Definition at line 211 of file qgsnetworkaccessmanager.cpp.
|
static |
Get name for QNetworkRequest::CacheLoadControl.
Definition at line 189 of file qgsnetworkaccessmanager.cpp.
|
overrideprotectedvirtual |
Definition at line 144 of file qgsnetworkaccessmanager.cpp.
const QStringList & QgsNetworkAccessManager::excludeList | ( | ) | const |
retrieve exclude list (urls shouldn't use the fallback proxy)
Definition at line 115 of file qgsnetworkaccessmanager.cpp.
const QNetworkProxy & QgsNetworkAccessManager::fallbackProxy | ( | ) | const |
retrieve fall back proxy (for urls that no factory returned proxies for)
Definition at line 120 of file qgsnetworkaccessmanager.cpp.
void QgsNetworkAccessManager::insertProxyFactory | ( | QNetworkProxyFactory * | factory | ) |
insert a factory into the proxy factories list
Definition at line 100 of file qgsnetworkaccessmanager.cpp.
const QList< QNetworkProxyFactory * > QgsNetworkAccessManager::proxyFactories | ( | ) | const |
retrieve proxy factory list
Definition at line 110 of file qgsnetworkaccessmanager.cpp.
void QgsNetworkAccessManager::removeProxyFactory | ( | QNetworkProxyFactory * | factory | ) |
remove a factory from the proxy factories list
Definition at line 105 of file qgsnetworkaccessmanager.cpp.
|
signal |
|
signal |
|
signal |
void QgsNetworkAccessManager::setFallbackProxyAndExcludes | ( | const QNetworkProxy & | proxy, |
const QStringList & | excludes | ||
) |
set fallback proxy and URL that shouldn't use it.
Definition at line 125 of file qgsnetworkaccessmanager.cpp.
void QgsNetworkAccessManager::setupDefaultProxyAndCache | ( | ) |
Setup the NAM according to the user's settings.
Definition at line 232 of file qgsnetworkaccessmanager.cpp.
|
inline |
Definition at line 83 of file qgsnetworkaccessmanager.h.