QNetworkSettingsType Class

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

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

Public Types

enum Types { Wired, Wifi, Bluetooth, Unknown }

Properties

  • 1 property inherited from QObject

Public Functions

QNetworkSettingsType(QNetworkSettingsType::Types type, QObject *parent = Q_NULLPTR)
QNetworkSettingsType(QObject *parent = Q_NULLPTR)
void setType(const QNetworkSettingsType::Types type)
QNetworkSettingsType::Types type() const
  • 31 public functions inherited from QObject

Signals

void typeChanged()

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 QNetworkSettingsType class represents the network interface type.

See also QNetworkSettingsManager.

Member Type Documentation

enum QNetworkSettingsType::Types

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

This property holds the type of the network interface.

Access functions:

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

Notifier signal:

void typeChanged()

See also QNetworkSettingsType::Types.

Member Function Documentation

QNetworkSettingsType::QNetworkSettingsType(QNetworkSettingsType::Types type, QObject *parent = Q_NULLPTR)

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

QNetworkSettingsType::QNetworkSettingsType(QObject *parent = Q_NULLPTR)

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

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

Sets the network interface type to type.

Note: Setter function for property type.

See also type().

QNetworkSettingsType::Types 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::Types.

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