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

MIME data representation for a toolbar entry. More...

#include <wireshark_mime_data.h>

Inheritance diagram for ToolbarEntryMimeData:
WiresharkMimeData

Public Member Functions

 ToolbarEntryMimeData (QString element, int pos)
 Constructs a new ToolbarEntryMimeData object.
 
int position () const
 Retrieves the position of the entry.
 
QString element () const
 Retrieves the element string.
 
QString filter () const
 Retrieves the filter string associated with the entry.
 
void setFilter (QString text)
 Sets the filter string for the entry.
 
QString labelText () const override
 Retrieves the label text for the toolbar entry.
 
- Public Member Functions inherited from WiresharkMimeData
virtual void allowPlainText ()
 Allows the MIME data to be represented as plain text.
 

Additional Inherited Members

- Static Public Attributes inherited from WiresharkMimeData
static const QString ColoringRulesMimeType = "application/vnd.wireshark.coloringrules"
 MIME type string for coloring rules.
 
static const QString ColumnListMimeType = "application/vnd.wireshark.columnlist"
 MIME type string for column lists.
 
static const QString FilterListMimeType = "application/vnd.wireshark.filterlist"
 MIME type string for filter lists.
 
static const QString DisplayFilterMimeType = "application/vnd.wireshark.displayfilter"
 MIME type string for display filters.
 

Detailed Description

MIME data representation for a toolbar entry.

Constructor & Destructor Documentation

◆ ToolbarEntryMimeData()

ToolbarEntryMimeData::ToolbarEntryMimeData ( QString  element,
int  pos 
)

Constructs a new ToolbarEntryMimeData object.

Parameters
elementThe toolbar element string.
posThe position of the entry.

Member Function Documentation

◆ element()

QString ToolbarEntryMimeData::element ( ) const

Retrieves the element string.

Returns
A QString containing the element.

◆ filter()

QString ToolbarEntryMimeData::filter ( ) const

Retrieves the filter string associated with the entry.

Returns
A QString containing the filter.

◆ labelText()

QString ToolbarEntryMimeData::labelText ( ) const
overridevirtual

Retrieves the label text for the toolbar entry.

Returns
A QString containing the label text.

Implements WiresharkMimeData.

◆ position()

int ToolbarEntryMimeData::position ( ) const

Retrieves the position of the entry.

Returns
The integer position.

◆ setFilter()

void ToolbarEntryMimeData::setFilter ( QString  text)

Sets the filter string for the entry.

Parameters
textThe new filter string's text.

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