18 #ifndef QGSNETWORKACCESSMANAGER_H 19 #define QGSNETWORKACCESSMANAGER_H 23 #include <QStringList> 24 #include <QNetworkAccessManager> 25 #include <QNetworkProxy> 26 #include <QNetworkRequest> 28 #include "qgis_core.h" 59 void insertProxyFactory( QNetworkProxyFactory *factory
SIP_TRANSFER );
65 const QList<QNetworkProxyFactory *> proxyFactories()
const;
68 const QNetworkProxy &fallbackProxy()
const;
71 QStringList excludeList()
const;
74 void setFallbackProxyAndExcludes(
const QNetworkProxy &proxy,
const QStringList &excludes );
77 static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl control );
80 static QNetworkRequest::CacheLoadControl cacheLoadControlFromName(
const QString &name );
83 void setupDefaultProxyAndCache();
89 void requestAboutToBeCreated( QNetworkAccessManager::Operation,
const QNetworkRequest &, QIODevice * );
90 void requestCreated( QNetworkReply * );
91 void requestTimedOut( QNetworkReply * );
97 QNetworkReply *createRequest( QNetworkAccessManager::Operation op,
const QNetworkRequest &req, QIODevice *outgoingData =
nullptr )
override;
100 QList<QNetworkProxyFactory *> mProxyFactories;
101 QNetworkProxy mFallbackProxy;
102 QStringList mExcludedURLs;
103 bool mUseSystemProxy =
false;
104 bool mInitialized =
false;
108 #endif // QGSNETWORKACCESSMANAGER_H
bool useSystemProxy() const
return whether the system proxy should be used
network access manager for QGIS