|
Wireshark 4.7.0
The Wireshark network protocol analyzer
|
A model managing the expert information tree data. More...
#include <expert_info_model.h>
Public Types | |
| enum | ExpertColumn { colSeverity = 0 , colSummary , colGroup , colProtocol , colCount , colPacket , colHf , colLast } |
| Enumerates the columns in the expert info model. More... | |
| enum | ExpertSeverity { severityError = PI_ERROR , severityWarn = PI_WARN , severityNote = PI_NOTE , severityChat = PI_CHAT , severityComment = PI_COMMENT } |
| Enumerates the severity levels for expert information. More... | |
Public Member Functions | |
| ExpertInfoModel (CaptureFile &capture_file, QObject *parent=0) | |
| Constructs a new ExpertInfoModel. | |
| virtual | ~ExpertInfoModel () |
| Destroys the ExpertInfoModel. | |
| QModelIndex | index (int row, int column, const QModelIndex &parent=QModelIndex()) const |
| Generates an index for the given row and column. | |
| QModelIndex | parent (const QModelIndex &index) const |
| Retrieves the parent of a given index. | |
| QVariant | data (const QModelIndex &index, int role) const |
| Retrieves data from the model for a given index and role. | |
| int | rowCount (const QModelIndex &parent=QModelIndex()) const |
| Returns the number of rows under a given parent. | |
| int | columnCount (const QModelIndex &parent=QModelIndex()) const |
| Returns the number of columns under a given parent. | |
| int | numEvents (enum ExpertSeverity severity) |
| Gets the total number of events for a specific severity. | |
| void | clear () |
| Clears all expert information data from the model. | |
| void | setGroupBySummary (bool group_by_summary) |
| Sets whether the model groups items by summary. | |
| void | addExpertInfo (const struct expert_info_s &expert_info) |
| Adds a new expert information entry to the model. | |
Static Public Member Functions | |
| static void | tapReset (void *eid_ptr) |
| Callback used by register_tap_listener to reset the tap. | |
| static tap_packet_status | tapPacket (void *eid_ptr, struct _packet_info *pinfo, struct epan_dissect *, const void *data, tap_flags_t flags) |
| Callback used by register_tap_listener when a packet is processed. | |
| static void | tapDraw (void *eid_ptr) |
| Callback used by register_tap_listener to draw or update results. | |
A model managing the expert information tree data.
Enumerates the columns in the expert info model.
| Enumerator | |
|---|---|
| colSeverity | Severity column. |
| colSummary | Summary text column. |
| colGroup | Group ID column. |
| colProtocol | Protocol string column. |
| colCount | Event count column. |
| colPacket | Packet number column. |
| colHf | Header field ID column. |
| colLast | End of columns marker. |
| ExpertInfoModel::ExpertInfoModel | ( | CaptureFile & | capture_file, |
| QObject * | parent = 0 |
||
| ) |
Constructs a new ExpertInfoModel.
| capture_file | The capture file containing the expert information. |
| parent | The parent QObject, defaults to 0. |
| void ExpertInfoModel::addExpertInfo | ( | const struct expert_info_s & | expert_info | ) |
Adds a new expert information entry to the model.
| expert_info | The expert information structure to add. |
| int ExpertInfoModel::columnCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Returns the number of columns under a given parent.
| parent | The parent model index (defaults to an invalid QModelIndex). |
| QVariant ExpertInfoModel::data | ( | const QModelIndex & | index, |
| int | role | ||
| ) | const |
Retrieves data from the model for a given index and role.
| index | The model index. |
| role | The data role requested. |
| QModelIndex ExpertInfoModel::index | ( | int | row, |
| int | column, | ||
| const QModelIndex & | parent = QModelIndex() |
||
| ) | const |
Generates an index for the given row and column.
| row | The row index. |
| column | The column index. |
| parent | The parent index (defaults to an invalid QModelIndex). |
| int ExpertInfoModel::numEvents | ( | enum ExpertSeverity | severity | ) |
Gets the total number of events for a specific severity.
| severity | The severity level to query. |
| QModelIndex ExpertInfoModel::parent | ( | const QModelIndex & | index | ) | const |
Retrieves the parent of a given index.
| index | The child model index. |
| int ExpertInfoModel::rowCount | ( | const QModelIndex & | parent = QModelIndex() | ) | const |
Returns the number of rows under a given parent.
| parent | The parent model index (defaults to an invalid QModelIndex). |
| void ExpertInfoModel::setGroupBySummary | ( | bool | group_by_summary | ) |
Sets whether the model groups items by summary.
| group_by_summary | True to group by summary, false otherwise. |
|
static |
Callback used by register_tap_listener to draw or update results.
| eid_ptr | Pointer to the ExpertInfoModel instance. |
|
static |
Callback used by register_tap_listener when a packet is processed.
| eid_ptr | Pointer to the ExpertInfoModel instance. |
| pinfo | Pointer to the packet info structure. |
| data | Pointer to the expert info data. |
| flags | Tap flags. |
|
static |
Callback used by register_tap_listener to reset the tap.
| eid_ptr | Pointer to the ExpertInfoModel instance. |