QGIS API Documentation
2.0.1-Dufour
|
#include <qgsnetworkaccessmanager.h>
Signals | |
void | requestAboutToBeCreated (QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice *) |
void | requestCreated (QNetworkReply *) |
Public Member Functions | |
~QgsNetworkAccessManager () | |
destructor | |
const QNetworkProxy & | fallbackProxy () const |
retrieve fall back proxy (for urls that no factory returned proxies for) | |
const QStringList & | excludeList () const |
retrieve exclude list (urls shouldn't use the fallback proxy) | |
void | setFallbackProxyAndExcludes (const QNetworkProxy &proxy, const QStringList &excludes) |
set fallback proxy and URL that shouldn't use it. |
Static Public Member Functions | |
static QgsNetworkAccessManager * | instance () |
returns a pointer to the single instance | |
static QString | cacheLoadControlName (QNetworkRequest::CacheLoadControl theControl) |
Get name for QNetworkRequest::CacheLoadControl. | |
static QNetworkRequest::CacheLoadControl | cacheLoadControlFromName (const QString &theName) |
Get QNetworkRequest::CacheLoadControl from name. |
Protected Member Functions | |
virtual QNetworkReply * | createRequest (QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice *outgoingData=0) |
Private Slots | |
void | abortRequest () |
Private Member Functions | |
QgsNetworkAccessManager (QObject *parent=0) |
Private Attributes | |
QNetworkProxy | mFallbackProxy |
QStringList | mExcludedURLs |
Static Private Attributes | |
static QgsNetworkAccessManager * | smNAM = 0 |
Definition at line 44 of file qgsnetworkaccessmanager.h.
QgsNetworkAccessManager::~QgsNetworkAccessManager | ( | ) |
destructor
Definition at line 95 of file qgsnetworkaccessmanager.cpp.
|
private |
Definition at line 87 of file qgsnetworkaccessmanager.cpp.
Referenced by instance().
|
privateslot |
Definition at line 148 of file qgsnetworkaccessmanager.cpp.
References QgsMessageLog::logMessage(), and tr.
Referenced by createRequest().
|
static |
Get QNetworkRequest::CacheLoadControl from name.
Definition at line 183 of file qgsnetworkaccessmanager.cpp.
|
static |
Get name for QNetworkRequest::CacheLoadControl.
Definition at line 161 of file qgsnetworkaccessmanager.cpp.
|
protectedvirtual |
Definition at line 132 of file qgsnetworkaccessmanager.cpp.
References abortRequest(), requestAboutToBeCreated(), and requestCreated().
const QStringList & QgsNetworkAccessManager::excludeList | ( | ) | const |
retrieve exclude list (urls shouldn't use the fallback proxy)
Definition at line 116 of file qgsnetworkaccessmanager.cpp.
References mExcludedURLs.
const QNetworkProxy & QgsNetworkAccessManager::fallbackProxy | ( | ) | const |
retrieve fall back proxy (for urls that no factory returned proxies for)
Definition at line 121 of file qgsnetworkaccessmanager.cpp.
References mFallbackProxy.
|
static |
returns a pointer to the single instance
Definition at line 77 of file qgsnetworkaccessmanager.cpp.
References QgsNetworkAccessManager(), and smNAM.
Referenced by QgsAttributeEditor::createAttributeEditor(), QgsGml::getFeatures(), and QgsOWSSourceSelect::on_mSearchButton_clicked().
|
signal |
Referenced by createRequest().
|
signal |
Referenced by createRequest().
void QgsNetworkAccessManager::setFallbackProxyAndExcludes | ( | const QNetworkProxy & | proxy, |
const QStringList & | excludes | ||
) |
set fallback proxy and URL that shouldn't use it.
Definition at line 126 of file qgsnetworkaccessmanager.cpp.
References mExcludedURLs, and mFallbackProxy.
|
private |
Definition at line 98 of file qgsnetworkaccessmanager.h.
Referenced by excludeList(), and setFallbackProxyAndExcludes().
|
private |
Definition at line 97 of file qgsnetworkaccessmanager.h.
Referenced by fallbackProxy(), and setFallbackProxyAndExcludes().
|
staticprivate |
Definition at line 100 of file qgsnetworkaccessmanager.h.
Referenced by instance().