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

Table view for displaying resolved network addresses, with built-in support for copying, exporting, and saving the address table in plain-text, CSV, and JSON formats. More...

#include <resolved_addresses_view.h>

Inheritance diagram for ResolvedAddressesView:

Public Types

enum  eResolvedAddressesExport { EXPORT_TEXT , EXPORT_CSV , EXPORT_JSON }
 Output format used when exporting or copying resolved address data. More...
 

Public Slots

void saveAs ()
 Opens a file-save dialog and writes the full address table to a user-chosen file in the selected export format.
 

Public Member Functions

 ResolvedAddressesView (QWidget *parent=nullptr)
 Constructs a ResolvedAddressesView.
 
QMenu * createCopyMenu (bool selected=false, QWidget *parent=nullptr)
 Creates and returns a "Copy" submenu populated with format actions.
 

Protected Member Functions

void contextMenuEvent (QContextMenuEvent *e) override
 Presents a context menu with copy and save options at the cursor position.
 

Detailed Description

Table view for displaying resolved network addresses, with built-in support for copying, exporting, and saving the address table in plain-text, CSV, and JSON formats.

Member Enumeration Documentation

◆ eResolvedAddressesExport

Output format used when exporting or copying resolved address data.

Enumerator
EXPORT_TEXT 

Plain-text tabular format.

EXPORT_CSV 

Comma-separated values format.

EXPORT_JSON 

JSON array format.

Constructor & Destructor Documentation

◆ ResolvedAddressesView()

ResolvedAddressesView::ResolvedAddressesView ( QWidget *  parent = nullptr)

Constructs a ResolvedAddressesView.

Parameters
parentOptional parent widget.

Member Function Documentation

◆ contextMenuEvent()

void ResolvedAddressesView::contextMenuEvent ( QContextMenuEvent *  e)
overrideprotected

Presents a context menu with copy and save options at the cursor position.

Parameters
eThe context menu event carrying the cursor position.

◆ createCopyMenu()

QMenu * ResolvedAddressesView::createCopyMenu ( bool  selected = false,
QWidget *  parent = nullptr 
)

Creates and returns a "Copy" submenu populated with format actions.

Parameters
selectedtrue to restrict copy actions to the current selection; false to copy all rows.
parentOptional parent widget for the menu.
Returns
Pointer to the newly created QMenu; caller takes ownership.

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