44 #include <QtCore/QByteArray> 45 #include <QtCore/QUrl> 47 #ifndef QT_NO_NETWORKPROXY 64 proxy_env =
qgetenv(
"http_proxy");
66 proxy_env =
qgetenv(
"https_proxy");
68 proxy_env =
qgetenv(
"ftp_proxy");
70 proxy_env =
qgetenv(
"all_proxy");
74 proxy_env =
qgetenv(
"http_proxy");
Q_CORE_EXPORT QByteArray qgetenv(const char *varName)
static QString fromLocal8Bit(const char *, int size=-1)
Returns a QString initialized with the first size characters of the 8-bit string str.
#define QT_END_NAMESPACE
This macro expands to.
The QByteArray class provides an array of bytes.
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...
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QUrl class provides a convenient interface for working with URLs.
The QString class provides a Unicode character string.
QString host() const
Returns the host of the URL if it is defined; otherwise an empty string is returned.
bool isEmpty() const
Returns true if the list contains no items; otherwise returns false.
int port() const
Returns the port of the URL, or -1 if the port is unspecified.
The QNetworkProxy class provides a network layer proxy.
#define QT_BEGIN_NAMESPACE
This macro expands to.
QString protocolTag() const
Returns the protocol tag for this QNetworkProxyQuery object, or an empty QString in case the protocol...
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
The QNetworkProxyQuery class is used to query the proxy settings for a socket.
QString userName() const
Returns the user name of the URL if it is defined; otherwise an empty string is returned.
QString scheme() const
Returns the scheme of the URL.
void setCapabilities(Capabilities capab)
Sets the capabilities of this proxy to capabilities.
QString toLower() const Q_REQUIRED_RESULT
Returns a lowercase copy of the string.
bool isEmpty() const
Returns true if the byte array has size 0; otherwise returns false.
QString password() const
Returns the password of the URL if it is defined; otherwise an empty string is returned.