QNetworkSettingsIPv6 Class

The QNetworkSettingsIPv6 class encapsulates IPv6 network configuration. More...

Header: #include <QNetworkSettingsIPv6>
qmake: QT += networksettings
Inherits: QObject

Public Types

enum MethodType { Auto, Manual, Off }
enum PrivacyType { Disabled, Enabled, Preferred }

Properties

  • 1 property inherited from QObject

Public Functions

QNetworkSettingsIPv6(QObject *parent = Q_NULLPTR)
QString address() const
QString gateway() const
QNetworkSettingsIPv6::MethodType method() const
int prefixLength() const
QNetworkSettingsIPv6::PrivacyType privacy() const
void setAddress(const QString &address)
void setGateway(const QString &gateway)
void setMethod(const QNetworkSettingsIPv6::MethodType method)
void setPrefixLength(const int &prefixLength)
void setPrivacy(const QNetworkSettingsIPv6::PrivacyType privacy)
  • 31 public functions inherited from QObject

Signals

Static Public Members

const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QNetworkSettingsIPv6 class encapsulates IPv6 network configuration.

Member Type Documentation

enum QNetworkSettingsIPv6::MethodType

This enum type holds the method used for IPv6 configuration.

ConstantValueDescription
QNetworkSettingsIPv6::Auto0The network is configured automatically.
QNetworkSettingsIPv6::Manual1The network is configured manually.
QNetworkSettingsIPv6::Off2The network is not configured.

enum QNetworkSettingsIPv6::PrivacyType

Holds the method of applying the privacy extensions in IPv6.

ConstantValueDescription
QNetworkSettingsIPv6::Disabled0Disables privacy extensions in IPv6
QNetworkSettingsIPv6::Enabled1Enables Privacy Extensions for Stateless Address Autoconfiguration in IPv6.
QNetworkSettingsIPv6::Preferred2Enables privacy extensions and gives preference to the use of temporary addresses, even when a public address is available

Property Documentation

address : QString

Holds the IPv6 address.

Access functions:

QString address() const
void setAddress(const QString &address)

Notifier signal:

void addressChanged()

gateway : QString

Holds the IPv6 gateway address.

Access functions:

QString gateway() const
void setGateway(const QString &gateway)

Notifier signal:

void gatewayChanged()

method : MethodType

Holds the method of IPv6 configuration.

Access functions:

QNetworkSettingsIPv6::MethodType method() const
void setMethod(const QNetworkSettingsIPv6::MethodType method)

Notifier signal:

void methodChanged()

See also QNetworkSettingsIPv6::MethodType.

prefixLength : int

Holds the IPv6 network prefix length in bits.

Access functions:

int prefixLength() const
void setPrefixLength(const int &prefixLength)

Notifier signal:

void prefixLengthChanged()

privacy : PrivacyType

Holds the method of applying privacy extensions for IPv6.

Access functions:

QNetworkSettingsIPv6::PrivacyType privacy() const
void setPrivacy(const QNetworkSettingsIPv6::PrivacyType privacy)

Notifier signal:

void privacyChanged()

See also QNetworkSettingsIPv6::PrivacyType.

Member Function Documentation

QNetworkSettingsIPv6::QNetworkSettingsIPv6(QObject *parent = Q_NULLPTR)

Creates a new IPv6 network configuration with the parent parent.

© 2020 The Qt Company Ltd. Documentation contributions included herein are the copyrights of their respective owners. The documentation provided herein is licensed under the terms of the GNU Free Documentation License version 1.3 as published by the Free Software Foundation. Qt and respective logos are trademarks of The Qt Company Ltd. in Finland and/or other countries worldwide. All other trademarks are property of their respective owners.