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

#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
void insertProxyFactory (QNetworkProxyFactory *factory)
 insert a factory into the proxy factories list
void removeProxyFactory (QNetworkProxyFactory *factory)
 remove a factory from the proxy factories list
const QList
< QNetworkProxyFactory * > 
proxyFactories () const
 retrieve proxy factory list
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.
void setupDefaultProxyAndCache ()
 Setup the NAM according to the user's settings.
bool useSystemProxy ()

Static Public Member Functions

static QgsNetworkAccessManagerinstance ()
 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)

Constructor & Destructor Documentation

QgsNetworkAccessManager::QgsNetworkAccessManager ( QObject *  parent = 0)
QgsNetworkAccessManager::~QgsNetworkAccessManager ( )

destructor

Member Function Documentation

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

Get QNetworkRequest::CacheLoadControl from name.

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

Get name for QNetworkRequest::CacheLoadControl.

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

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

const QNetworkProxy & QgsNetworkAccessManager::fallbackProxy ( ) const

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

void QgsNetworkAccessManager::insertProxyFactory ( QNetworkProxyFactory *  factory)

insert a factory into the proxy factories list

QgsNetworkAccessManager * QgsNetworkAccessManager::instance ( )
static

returns a pointer to the single instance

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

retrieve proxy factory list

void QgsNetworkAccessManager::removeProxyFactory ( QNetworkProxyFactory *  factory)

remove a factory from the proxy factories list

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

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

void QgsNetworkAccessManager::setupDefaultProxyAndCache ( )

Setup the NAM according to the user's settings.

bool QgsNetworkAccessManager::useSystemProxy ( )
inline

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