Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
InterfaceToolbar Class Reference

A toolbar widget dynamically generated for interface-specific controls. More...

#include <interface_toolbar.h>

Inheritance diagram for InterfaceToolbar:

Public Slots

void interfaceListChanged ()
 Slot triggered when the global list of interfaces changes.
void controlReceived (QString ifname, int num, int command, QByteArray message)
 Slot triggered when a control message is received from an interface.
void captureEventHandler (CaptureEvent ev)
 Slot triggered when the current CaptureFile has an Event.

Signals

void closeReader ()
 Signal emitted to request the reader threads to close.

Public Member Functions

 InterfaceToolbar (QWidget *parent=0, const iface_toolbar *toolbar=NULL)
 Constructs a new InterfaceToolbar.
 ~InterfaceToolbar ()
 Destroys the InterfaceToolbar.
void startCapture (GArray *ifaces)
 Initializes and starts the capture controls for the given interfaces.
void stopCapture ()
 Stops the capture and disables active controls.
bool hasInterface (QString ifname) const
 Checks if this toolbar is managing a specific interface.

Detailed Description

A toolbar widget dynamically generated for interface-specific controls.

Constructor & Destructor Documentation

◆ InterfaceToolbar()

InterfaceToolbar::InterfaceToolbar ( QWidget * parent = 0,
const iface_toolbar * toolbar = NULL )
explicit

Constructs a new InterfaceToolbar.

Parameters
parentThe parent widget, defaults to 0.
toolbarPointer to the core iface_toolbar configuration, defaults to NULL.

Member Function Documentation

◆ captureEventHandler

void InterfaceToolbar::captureEventHandler ( CaptureEvent ev)
slot

Slot triggered when the current CaptureFile has an Event.

Parameters
evThe CaptureEvent

◆ controlReceived

void InterfaceToolbar::controlReceived ( QString ifname,
int num,
int command,
QByteArray message )
slot

Slot triggered when a control message is received from an interface.

Parameters
ifnameThe name of the interface sending the control.
numThe control number.
commandThe command type.
messageThe payload message.

◆ hasInterface()

bool InterfaceToolbar::hasInterface ( QString ifname) const

Checks if this toolbar is managing a specific interface.

Parameters
ifnameThe interface name to check.
Returns
True if the interface is managed here, false otherwise.

◆ startCapture()

void InterfaceToolbar::startCapture ( GArray * ifaces)

Initializes and starts the capture controls for the given interfaces.

Parameters
ifacesArray of interfaces participating in the capture.

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