NetworkInterface QML Type
Represents a network interface. More...
Import Statement: | import QtDeviceUtilities.NetworkSettings |
Properties
Methods
- void scanServices()
Detailed Description
The NetworkInterface QML type represents a network interface attached to the host.
Instances of NetworkInterface cannot be created directly; instead, they can be retrieved via NetworkSettingsManager.
See also NetworkSettingsManager.interfaces.
Property Documentation
name : string |
Holds the name of the network interface.
powered : bool |
Holds whether the network interface is powered on or off.
state : enumeration |
Holds the state of the network interface.
Possible values:
Constant | Description |
---|---|
NetworkSettingsState.Idle | Idle |
NetworkSettingsState.Failure | Failed to connect |
NetworkSettingsState.Association | Authentication in progress |
NetworkSettingsState.Configuration | Configuration in progress |
NetworkSettingsState.Ready | Connected to a network |
NetworkSettingsState.Disconnect | Disconnected from a network |
NetworkSettingsState.Online | Online (acquired an IP address) |
NetworkSettingsState.Undefined | Undefined state. |
type : enumeration |
Holds the type of the network interface.
Possible values:
Constant | Description |
---|---|
NetworkSettingsType.Wired | Wired network |
NetworkSettingsType.Wifi | Wifi network |
NetworkSettingsType.Bluetooth | Bluetooth network |
NetworkSettingsType.Unknown | Unknown network type |
Method Documentation
void scanServices() |
Initiates a scan for network interface services.
© 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.