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

A simple class to store the data for a tab in the traffic tab widget. More...

#include <traffic_tab.h>

Public Member Functions

 TabData ()
 Constructs a new empty TabData object.
 
 TabData (const TabData &)=default
 Copy constructor.
 
TabDataoperator= (const TabData &)=default
 Copy assignment operator.
 
 TabData (QString name, int proto)
 Constructs a new TabData object with a specific name and protocol ID.
 
QString name () const
 Retrieves the name of the tab.
 
int protoId () const
 Retrieves the protocol ID.
 

Detailed Description

A simple class to store the data for a tab in the traffic tab widget.

Constructor & Destructor Documentation

◆ TabData()

TabData::TabData ( QString  name,
int  proto 
)

Constructs a new TabData object with a specific name and protocol ID.

Parameters
nameThe name of the tab.
protoThe protocol ID associated with the tab.

Member Function Documentation

◆ name()

QString TabData::name ( ) const

Retrieves the name of the tab.

Returns
A QString containing the name.

◆ protoId()

int TabData::protoId ( ) const

Retrieves the protocol ID.

Returns
The protocol ID.

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