Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
Public Member Functions | List of all members
TrafficTypesRowData Class Reference

Data record for a single row in the traffic-types protocol list, storing a protocol's numeric ID, display name, and selection state. More...

#include <traffic_types_list.h>

Public Member Functions

 TrafficTypesRowData (int protocol, QString name)
 Constructs a row data record for the given protocol.
 
int protocol () const
 Returns the numeric protocol ID.
 
QString name () const
 Returns the human-readable protocol name.
 
bool checked () const
 Returns whether this protocol is currently checked (selected).
 
void setChecked (bool checked)
 Sets the checked (selected) state of this protocol.
 

Detailed Description

Data record for a single row in the traffic-types protocol list, storing a protocol's numeric ID, display name, and selection state.

Constructor & Destructor Documentation

◆ TrafficTypesRowData()

TrafficTypesRowData::TrafficTypesRowData ( int  protocol,
QString  name 
)

Constructs a row data record for the given protocol.

Parameters
protocolNumeric protocol ID.
nameHuman-readable protocol name.

Member Function Documentation

◆ checked()

bool TrafficTypesRowData::checked ( ) const

Returns whether this protocol is currently checked (selected).

Returns
true if checked.

◆ name()

QString TrafficTypesRowData::name ( ) const

Returns the human-readable protocol name.

Returns
Protocol display name.

◆ protocol()

int TrafficTypesRowData::protocol ( ) const

Returns the numeric protocol ID.

Returns
Protocol ID.

◆ setChecked()

void TrafficTypesRowData::setChecked ( bool  checked)

Sets the checked (selected) state of this protocol.

Parameters
checkedtrue to select; false to deselect.

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