NetworkService QML Type
Represents a network service. More...
Import Statement: | import QtDeviceUtilities.NetworkSettings 1.0 |
Properties
- 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
Methods
- 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()
Detailed Description
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.
Property Documentation
The model containing the domains associated with this service.
The domains property can be used as a model for a view that lists the domain addresses associated with this service.
See also domains.count, domains.append(), domains.remove(), and domains.resetChanges().
[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.
See also nameservers.count, nameservers.append(), nameservers.remove(), and nameservers.resetChanges().
[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.
Method Documentation
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.
void nameservers.append(string address) |
Adds address into the nameservers model.
void nameservers.remove(int index) |
Removes the entry at index index from the nameservers 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 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.
© 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.