6#include <QtCore/qcoreapplication_platform.h>
7#include <QtCore/qjnienvironment.h>
8#include <QtCore/qjniobject.h>
10#ifndef QT_NO_NETWORKPROXY
34 QAndroidApplication::context());
41 QAndroidApplication::context());
47 if (!proxyInfoInstance)
50 QJniObject proxyInfo = QJniObject::callStaticObjectMethod<QtJniTypes::ProxyInfo>(
51 networkClass,
"getProxyInfo", QAndroidApplication::context());
52 if (proxyInfo.isValid()) {
54 proxyInfo.callObjectMethod<QtJniTypes::JStringArray>(
"getExclusionList");
56 if (exclusionList.isValid()) {
57 jobjectArray listObject = exclusionList.object<jobjectArray>();
60 const int size = env->GetArrayLength(listObject);
62 for (
int i = 0;
i <
size; ++
i) {
63 entry = env->GetObjectArrayElement(listObject,
i);
71 QJniObject hostName = proxyInfo.callObjectMethod<jstring>(
"getHost");
72 const int port = proxyInfo.callMethod<jint>(
"getPort");
bool isEmpty() const noexcept
static QList< QNetworkProxy > systemProxyForQuery(const QNetworkProxyQuery &query=QNetworkProxyQuery())
This function takes the query request, query, examines the details of the type of socket or request a...
The QNetworkProxyQuery class is used to query the proxy settings for a socket.
The QNetworkProxy class provides a network layer proxy.
bool matches(const QUrl &url, FormattingOptions options) const
Combined button and popup list for selecting options.
#define Q_GLOBAL_STATIC(TYPE, NAME,...)
static const char networkClass[]
GLenum GLuint GLintptr GLsizeiptr size
[1]
Q_DECLARE_JNI_TYPE(File, "Ljava/io/File;")