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, ..., Undefined }


  • 1 property inherited from QObject

Public Functions

QNetworkSettingsState(QNetworkSettingsState::States state, QObject *parent = Q_NULLPTR)
QNetworkSettingsState(QObject *parent = Q_NULLPTR)
void setState(const QNetworkSettingsState::States state)
QNetworkSettingsState::States state() const
  • 31 public functions inherited from QObject


void stateChanged()

Static Public Members

const QMetaObject staticMetaObject
  • 9 static public members inherited from QObject

Additional Inherited Members

  • 1 public slot inherited from QObject
  • 9 protected functions inherited from QObject

Detailed Description

The QNetworkSettingsState class represents the network interface state.

See also QNetworkSettingsManager.

Member Type Documentation

enum QNetworkSettingsState::States

This enum type holds the state of the network interface.

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(QNetworkSettingsState::States state, QObject *parent = Q_NULLPTR)

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

QNetworkSettingsState::QNetworkSettingsState(QObject *parent = Q_NULLPTR)

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

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

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

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