QNetworkSettingsServiceFilter Class

The QNetworkSettingsServiceFilter class represents a network service filter. More...

Header: #include <QNetworkSettingsServiceFilter>
qmake: QT += networksettings
Inherits: QSortFilterProxyModel


Public Functions

QNetworkSettingsServiceFilter(QObject *parent = Q_NULLPTR)
virtual ~QNetworkSettingsServiceFilter()
int activeRow() const
QVariant itemFromRow(const int row) const
void setType(QNetworkSettingsType::Types type)
void setWiredNetworksAvailable(bool wiredNetworksAvailable)
QNetworkSettingsType::Types type() const

Reimplemented Public Functions

virtual bool filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override


Detailed Description

See also QNetworkSettingsService.

Property Documentation

type : QNetworkSettingsType::Types

This property holds the type of the network.


Access functions:

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

Notifier signal:

void typeChanged()

wiredNetworksAvailable : bool

This property holds whether wired networks are available.

Access functions:

void setWiredNetworksAvailable(bool wiredNetworksAvailable)

Notifier signal:

Member Function Documentation

QNetworkSettingsServiceFilter::QNetworkSettingsServiceFilter(QObject *parent = Q_NULLPTR)

Creates a network service filter with the parent parent.

[signal] void QNetworkSettingsServiceFilter::typeChanged()

This signal is emitted when the network type changes.

Note: Notifier signal for property type.

[signal] void QNetworkSettingsServiceFilter::wiredNetworksAvailableChanged()

This signal is emitted when the availability of wired networks changes.

Note: Notifier signal for property wiredNetworksAvailable.

[virtual] QNetworkSettingsServiceFilter::~QNetworkSettingsServiceFilter()

Deletes the network service filter.

int QNetworkSettingsServiceFilter::activeRow() const

Returns the connected service index in the model. Returns negative number if no active connection is available.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

[override virtual] bool QNetworkSettingsServiceFilter::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const

Reimplements: QSortFilterProxyModel::filterAcceptsRow(int source_row, const QModelIndex &source_parent) const.

Returns whether the row source_row has the user role and whether it is found in the model source_parent.

QVariant QNetworkSettingsServiceFilter::itemFromRow(const int row) const

Returns the service at row in the model.

Note: This function can be invoked via the meta-object system and from QML. See Q_INVOKABLE.

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

Sets the service model to type.

Note: Setter function for property type.

See also type().

void QNetworkSettingsServiceFilter::setWiredNetworksAvailable(bool wiredNetworksAvailable)

Sets the availability of wired networks to wiredNetworksAvailable.

Note: Setter function for property wiredNetworksAvailable.

QNetworkSettingsType::Types QNetworkSettingsServiceFilter::type() const

Returns the service model.


Note: Getter function for property type.

See also setType().

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