18 #ifndef QGSNETWORKACCESSMANAGER_H
19 #define QGSNETWORKACCESSMANAGER_H
22 #include <QStringList>
23 #include <QNetworkAccessManager>
24 #include <QNetworkProxy>
25 #include <QNetworkRequest>
57 void insertProxyFactory( QNetworkProxyFactory *factory );
60 void removeProxyFactory( QNetworkProxyFactory *factory );
63 const QList<QNetworkProxyFactory *> proxyFactories()
const;
66 const QNetworkProxy &fallbackProxy()
const;
69 const QStringList &excludeList()
const;
72 void setFallbackProxyAndExcludes(
const QNetworkProxy &proxy,
const QStringList &excludes );
75 static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl theControl );
78 static QNetworkRequest::CacheLoadControl cacheLoadControlFromName(
const QString &theName );
81 void setupDefaultProxyAndCache();
86 void requestAboutToBeCreated( QNetworkAccessManager::Operation,
const QNetworkRequest &, QIODevice * );
87 void requestCreated( QNetworkReply * );
88 void requestTimedOut( QNetworkReply * );
94 virtual QNetworkReply *createRequest( QNetworkAccessManager::Operation op,
const QNetworkRequest &req, QIODevice *outgoingData = 0 )
override;
97 QList<QNetworkProxyFactory*> mProxyFactories;
98 QNetworkProxy mFallbackProxy;
99 QStringList mExcludedURLs;
100 bool mUseSystemProxy;
103 #endif // QGSNETWORKACCESSMANAGER_H