QNetworkSettingsState Class

The QNetworkSettingsState class represents the network interface state. More...

Header: #include <QNetworkSettingsState>
qmake: QT += networksettings
Inherits: QObject

Public Types

enum States { Idle, Failure, Association, Configuration, Ready, …, Undefined }

Properties

Public Functions

QNetworkSettingsState(QObject *parent = Q_NULLPTR)
QNetworkSettingsState(QNetworkSettingsState::States state, QObject *parent = Q_NULLPTR)
void setState(const QNetworkSettingsState::States state)
QNetworkSettingsState::States state() const

Signals

void stateChanged()

Detailed Description

See also QNetworkSettingsManager.

Member Type Documentation

enum QNetworkSettingsState::States

This enum type holds the state of the network interface.

ConstantValueDescription
QNetworkSettingsState::Idle0 
QNetworkSettingsState::Failure1Failed to connect.
QNetworkSettingsState::Association2Authentication in progress.
QNetworkSettingsState::Configuration3Configuration in progress.
QNetworkSettingsState::Ready4Connected to a network.
QNetworkSettingsState::Disconnect5Disconnected from a network.
QNetworkSettingsState::Online6Acquired an IP address.
QNetworkSettingsState::Undefined7Undefined state.

Property Documentation

state : States

This property holds the state of the network interface.

Access functions:

QNetworkSettingsState::States state() const
void setState(const QNetworkSettingsState::States state)

Notifier signal:

void stateChanged()

See also QNetworkSettingsState::States.

Member Function Documentation

QNetworkSettingsState::QNetworkSettingsState(QObject *parent = Q_NULLPTR)

Creates a new network interface state object with the parent parent.

QNetworkSettingsState::QNetworkSettingsState(QNetworkSettingsState::States state, QObject *parent = Q_NULLPTR)

Creates a new network interface state object with the state state and the parent parent.

[signal] void QNetworkSettingsState::stateChanged()

This signal is emitted when the state of the network interface changes.

Note: Notifier signal for property state.

See also QNetworkSettingsState::States.

void QNetworkSettingsState::setState(const QNetworkSettingsState::States state)

Sets the network interface state to state.

Note: Setter function for property state.

See also state().

QNetworkSettingsState::States QNetworkSettingsState::state() const

Returns the network interface state.

Note: Getter function for property state.

See also setState().

© 2021 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.