Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Slots | Public Member Functions | Static Public Attributes | List of all members
InterfaceTreeModel Class Reference
Inheritance diagram for InterfaceTreeModel:

Public Slots

void interfaceListChanged ()
 

Public Member Functions

 InterfaceTreeModel (QObject *parent)
 
int rowCount (const QModelIndex &parent=QModelIndex()) const
 
int columnCount (const QModelIndex &parent=QModelIndex()) const
 
QVariant data (const QModelIndex &index, int role=Qt::DisplayRole) const
 
QVariant headerData (int section, Qt::Orientation orientation, int role) const
 
void updateStatistic (unsigned int row)
 
QString interfaceError ()
 
QItemSelection selectedDevices ()
 
bool updateSelectedDevices (QItemSelection sourceSelection)
 
QVariant getColumnContent (int idx, int col, int role=Qt::DisplayRole)
 

Static Public Attributes

static const QString DefaultNumericValue = QObject::tr("default")
 

Constructor & Destructor Documentation

◆ InterfaceTreeModel()

InterfaceTreeModel::InterfaceTreeModel ( QObject *  parent)

This is the data model for interface trees. It implies, that the index within global_capture_opts.all_ifaces is identical to the row. This is always the case, even when interfaces are hidden by the proxy model. But for this to work, every access to the index from within the view, has to be filtered through the proxy model.

Member Function Documentation

◆ interfaceListChanged

void InterfaceTreeModel::interfaceListChanged ( )
slot

The interface list has changed. global_capture_opts.all_ifaces may have been reloaded or changed with current data. beginResetModel() and endResetModel() will signalize the proxy model and the view, that the data has changed and the view has to reload


The documentation for this class was generated from the following files: