18 #ifndef QGSNETWORKACCESSMANAGER_H
19 #define QGSNETWORKACCESSMANAGER_H
22 #include <QStringList>
23 #include <QNetworkAccessManager>
24 #include <QNetworkProxy>
25 #include <QNetworkRequest>
59 void insertProxyFactory( QNetworkProxyFactory *factory );
62 void removeProxyFactory( QNetworkProxyFactory *factory );
65 const QList<QNetworkProxyFactory *> proxyFactories()
const;
68 const QNetworkProxy &fallbackProxy()
const;
71 const QStringList &excludeList()
const;
74 void setFallbackProxyAndExcludes(
const QNetworkProxy &proxy,
const QStringList &excludes );
77 static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl theControl );
80 static QNetworkRequest::CacheLoadControl cacheLoadControlFromName(
const QString &theName );
83 void setupDefaultProxyAndCache();
88 void requestAboutToBeCreated( QNetworkAccessManager::Operation,
const QNetworkRequest &, QIODevice * );
89 void requestCreated( QNetworkReply * );
90 void requestTimedOut( QNetworkReply * );
96 virtual QNetworkReply *createRequest( QNetworkAccessManager::Operation op,
const QNetworkRequest &req, QIODevice *outgoingData = 0 );
99 QList<QNetworkProxyFactory*> mProxyFactories;
100 QNetworkProxy mFallbackProxy;
101 QStringList mExcludedURLs;
102 bool mUseSystemProxy;
105 #endif // QGSNETWORKACCESSMANAGER_H