Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qnetworkproxy_darwin.cpp File Reference

(0bd9265867853263f2a3961f3c3af62d8ef93e7d)

#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::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 Qt::CaseInsensitive, QString::compare(), QNetworkProxy::DefaultProxy, enabled, QNetworkProxy::FtpCachingProxy, QNetworkProxy::HttpProxy, i, isHostExcluded(), proxy, proxyFromDictionary(), qPrintable, qWarning, and QNetworkProxy::Socks5Proxy.

+ 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: