C

NetworkService QML Type

Represents a network service. More...

Import Statement: import QtDeviceUtilities.NetworkSettings 1.0

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

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


[read-only] domains.count : int

Holds the number of domain addresses in the domains model.


[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.


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


[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

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 setAutoConnect(bool auto)


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.


Available under certain Qt licenses.
Find out more.