QGIS API Documentation  2.7.0-Master
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Signals | Public Member Functions | Static Public Member Functions | Protected Member Functions | List of all members
QgsNetworkAccessManager Class Reference

#include <qgsnetworkaccessmanager.h>

Inheritance diagram for QgsNetworkAccessManager:
Inheritance graph


void requestAboutToBeCreated (QNetworkAccessManager::Operation, const QNetworkRequest &, QIODevice *)
void requestCreated (QNetworkReply *)
void requestTimedOut (QNetworkReply *)

Public Member Functions

 QgsNetworkAccessManager (QObject *parent=0)
 ~QgsNetworkAccessManager ()
 destructor More...
const QStringList & excludeList () const
 retrieve exclude list (urls shouldn't use the fallback proxy) More...
const QNetworkProxy & fallbackProxy () const
 retrieve fall back proxy (for urls that no factory returned proxies for) More...
void insertProxyFactory (QNetworkProxyFactory *factory)
 insert a factory into the proxy factories list More...
const QList
< QNetworkProxyFactory * > 
proxyFactories () const
 retrieve proxy factory list More...
void removeProxyFactory (QNetworkProxyFactory *factory)
 remove a factory from the proxy factories list More...
void setFallbackProxyAndExcludes (const QNetworkProxy &proxy, const QStringList &excludes)
 set fallback proxy and URL that shouldn't use it. More...
void setupDefaultProxyAndCache ()
 Setup the NAM according to the user's settings. More...
bool useSystemProxy ()

Static Public Member Functions

cacheLoadControlFromName (const QString &theName)
 Get QNetworkRequest::CacheLoadControl from name. More...
static QString cacheLoadControlName (QNetworkRequest::CacheLoadControl theControl)
 Get name for QNetworkRequest::CacheLoadControl. More...
static QgsNetworkAccessManagerinstance ()
 returns a pointer to the single instance More...

Protected Member Functions

virtual QNetworkReply * createRequest (QNetworkAccessManager::Operation op, const QNetworkRequest &req, QIODevice *outgoingData=0)

Detailed Description

Definition at line 44 of file qgsnetworkaccessmanager.h.

Constructor & Destructor Documentation

QgsNetworkAccessManager::QgsNetworkAccessManager ( QObject *  parent = 0)

Definition at line 102 of file qgsnetworkaccessmanager.cpp.

QgsNetworkAccessManager::~QgsNetworkAccessManager ( )


Definition at line 109 of file qgsnetworkaccessmanager.cpp.

Member Function Documentation

QNetworkRequest::CacheLoadControl QgsNetworkAccessManager::cacheLoadControlFromName ( const QString &  theName)

Get QNetworkRequest::CacheLoadControl from name.

Definition at line 224 of file qgsnetworkaccessmanager.cpp.

QString QgsNetworkAccessManager::cacheLoadControlName ( QNetworkRequest::CacheLoadControl  theControl)

Get name for QNetworkRequest::CacheLoadControl.

Definition at line 202 of file qgsnetworkaccessmanager.cpp.

QNetworkReply * QgsNetworkAccessManager::createRequest ( QNetworkAccessManager::Operation  op,
const QNetworkRequest &  req,
QIODevice *  outgoingData = 0 

Definition at line 157 of file qgsnetworkaccessmanager.cpp.

const QStringList & QgsNetworkAccessManager::excludeList ( ) const

retrieve exclude list (urls shouldn't use the fallback proxy)

Definition at line 128 of file qgsnetworkaccessmanager.cpp.

const QNetworkProxy & QgsNetworkAccessManager::fallbackProxy ( ) const

retrieve fall back proxy (for urls that no factory returned proxies for)

Definition at line 133 of file qgsnetworkaccessmanager.cpp.

void QgsNetworkAccessManager::insertProxyFactory ( QNetworkProxyFactory *  factory)

insert a factory into the proxy factories list

Definition at line 113 of file qgsnetworkaccessmanager.cpp.

QgsNetworkAccessManager * QgsNetworkAccessManager::instance ( )

returns a pointer to the single instance

Definition at line 93 of file qgsnetworkaccessmanager.cpp.

const QList< QNetworkProxyFactory * > QgsNetworkAccessManager::proxyFactories ( ) const

retrieve proxy factory list

Definition at line 123 of file qgsnetworkaccessmanager.cpp.

void QgsNetworkAccessManager::removeProxyFactory ( QNetworkProxyFactory *  factory)

remove a factory from the proxy factories list

Definition at line 118 of file qgsnetworkaccessmanager.cpp.

void QgsNetworkAccessManager::requestAboutToBeCreated ( QNetworkAccessManager::Operation  ,
const QNetworkRequest &  ,
QIODevice *   
void QgsNetworkAccessManager::requestCreated ( QNetworkReply *  )
void QgsNetworkAccessManager::requestTimedOut ( QNetworkReply *  )
void QgsNetworkAccessManager::setFallbackProxyAndExcludes ( const QNetworkProxy &  proxy,
const QStringList &  excludes 

set fallback proxy and URL that shouldn't use it.

Definition at line 138 of file qgsnetworkaccessmanager.cpp.

void QgsNetworkAccessManager::setupDefaultProxyAndCache ( )

Setup the NAM according to the user's settings.

Definition at line 245 of file qgsnetworkaccessmanager.cpp.

bool QgsNetworkAccessManager::useSystemProxy ( )

Definition at line 85 of file qgsnetworkaccessmanager.h.

The documentation for this class was generated from the following files: