A table model for displaying active capture information and statistics.
More...
#include <capture_info_dialog.h>
|
| | CaptureInfoModel (struct _capture_info *cap_info, QObject *parent=Q_NULLPTR) |
| | Constructs a new CaptureInfoModel.
|
|
virtual | ~CaptureInfoModel () |
| | Destroys the CaptureInfoModel.
|
|
void | updateInfo () |
| | Updates the model with the latest capture information.
|
| virtual int | rowCount (const QModelIndex &parent=QModelIndex()) const override |
| | Returns the number of rows under the given parent.
|
| virtual int | columnCount (const QModelIndex &parent=QModelIndex()) const override |
| | Returns the number of columns under the given parent.
|
| virtual QVariant | data (const QModelIndex &index, int role=Qt::DisplayRole) const override |
| | Retrieves data from the model for the given index and role.
|
A table model for displaying active capture information and statistics.
◆ CaptureInfoModel()
| CaptureInfoModel::CaptureInfoModel |
( |
struct _capture_info * | cap_info, |
|
|
QObject * | parent = Q_NULLPTR ) |
|
explicit |
Constructs a new CaptureInfoModel.
- Parameters
-
| cap_info | Pointer to the capture information structure. |
| parent | The parent QObject, defaults to Q_NULLPTR. |
◆ columnCount()
| int CaptureInfoModel::columnCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
overridevirtual |
Returns the number of columns under the given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of columns in the model.
◆ data()
| QVariant CaptureInfoModel::data |
( |
const QModelIndex & | index, |
|
|
int | role = Qt::DisplayRole ) const |
|
overridevirtual |
Retrieves data from the model for the given index and role.
- Parameters
-
| index | The model index to retrieve data for. |
| role | The role for which the data is requested (defaults to Qt::DisplayRole). |
- Returns
- The data associated with the index and role.
◆ rowCount()
| int CaptureInfoModel::rowCount |
( |
const QModelIndex & | parent = QModelIndex() | ) |
const |
|
overridevirtual |
Returns the number of rows under the given parent.
- Parameters
-
| parent | The parent model index (defaults to an invalid QModelIndex). |
- Returns
- The number of rows in the model.
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/capture_info_dialog.h
- /builds/wireshark/wireshark/ui/qt/capture_info_dialog.cpp