A proxy model for sorting and filtering manufacturer data.
More...
#include <manuf_table_model.h>
|
| void | setFilterAddress (const QByteArray &bytes) |
| | Sets the filter to match a specific MAC address.
|
| |
| void | setFilterName (QRegularExpression &name) |
| | Sets the filter to match a specific manufacturer name.
|
| |
|
void | clearFilter () |
| | Clears the active filter.
|
| |
A proxy model for sorting and filtering manufacturer data.
◆ ManufProxyFilterType
Enumeration of available filter types.
| Enumerator |
|---|
| FilterEmpty | No filter is applied.
|
| FilterByAddress | Filtering by MAC address.
|
| FilterByName | Filtering by manufacturer name.
|
◆ ManufSortFilterProxyModel()
| ManufSortFilterProxyModel::ManufSortFilterProxyModel |
( |
QObject * |
parent | ) |
|
◆ filterAcceptsRow()
| bool ManufSortFilterProxyModel::filterAcceptsRow |
( |
int |
source_row, |
|
|
const QModelIndex & |
source_parent |
|
) |
| const |
|
virtual |
Determines if a row is accepted by the current filter.
- Parameters
-
| source_row | The index of the row in the source model. |
| source_parent | The parent index in the source model. |
- Returns
- True if the row is accepted, false otherwise.
◆ setFilterAddress
| void ManufSortFilterProxyModel::setFilterAddress |
( |
const QByteArray & |
bytes | ) |
|
|
slot |
Sets the filter to match a specific MAC address.
- Parameters
-
| bytes | The byte array representing the MAC address to filter by. |
◆ setFilterName
| void ManufSortFilterProxyModel::setFilterName |
( |
QRegularExpression & |
name | ) |
|
|
slot |
Sets the filter to match a specific manufacturer name.
- Parameters
-
| name | The regular expression to filter the names by. |
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/manuf_table_model.h
- /builds/wireshark/wireshark/ui/qt/models/manuf_table_model.cpp