QNetworkSettingsType Class
The QNetworkSettingsType class represents the network interface type. More...
Header: | #include <QNetworkSettingsType> |
qmake: | QT += networksettings |
Inherits: | QObject |
Public Types
enum | Types { Wired, Wifi, Bluetooth, Unknown } |
Properties
- type : Types
Public Functions
QNetworkSettingsType(QObject *parent = Q_NULLPTR) | |
QNetworkSettingsType(QNetworkSettingsType::Types type, QObject *parent = Q_NULLPTR) | |
void | setType(const QNetworkSettingsType::Types type) |
QNetworkSettingsType::Types | type() const |
Signals
void | typeChanged() |
See also QNetworkSettingsManager.
Member Type Documentation
enum QNetworkSettingsType::Types
This enum type holds the type of the network interface.
Constant | Value | Description |
---|---|---|
QNetworkSettingsType::Wired | 0 | Wired network |
QNetworkSettingsType::Wifi | 1 | Wifi network |
QNetworkSettingsType::Bluetooth | 2 | Bluetooth network |
QNetworkSettingsType::Unknown | 3 | Unknown network type |
Property Documentation
type : Types
This property holds the type of the network interface.
Access functions:
Notifier signal:
void | typeChanged() |
See also QNetworkSettingsType::Types.
Member Function Documentation
QNetworkSettingsType::QNetworkSettingsType(QObject *parent = Q_NULLPTR)
Creates a new network interface type object with the parent parent.
QNetworkSettingsType::QNetworkSettingsType(QNetworkSettingsType::Types type, QObject *parent = Q_NULLPTR)
Creates a new network interface type object with the type type and parent parent.
[signal]
void QNetworkSettingsType::typeChanged()
This signal is emitted when the type of the network interface changes.
Note: Notifier signal for property type.
See also QNetworkSettingsType::Types.
void QNetworkSettingsType::setType(const QNetworkSettingsType::Types type)
Sets the network interface type to type.
Note: Setter function for property type.
See also type().
QNetworkSettingsType::Types QNetworkSettingsType::type() const
Returns the network interface type.
Note: Getter function for property type.
See also setType().
© 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.