NetworkInterface QML Type

Represents a network interface. More...

Import Statement: import QtDeviceUtilities.NetworkSettings



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 [read-only]

Holds the name of the network interface.

powered : bool

Holds whether the network interface is powered on or off.

state : enumeration [read-only]

Holds the state of the network interface.

Possible values:

NetworkSettingsState.FailureFailed to connect
NetworkSettingsState.AssociationAuthentication in progress
NetworkSettingsState.ConfigurationConfiguration in progress
NetworkSettingsState.ReadyConnected to a network
NetworkSettingsState.DisconnectDisconnected from a network
NetworkSettingsState.OnlineOnline (acquired an IP address)
NetworkSettingsState.UndefinedUndefined state.

type : enumeration [read-only]

Holds the type of the network interface.

Possible values:

NetworkSettingsType.WiredWired network
NetworkSettingsType.WifiWifi network
NetworkSettingsType.BluetoothBluetooth network
NetworkSettingsType.UnknownUnknown 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.