QNetworkSettingsIPv6 Class
The QNetworkSettingsIPv6 class encapsulates IPv6 network configuration. More...
Header: | #include <QNetworkSettingsIPv6> |
qmake: | QT += networksettings |
Inherits: | QObject |
Public Types
Properties
|
Public Functions
QNetworkSettingsIPv6(QObject *parent = nullptr) | |
QString | address() const |
QString | gateway() const |
QNetworkSettingsIPv6::Method | method() const |
int | prefixLength() const |
QNetworkSettingsIPv6::Privacy | privacy() const |
void | setAddress(const QString &address) |
void | setGateway(const QString &gateway) |
void | setMethod(const QNetworkSettingsIPv6::Method method) |
void | setPrefixLength(const int &prefixLength) |
void | setPrivacy(const QNetworkSettingsIPv6::Privacy privacy) |
Signals
void | addressChanged() |
void | gatewayChanged() |
void | methodChanged() |
void | prefixLengthChanged() |
void | privacyChanged() |
Member Type Documentation
enum QNetworkSettingsIPv6::Method
This enum type holds the method used for IPv6 configuration.
Constant | Value | Description |
---|---|---|
QNetworkSettingsIPv6::Auto | 0 | The network is configured automatically. |
QNetworkSettingsIPv6::Manual | 1 | The network is configured manually. |
QNetworkSettingsIPv6::Off | 2 | The network is not configured. |
enum QNetworkSettingsIPv6::Privacy
Holds the method of applying the privacy extensions in IPv6.
Constant | Value | Description |
---|---|---|
QNetworkSettingsIPv6::Disabled | 0 | Disables privacy extensions in IPv6 |
QNetworkSettingsIPv6::Enabled | 1 | Enables Privacy Extensions for Stateless Address Autoconfiguration in IPv6. |
QNetworkSettingsIPv6::Preferred | 2 | Enables 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 : Method
Holds the method of IPv6 configuration.
Access functions:
QNetworkSettingsIPv6::Method | method() const |
void | setMethod(const QNetworkSettingsIPv6::Method method) |
Notifier signal:
void | methodChanged() |
See also QNetworkSettingsIPv6::Method.
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 : Privacy
Holds the method of applying privacy extensions for IPv6.
Access functions:
QNetworkSettingsIPv6::Privacy | privacy() const |
void | setPrivacy(const QNetworkSettingsIPv6::Privacy privacy) |
Notifier signal:
void | privacyChanged() |
See also QNetworkSettingsIPv6::Privacy.
Member Function Documentation
[explicit]
QNetworkSettingsIPv6::QNetworkSettingsIPv6(QObject *parent = nullptr)
Creates a new IPv6 network configuration with the parent parent.
© 2024 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.