Represents a network interface. More...
|qmake:||QT += networksettings|
- name : const QString
- powered : bool
- state : const QNetworkSettingsState::States
- type : const QNetworkSettingsType::Types
- 1 property inherited from QObject
|QNetworkSettingsInterface(QObject *parent = Q_NULLPTR)|
|void||setPowered(const bool powered)|
- 31 public functions inherited from QObject
- 2 signals inherited from QObject
- 9 static public members inherited from QObject
|QNetworkSettingsInterface(const QNetworkSettingsInterface &)|
|QNetworkSettingsInterface &||operator=(const QNetworkSettingsInterface &)|
- 9 protected functions inherited from QObject
Additional Inherited Members
- 1 public slot inherited from QObject
Represents a network interface.
The QNetworkSettingsInterface class represents a network interface attached to the host.
Instances of this class cannot be created directly. Instead, they can be retrieved via QNetworkSettingsManager::interfaces().
name : const QString
Holds the name of the network interface.
Holds whether the network interface is powered on of off.
state : const QNetworkSettingsState::States
Holds the state of the network interface.
See also QNetworkSettingsState::States.
type : const QNetworkSettingsType::Types
Holds the type of the network interface.
See also QNetworkSettingsType::Types.
Member Function Documentation
QNetworkSettingsInterface::QNetworkSettingsInterface(QObject *parent = Q_NULLPTR)
Creates a new network interface with the parent parent.
Default constructs an instance of QNetworkSettingsInterface.
QString QNetworkSettingsInterface::name() const
Returns the name of the network interface.
Note: Getter function for property name.
Returns whether the network interface is powered on or off.
Note: Getter function for property powered.
See also setPowered().
Initiates a scan for network interface services.
Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.
Sets the powered state in the network interface to powered.
Note: Setter function for property powered.
See also powered().
Returns the state of the network interface.
Note: Getter function for property state.
Returns the type of the network interface.
Note: Getter function for property type.
[protected] QNetworkSettingsInterface &QNetworkSettingsInterface::operator=(const QNetworkSettingsInterface &)
© 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.