NetworkService QML Type
Represents a network service. More...
Import Statement: | import QtDeviceUtilities.NetworkSettings |
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
domains : object |
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().
id : string |
Holds a unique ID of this service.
ipv4 : NetworkSettingsIPv4 |
Holds the IPv4 address for this service.
ipv6 : NetworkSettingsIPv6 |
Holds the IPv6 address for this service.
name : string |
Holds the name of this service.
nameservers : object |
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().
nameservers.count : int |
Holds the number of domain name server addresses in the nameservers model.
proxy : NetworkSettingsProxy |
Holds the proxy settings for this service.
state : enumeration |
Holds the state of this service.
See NetworkInterface.state for possible states.
type : enumeration |
Holds the type of this service.
See NetworkInterface.type for possible types.
wirelessConfig : NetworkSettingsWireless |
Holds the wireless configuration for this service.
Method Documentation
void connectService() |
Initiates the process of connecting to this network service.
See also disconnectService().
void disconnectService() |
Disconnects this service.
See also connectService().
void domains.resetChanges() |
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.
void nameservers.resetChanges() |
Clears unsaved changes from the nameservers model.
void removeService() |
Removes this service from the service cache and clears any remembered credentials.
void setupDomainsConfig() |
Sets up the domains configuration.
Call this method after modifying the list of domain addresses.
See also domains.
void setupIpv4Config() |
void setupIpv6Config() |
void setupNameserversConfig() |
Sets up the domain name server configuration.
Call this method after modifying the list of domain name servers.
See also nameservers.
void setupNetworkSettingsProxy() |
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.