QNetworkSettingsState Class

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

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

Public Types

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

Properties

Public Functions

QNetworkSettingsState(QObject *parent = nullptr)
QNetworkSettingsState(QNetworkSettingsState::State state, QObject *parent = nullptr)
void setState(const QNetworkSettingsState::State state)
QNetworkSettingsState::State state() const

Signals

void stateChanged()

Detailed Description

See also QNetworkSettingsManager.

Member Type Documentation

enum QNetworkSettingsState::State

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 : State

This property holds the state of the network interface.

Access functions:

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

Notifier signal:

void stateChanged()

See also QNetworkSettingsState::State.

Member Function Documentation

[explicit] QNetworkSettingsState::QNetworkSettingsState(QObject *parent = nullptr)

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

[explicit] QNetworkSettingsState::QNetworkSettingsState(QNetworkSettingsState::State state, QObject *parent = nullptr)

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

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

Sets the network interface state to state.

Note: Setter function for property state.

See also state().

QNetworkSettingsState::State QNetworkSettingsState::state() const

Returns the network interface state.

Note: Getter function for property state.

See also setState().

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

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