NetworkService QML Type

Represents a network service. More...

Import Statement: import QtDeviceUtilities.NetworkSettings

Properties

Methods

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

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().


domains.count : int [read-only]

Holds the number of domain addresses in the domains model.


id : string [read-only]

Holds a unique ID of this service.


ipv4 : NetworkSettingsIPv4 [read-only]

Holds the IPv4 address for this service.


ipv6 : NetworkSettingsIPv6 [read-only]

Holds the IPv6 address for this service.


name : string [read-only]

Holds the name of this service.


nameservers : object [read-only]

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

Holds the number of domain name server addresses in the nameservers model.


proxy : NetworkSettingsProxy [read-only]

Holds the proxy settings for this service.


state : enumeration [read-only]

Holds the state of this service.

See NetworkInterface.state for possible states.


type : enumeration [read-only]

Holds the type of this service.

See NetworkInterface.type for possible types.


wirelessConfig : NetworkSettingsWireless [read-only]

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.append(string address)

Adds address into the domains model.


void domains.remove(int index)

Removes the entry at index index from the domains model.


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()

Sets up the IPv4 configuration.

Call this method after changing the IPv4 settings.

See also ipv4.


void setupIpv6Config()

Sets up the IPv6 configuration.

Call this method after changing the IPv6 settings.

See also ipv6.


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.