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

An action representing a conversation filter to be applied. More...

#include <conversation_colorize_action.h>

Inheritance diagram for ConversationAction:

Public Slots

void setPacketInfo (struct _packet_info *pinfo)
 Sets the packet information used to build the filter.
 
void setFieldFilter (const QByteArray field_filter)
 Sets the field filter directly.
 

Public Member Functions

 ConversationAction (QObject *parent, struct conversation_filter_s *conv_filter=NULL)
 Constructs a new ConversationAction.
 
bool isFilterValid (struct _packet_info *pinfo)
 Checks if the conversation filter is valid for the provided packet information.
 
const QByteArray filter ()
 Retrieves the filter string as a byte array.
 
void setColorNumber (int color_number)
 Sets the color number associated with this action.
 
int colorNumber ()
 Retrieves the color number associated with this action.
 

Detailed Description

An action representing a conversation filter to be applied.

Constructor & Destructor Documentation

◆ ConversationAction()

ConversationAction::ConversationAction ( QObject *  parent,
struct conversation_filter_s conv_filter = NULL 
)

Constructs a new ConversationAction.

Parameters
parentThe parent QObject.
conv_filterPointer to the underlying conversation filter structure, defaults to NULL.

Member Function Documentation

◆ colorNumber()

int ConversationAction::colorNumber ( )
inline

Retrieves the color number associated with this action.

Returns
The current color number.

◆ filter()

const QByteArray ConversationAction::filter ( )
inline

Retrieves the filter string as a byte array.

Returns
The filter byte array.

◆ isFilterValid()

bool ConversationAction::isFilterValid ( struct _packet_info pinfo)

Checks if the conversation filter is valid for the provided packet information.

Parameters
pinfoPointer to the packet information structure.
Returns
True if the filter is valid, false otherwise.

◆ setColorNumber()

void ConversationAction::setColorNumber ( int  color_number)
inline

Sets the color number associated with this action.

Parameters
color_numberThe color number to apply.

◆ setFieldFilter

void ConversationAction::setFieldFilter ( const QByteArray  field_filter)
slot

Sets the field filter directly.

Parameters
field_filterThe filter string as a byte array.

◆ setPacketInfo

void ConversationAction::setPacketInfo ( struct _packet_info pinfo)
slot

Sets the packet information used to build the filter.

Parameters
pinfoPointer to the packet information structure.

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