QNetworkSettingsServiceFilter Class
The QNetworkSettingsServiceFilter class represents a network service filter. More...
Header: | #include <QNetworkSettingsServiceFilter> |
qmake: | QT += networksettings |
Inherits: | QSortFilterProxyModel |
Properties
- type : QNetworkSettingsType::Type
- wiredNetworksAvailable : bool
Public Functions
QNetworkSettingsServiceFilter(QObject *parent = nullptr) | |
virtual | ~QNetworkSettingsServiceFilter() |
int | activeRow() const |
QVariant | itemFromRow(const int row) const |
void | setType(QNetworkSettingsType::Type type) |
void | setWiredNetworksAvailable(bool wiredNetworksAvailable) |
QNetworkSettingsType::Type | type() const |
Reimplemented Public Functions
virtual bool | filterAcceptsRow(int source_row, const QModelIndex &source_parent) const override |
Signals
void | typeChanged() |
void | wiredNetworksAvailableChanged() |
See also QNetworkSettingsService.
Property Documentation
type : QNetworkSettingsType::Type
This property holds the type of the network.
Access functions:
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
[explicit]
QNetworkSettingsServiceFilter::QNetworkSettingsServiceFilter(QObject *parent = nullptr)
Creates a network service filter with the parent parent.
[virtual noexcept]
QNetworkSettingsServiceFilter::~QNetworkSettingsServiceFilter()
Deletes the network service filter.
[invokable]
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.
[invokable]
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::Type 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::Type QNetworkSettingsServiceFilter::type() const
Returns the service model.
Note: Getter function for property type.
See also setType().
[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.
© 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.