QNetworkSettingsType Class

The QNetworkSettingsType class represents the network interface type. More...

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

Public Types

enum Type { Wired, Wifi, Bluetooth, Unknown }

Properties

Public Functions

QNetworkSettingsType(QObject *parent = nullptr)
QNetworkSettingsType(QNetworkSettingsType::Type type, QObject *parent = nullptr)
void setType(const QNetworkSettingsType::Type type)
QNetworkSettingsType::Type type() const

Signals

void typeChanged()

Detailed Description

See also QNetworkSettingsManager.

Member Type Documentation

enum QNetworkSettingsType::Type

This enum type holds the type of the network interface.

ConstantValueDescription
QNetworkSettingsType::Wired0Wired network
QNetworkSettingsType::Wifi1Wifi network
QNetworkSettingsType::Bluetooth2Bluetooth network
QNetworkSettingsType::Unknown3Unknown network type

Property Documentation

type : Type

This property holds the type of the network interface.

Access functions:

QNetworkSettingsType::Type type() const
void setType(const QNetworkSettingsType::Type type)

Notifier signal:

void typeChanged()

See also QNetworkSettingsType::Type.

Member Function Documentation

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

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

[explicit] QNetworkSettingsType::QNetworkSettingsType(QNetworkSettingsType::Type type, QObject *parent = nullptr)

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

void QNetworkSettingsType::setType(const QNetworkSettingsType::Type type)

Sets the network interface type to type.

Note: Setter function for property type.

See also type().

QNetworkSettingsType::Type QNetworkSettingsType::type() const

Returns the network interface type.

Note: Getter function for property type.

See also setType().

[signal] void QNetworkSettingsType::typeChanged()

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

Note: Notifier signal for property type.

See also QNetworkSettingsType::Type.

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