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

A frame containing the list of interfaces available for capture, along with status and controls. More...

#include <interface_frame.h>

Inheritance diagram for InterfaceFrame:

Public Slots

void updateSelectedInterfaces ()
 Updates the UI state based on currently selected interfaces.
 
void interfaceListChanged ()
 Handles updates when the global interface list changes.
 
void toggleHiddenInterfaces ()
 Toggles the visibility of hidden interfaces in the list.
 
void showRunOnFile ()
 Triggers the action to run wireshark/tshark on a file.
 
void showContextMenu (QPoint pos)
 Shows the context menu for the interface list.
 

Signals

void showExtcapOptions (QString device_name, bool startCaptureOnClose)
 Signal emitted to show the extended capture (extcap) options dialog for a device.
 
void startCapture (QStringList interfaces)
 Signal emitted to initiate a capture session.
 
void itemSelectionChanged ()
 Signal emitted when the item selection in the interface list changes.
 
void typeSelectionChanged ()
 Signal emitted when the selected interface type filter changes.
 

Public Member Functions

 InterfaceFrame (QWidget *parent=0)
 Constructs a new InterfaceFrame.
 
 ~InterfaceFrame ()
 Destroys the InterfaceFrame.
 
int interfacesHidden ()
 Gets the number of currently hidden interfaces.
 
QMenu * getSelectionMenu ()
 Retrieves the selection menu associated with the interface list.
 
int interfacesPresent ()
 Gets the total number of interfaces present.
 
void ensureSelectedInterface ()
 Ensures at least one interface is selected, if possible.
 

Protected Member Functions

void hideEvent (QHideEvent *evt)
 Handles hide events for the frame, stopping updates if necessary.
 
void showEvent (QShowEvent *evt)
 Handles show events for the frame, resuming updates if necessary.
 
void changeEvent (QEvent *evt)
 Handles change events; re-fits the interface tree columns when the widget is re-polished (works around QTBUG-122109).
 

Detailed Description

A frame containing the list of interfaces available for capture, along with status and controls.

Constructor & Destructor Documentation

◆ InterfaceFrame()

InterfaceFrame::InterfaceFrame ( QWidget *  parent = 0)
explicit

Constructs a new InterfaceFrame.

Parameters
parentThe parent widget, defaults to 0.

Member Function Documentation

◆ changeEvent()

void InterfaceFrame::changeEvent ( QEvent *  evt)
protected

Handles change events; re-fits the interface tree columns when the widget is re-polished (works around QTBUG-122109).

Parameters
evtThe change event.

◆ getSelectionMenu()

QMenu * InterfaceFrame::getSelectionMenu ( )

Retrieves the selection menu associated with the interface list.

Returns
A pointer to the QMenu.

◆ hideEvent()

void InterfaceFrame::hideEvent ( QHideEvent *  evt)
protected

Handles hide events for the frame, stopping updates if necessary.

Parameters
evtThe hide event.

◆ interfacesHidden()

int InterfaceFrame::interfacesHidden ( )

Gets the number of currently hidden interfaces.

Returns
The count of hidden interfaces.

◆ interfacesPresent()

int InterfaceFrame::interfacesPresent ( )

Gets the total number of interfaces present.

Returns
The count of present interfaces.

◆ showContextMenu

void InterfaceFrame::showContextMenu ( QPoint  pos)
slot

Shows the context menu for the interface list.

Parameters
posThe position where the context menu was requested.

◆ showEvent()

void InterfaceFrame::showEvent ( QShowEvent *  evt)
protected

Handles show events for the frame, resuming updates if necessary.

Parameters
evtThe show event.

◆ showExtcapOptions

void InterfaceFrame::showExtcapOptions ( QString  device_name,
bool  startCaptureOnClose 
)
signal

Signal emitted to show the extended capture (extcap) options dialog for a device.

Parameters
device_nameThe name of the device.
startCaptureOnCloseTrue if capture should start automatically upon closing the options dialog.

◆ startCapture

void InterfaceFrame::startCapture ( QStringList  interfaces)
signal

Signal emitted to initiate a capture session.

Parameters
interfacesA list of interface names to capture from.

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