Qt 6.x
The Qt SDK
Loading...
Searching...
No Matches
qnetworkproxy_darwin.cpp File Reference
#include "qnetworkproxy.h"
#include <CFNetwork/CFNetwork.h>
#include <CoreFoundation/CoreFoundation.h>
#include <SystemConfiguration/SystemConfiguration.h>
#include <QtCore/QRegularExpression>
#include <QtCore/QStringList>
#include <QtCore/QUrl>
#include <QtCore/qendian.h>
#include <QtCore/qstringlist.h>
#include <QtCore/qsystemdetection.h>
#include "private/qcore_mac_p.h"
+ Include dependency graph for qnetworkproxy_darwin.cpp:

Go to the source code of this file.

Functions

static bool isHostExcluded (CFDictionaryRef dict, const QString &host)
 
static QNetworkProxy proxyFromDictionary (CFDictionaryRef dict, QNetworkProxy::ProxyType type, CFStringRef enableKey, CFStringRef hostKey, CFStringRef portKey)
 
static QNetworkProxy proxyFromDictionary (CFDictionaryRef dict)
 
QList< QNetworkProxymacQueryInternal (const QNetworkProxyQuery &query)
 

Function Documentation

◆ isHostExcluded()

static bool isHostExcluded ( CFDictionaryRef  dict,
const QString host 
)
static

Definition at line 48 of file qnetworkproxy_darwin.cpp.

References Qt::CaseInsensitive, QString::contains(), enabled, QRegularExpression::fromWildcard(), i, QString::isEmpty(), QHostAddress::isInSubnet(), QHostAddress::parseSubnet(), Q_ASSERT, Q_UNUSED, rx(), and QHostAddress::setAddress().

Referenced by macQueryInternal().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ macQueryInternal()

QList< QNetworkProxy > macQueryInternal ( const QNetworkProxyQuery query)

Definition at line 218 of file qnetworkproxy_darwin.cpp.

References QByteArray::data(), QNetworkProxy::DefaultProxy, enabled, QNetworkProxy::FtpCachingProxy, QNetworkProxy::HttpProxy, i, QByteArray::isEmpty(), isHostExcluded(), proxy, proxyFromDictionary(), qPrintable, qWarning, QByteArray::size(), QNetworkProxy::Socks5Proxy, QString::toLower(), and QNetworkProxy::type().

+ Here is the call graph for this function:

◆ proxyFromDictionary() [1/2]

static QNetworkProxy proxyFromDictionary ( CFDictionaryRef  dict)
static

◆ proxyFromDictionary() [2/2]

static QNetworkProxy proxyFromDictionary ( CFDictionaryRef  dict,
QNetworkProxy::ProxyType  type,
CFStringRef  enableKey,
CFStringRef  hostKey,
CFStringRef  portKey 
)
static

Definition at line 98 of file qnetworkproxy_darwin.cpp.

References enabled.

Referenced by macQueryInternal().

+ Here is the caller graph for this function: