NetworkService QML Type
Represents a network service. More...
|Import Statement:||import QtDeviceUtilities.NetworkSettings 1.0|
- domains : object
- domains.count : int
- id : string
- ipv4 : NetworkSettingsIPv4
- ipv6 : NetworkSettingsIPv6
- name : string
- nameservers : object
- nameservers.count : int
- proxy : NetworkSettingsProxy
- state : enumeration
- type : enumeration
- wirelessConfig : NetworkSettingsWireless
- void connectService()
- void disconnectService()
- void domains.append(string address)
- void domains.remove(int index)
- void domains.resetChanges()
- void nameservers.append(string address)
- void nameservers.remove(int index)
- void nameservers.resetChanges()
- void removeService()
- void setupDomainsConfig()
- void setupIpv4Config()
- void setupIpv6Config()
- void setupNameserversConfig()
- void setupNetworkSettingsProxy()
The NetworkService QML type represents a network service.
Instances of NetworkService cannot be created directly; instead, they can be retrieved via NetworkSettingsManager.
See also NetworkSettingsManager.services.
[read-only] id : string
Holds a unique ID of this service.
[read-only] ipv4 : NetworkSettingsIPv4
Holds the IPv4 address for this service.
[read-only] ipv6 : NetworkSettingsIPv6
Holds the IPv6 address for this service.
[read-only] name : string
Holds the name of this service.
The model containing the domain name servers associated with this service.
The nameservers property can be used as a model for a view that lists the domain name server (DNS) addresses associated with this service.
[read-only] nameservers.count : int
Holds the number of domain name server addresses in the nameservers model.
[read-only] proxy : NetworkSettingsProxy
Holds the proxy settings for this service.
[read-only] state : enumeration
Holds the state of this service.
See NetworkInterface.state for possible states.
[read-only] type : enumeration
Holds the type of this service.
See NetworkInterface.type for possible types.
[read-only] wirelessConfig : NetworkSettingsWireless
Holds the wireless configuration for this service.
Initiates the process of connecting to this network service.
See also disconnectService().
Disconnects this service.
See also connectService().
Clears unsaved changes from the domains model.
Clears unsaved changes from the nameservers model.
Removes this service from the service cache and clears any remembered credentials.
Sets up the domains configuration.
Call this method after modifying the list of domain addresses.
See also domains.
Sets up the IPv4 configuration.
Call this method after changing the IPv4 settings.
See also ipv4.
Sets up the IPv6 configuration.
Call this method after changing the IPv6 settings.
See also ipv6.
Sets up the domain name server configuration.
Call this method after modifying the list of domain name servers.
See also nameservers.
Sets up the network proxy configuration.
Call this method after modifying the network proxy settings.
See also proxy.
© 2022 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.