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
- state : State
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() |
See also QNetworkSettingsManager.
Member Type Documentation
enum QNetworkSettingsState::State
This enum type holds the state of the network interface.
Constant | Value | Description |
---|---|---|
QNetworkSettingsState::Idle | 0 | |
QNetworkSettingsState::Failure | 1 | Failed to connect. |
QNetworkSettingsState::Association | 2 | Authentication in progress. |
QNetworkSettingsState::Configuration | 3 | Configuration in progress. |
QNetworkSettingsState::Ready | 4 | Connected to a network. |
QNetworkSettingsState::Disconnect | 5 | Disconnected from a network. |
QNetworkSettingsState::Online | 6 | Acquired an IP address. |
QNetworkSettingsState::Undefined | 7 | Undefined state. |
Property Documentation
state : State
This property holds the state of the network interface.
Access functions:
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.