QNetworkSettingsServiceFilter Class
The QNetworkSettingsServiceFilter class represents a network service filter. More...
Header: | #include <QNetworkSettingsServiceFilter> |
qmake: | QT += networksettings |
Inherits: | QSortFilterProxyModel |
Properties
- type : QNetworkSettingsType::Types
- wiredNetworksAvailable : bool
- 10 properties inherited from QSortFilterProxyModel
- 1 property inherited from QAbstractProxyModel
- 1 property inherited from QObject
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 |
- 50 public functions inherited from QSortFilterProxyModel
- 28 public functions inherited from QAbstractProxyModel
- 40 public functions inherited from QAbstractItemModel
- 31 public functions inherited from QObject
Signals
void | typeChanged() |
void | wiredNetworksAvailableChanged() |
- 1 signal inherited from QAbstractProxyModel
- 18 signals inherited from QAbstractItemModel
- 2 signals inherited from QObject
Static Public Members
const QMetaObject | staticMetaObject |
- 9 static public members inherited from QObject
Additional Inherited Members
- 7 public slots inherited from QSortFilterProxyModel
- 2 public slots inherited from QAbstractItemModel
- 1 public slot inherited from QObject
- 4 protected functions inherited from QSortFilterProxyModel
- 19 protected functions inherited from QAbstractItemModel
- 9 protected functions inherited from QObject
- 1 protected slot inherited from QAbstractProxyModel
- 1 protected slot inherited from QAbstractItemModel
Detailed Description
The QNetworkSettingsServiceFilter class represents a network service filter.
See also QNetworkSettingsService.
Property Documentation
type : QNetworkSettingsType::Types
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
QNetworkSettingsServiceFilter::QNetworkSettingsServiceFilter(QObject *parent = Q_NULLPTR)
Creates a network service filter with the parent parent.
[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
Reimplemented from QSortFilterProxyModel::filterAcceptsRow().
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().
[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.
© 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.