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" 76 void insertProxyFactory( QNetworkProxyFactory *factory
SIP_TRANSFER );
82 const QList<QNetworkProxyFactory *> proxyFactories()
const;
85 const QNetworkProxy &fallbackProxy()
const;
88 QStringList excludeList()
const;
91 void setFallbackProxyAndExcludes(
const QNetworkProxy &proxy,
const QStringList &excludes );
94 static QString cacheLoadControlName( QNetworkRequest::CacheLoadControl control );
97 static QNetworkRequest::CacheLoadControl cacheLoadControlFromName(
const QString &name );
106 void setupDefaultProxyAndCache( Qt::ConnectionType connectionType = Qt::BlockingQueuedConnection );
112 void requestAboutToBeCreated( QNetworkAccessManager::Operation,
const QNetworkRequest &, QIODevice * );
113 void requestCreated( QNetworkReply * );
114 void requestTimedOut( QNetworkReply * );
120 QNetworkReply *createRequest( QNetworkAccessManager::Operation op,
const QNetworkRequest &req, QIODevice *outgoingData =
nullptr )
override;
123 QList<QNetworkProxyFactory *> mProxyFactories;
124 QNetworkProxy mFallbackProxy;
125 QStringList mExcludedURLs;
126 bool mUseSystemProxy =
false;
127 bool mInitialized =
false;
131 #endif // QGSNETWORKACCESSMANAGER_H
bool useSystemProxy() const
Returns whether the system proxy should be used.
network access manager for QGISThis class implements the QGIS network access manager.