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

A combo box widget for entering and selecting capture filters, providing a history of recently used filters. More...

#include <capture_filter_combo.h>

Inheritance diagram for CaptureFilterCombo:

Signals

void interfacesChanged ()
 Signal emitted when the available network interfaces change.
 
void captureFilterSyntaxChanged (bool valid)
 Signal emitted when the validity of the current capture filter syntax changes.
 
void startCapture ()
 Signal emitted to request starting a packet capture.
 

Public Member Functions

 CaptureFilterCombo (QWidget *parent=0, bool plain=false)
 Constructs a new CaptureFilterCombo widget.
 
bool addRecentCapture (const char *filter)
 Adds a filter to the list of recently used capture filters.
 
void writeRecent (FILE *rf)
 Writes the recent capture filters to the provided file.
 
void setConflict (bool conflict=false)
 Sets the conflict state of the capture filter edit widget.
 

Protected Member Functions

virtual bool event (QEvent *event)
 Handles general events directed to the combo box.
 

Detailed Description

A combo box widget for entering and selecting capture filters, providing a history of recently used filters.

Constructor & Destructor Documentation

◆ CaptureFilterCombo()

CaptureFilterCombo::CaptureFilterCombo ( QWidget *  parent = 0,
bool  plain = false 
)
explicit

Constructs a new CaptureFilterCombo widget.

Parameters
parentThe parent widget, defaults to 0.
plainIf true, creates a plain combo box without extended editing features; defaults to false.

Member Function Documentation

◆ addRecentCapture()

bool CaptureFilterCombo::addRecentCapture ( const char *  filter)

Adds a filter to the list of recently used capture filters.

Parameters
filterThe capture filter string to add.
Returns
True if the filter was successfully added, false otherwise.

◆ captureFilterSyntaxChanged

void CaptureFilterCombo::captureFilterSyntaxChanged ( bool  valid)
signal

Signal emitted when the validity of the current capture filter syntax changes.

Parameters
validTrue if the current filter syntax is valid, false otherwise.

◆ event()

bool CaptureFilterCombo::event ( QEvent *  event)
protectedvirtual

Handles general events directed to the combo box.

Parameters
eventThe event to be handled.
Returns
True if the event was handled successfully, false otherwise.

◆ setConflict()

void CaptureFilterCombo::setConflict ( bool  conflict = false)
inline

Sets the conflict state of the capture filter edit widget.

Parameters
conflictTrue to indicate a conflict state, false otherwise (defaults to false).

◆ writeRecent()

void CaptureFilterCombo::writeRecent ( FILE *  rf)

Writes the recent capture filters to the provided file.

Parameters
rfPointer to the open file to write the recent filters to.

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