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
AddressEditorFrame Class Reference

An AccordionFrame for editing user-defined hostname mappings. More...

#include <address_editor_frame.h>

Inheritance diagram for AddressEditorFrame:
AccordionFrame

Public Slots

void editAddresses (CaptureFile &cf, int column=-1)
 Populate the frame with addresses from the selected packet.
 

Signals

void showNameResolutionPreferences (const QString module_name)
 Emitted when the user clicks the Name Resolution Preferences button.
 
void redissectPackets ()
 Emitted after a hostname mapping is saved, to trigger a full redissection.
 
- Signals inherited from AccordionFrame
void visibilityChanged (bool visible)
 Emitted when the frame's visibility changes.
 

Public Member Functions

 AddressEditorFrame (QWidget *parent=0)
 Construct an AddressEditorFrame.
 
 ~AddressEditorFrame ()
 Destroy the AddressEditorFrame and release its UI resources.
 
- Public Member Functions inherited from AccordionFrame
 AccordionFrame (QWidget *parent=0)
 Create an AccordionFrame with the given parent.
 
void animatedShow ()
 Show the frame with a slide-down animation.
 
void animatedHide ()
 Hide the frame with a slide-up animation.
 
void updateStyleSheet ()
 Reapply the stylesheet after a palette or style change.
 

Protected Member Functions

virtual void showEvent (QShowEvent *event)
 Populate widgets with the latest address data when the frame becomes visible.
 
virtual void keyPressEvent (QKeyEvent *event)
 Handle key press events.
 
- Protected Member Functions inherited from AccordionFrame
virtual void hideEvent (QHideEvent *)
 Emit visibilityChanged(false) when the frame is hidden.
 

Detailed Description

An AccordionFrame for editing user-defined hostname mappings.

Constructor & Destructor Documentation

◆ AddressEditorFrame()

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

Construct an AddressEditorFrame.

Parameters
parentThe parent widget.

Member Function Documentation

◆ editAddresses

void AddressEditorFrame::editAddresses ( CaptureFile cf,
int  column = -1 
)
slot

Populate the frame with addresses from the selected packet.

Parameters
cfThe capture file containing the currently selected packet.
columnZero-based packet-list column index to pre-select, or -1 to select the first available address.

◆ keyPressEvent()

void AddressEditorFrame::keyPressEvent ( QKeyEvent *  event)
protectedvirtual

Handle key press events.

Parameters
eventThe key event.

◆ showEvent()

void AddressEditorFrame::showEvent ( QShowEvent *  event)
protectedvirtual

Populate widgets with the latest address data when the frame becomes visible.

Parameters
eventThe show event.

Reimplemented from AccordionFrame.

◆ showNameResolutionPreferences

void AddressEditorFrame::showNameResolutionPreferences ( const QString  module_name)
signal

Emitted when the user clicks the Name Resolution Preferences button.

Parameters
module_nameThe preferences module name to open (e.g. "nameres").

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