Tree item representing a single protocol or protocol field in the Supported Protocols tree, storing its name, filter expression, field type, and description.
More...
#include <supported_protocols_model.h>
Tree item representing a single protocol or protocol field in the Supported Protocols tree, storing its name, filter expression, field type, and description.
◆ SupportedProtocolsItem()
Constructs a supported-protocols tree item.
- Parameters
-
| proto | Pointer to the protocol_t descriptor; nullptr for field items. |
| name | Display name of the protocol or field. |
| filter | Filter expression string (e.g. "tcp", "tcp.port"). |
| ftype | Field type enum value (e.g. FT_UINT16, FT_STRING). |
| descr | Human-readable description of the protocol or field. |
| parent | Parent item in the tree; nullptr for root-level items. |
◆ description()
| QString SupportedProtocolsItem::description |
( |
| ) |
const |
|
inline |
Returns the human-readable description of this protocol or field.
- Returns
- Description string.
◆ filter()
| QString SupportedProtocolsItem::filter |
( |
| ) |
const |
|
inline |
Returns the filter expression string for this protocol or field.
- Returns
- Filter string (e.g. "tcp.port").
◆ name()
| QString SupportedProtocolsItem::name |
( |
| ) |
const |
|
inline |
Returns the display name of the protocol or field.
- Returns
- Name string.
◆ protocol()
| protocol_t * SupportedProtocolsItem::protocol |
( |
| ) |
const |
|
inline |
Returns the protocol descriptor associated with this item.
- Returns
- Pointer to the protocol_t, or
nullptr for field-only items.
◆ type()
| ftenum_t SupportedProtocolsItem::type |
( |
| ) |
const |
|
inline |
Returns the field type of this item.
- Returns
- ftenum_t value (e.g. FT_UINT16, FT_NONE for protocols).
The documentation for this class was generated from the following files:
- /builds/wireshark/wireshark/ui/qt/models/supported_protocols_model.h
- /builds/wireshark/wireshark/ui/qt/models/supported_protocols_model.cpp