8#include <QNetworkProxy>
9#include <QNetworkAccessManager>
21, m_customProxyToken(
token)
24 configure(parameters);
27void QGeoIntrinsicNetworkAccessManager::configure(
const QVariantMap ¶meters)
33 if (!
proxy.isEmpty()) {
34#ifndef QT_NO_NETWORKPROXY
37 if (proxyUrl.isValid()) {
38 qDebug() <<
"Setting proxy to " << proxyUrl.toString();
44 proxyUrl.password()));
48 qDebug() <<
"Setting system proxy.";
51 qDebug() <<
"No proxy support";
54 qDebug() <<
"No proxy parameter specified.";
QNetworkReply * post(const QNetworkRequest &request, const QByteArray &data) override
QNetworkReply * get(const QNetworkRequest &request) override
QGeoIntrinsicNetworkAccessManager(QObject *parent=nullptr)
T value(const Key &key, const T &defaultValue=T()) const
The QNetworkAccessManager class allows the application to send network requests and receive replies.
QNetworkReply * post(const QNetworkRequest &request, QIODevice *data)
Sends an HTTP POST request to the destination specified by request and returns a new QNetworkReply ob...
void setProxy(const QNetworkProxy &proxy)
Sets the proxy to be used in future requests to be proxy.
QNetworkReply * get(const QNetworkRequest &request)
Posts a request to obtain the contents of the target request and returns a new QNetworkReply object o...
static void setUseSystemConfiguration(bool enable)
The QNetworkProxy class provides a network layer proxy.
static QNetworkProxy applicationProxy()
Returns the application level network proxying.
The QNetworkReply class contains the data and headers for a request sent with QNetworkAccessManager.
The QNetworkRequest class holds a request to be sent with QNetworkAccessManager.
\macro QT_RESTRICTED_CAST_FROM_ASCII
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
QString toString() const
Returns the variant as a QString if the variant has a userType() including, but not limited to:
Combined button and popup list for selecting options.
GLint GLsizei GLsizei GLenum GLenum GLsizei void * data
#define QStringLiteral(str)
QNetworkRequest request(url)
IUIAutomationTreeWalker __RPC__deref_out_opt IUIAutomationElement ** parent