106 switch (proxy.
type()) {
QNetworkProxy::ProxyType type() const
Returns the proxy type for this instance.
The QByteArray class provides an array of bytes.
QLatin1String(DBUS_INTERFACE_DBUS))) Q_GLOBAL_STATIC_WITH_ARGS(QString
The QUrl class provides a convenient interface for working with URLs.
void setHost(const QString &host)
Sets the host of the URL to host.
bool isEmpty() const
Returns true if the string has no characters; otherwise returns false.
void setFragment(const QString &fragment)
Sets the fragment of the URL to fragment.
QByteArray toEncoded(FormattingOptions options=None) const
Returns the encoded representation of the URL if it's valid; otherwise an empty QByteArray is returne...
QString scheme() const
Returns the scheme of the URL.
void setPort(int port)
Sets the port of the URL to port.
quint16 port() const
Returns the port of the proxy host.
void setScheme(const QString &scheme)
Sets the scheme of the URL to scheme.
QString user() const
Returns the user name used for authentication.
void setUserName(const QString &userName)
Sets the URL's user name to userName.
QString hostName() const
Returns the host name of the proxy host.