Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
address_editor_frame.h
Go to the documentation of this file.
1
10#ifndef ADDRESS_EDITOR_FRAME_H
11#define ADDRESS_EDITOR_FRAME_H
12
13#include "accordion_frame.h"
14
15#include "capture_file.h"
16
19
20namespace Ui {
22}
23
24struct epan_column_info;
25
30{
31 Q_OBJECT
32
33public:
38 explicit AddressEditorFrame(QWidget *parent = 0);
39
42
43public slots:
51 void editAddresses(CaptureFile &cf, int column = -1);
52
53signals:
58 void showNameResolutionPreferences(const QString module_name);
59
64
65protected:
70 virtual void showEvent(QShowEvent *event);
71
77 virtual void keyPressEvent(QKeyEvent *event);
78
79private slots:
84 void displayPreviousUserDefinedHostname();
85
90 void updateWidgets();
91
93 void on_nameResolutionPreferencesToolButton_clicked();
94
99 void on_addressComboBox_currentIndexChanged(int idx);
100
105 void on_nameLineEdit_textEdited(const QString &name);
106
110 void on_buttonBox_accepted();
111
113 void on_buttonBox_rejected();
114
115private:
116 Ui::AddressEditorFrame *ui;
117 capture_file *cap_file_;
124 static QString addressToString(const FieldInformation &finfo);
125
132 static void addAddresses(const ProtoNode &node, QStringList &addresses);
133
140 bool isAddressColumn(struct epan_column_info *cinfo, int column);
141};
142
143#endif // ADDRESS_EDITOR_FRAME_H
A QFrame that shows and hides itself with a slide animation.
Definition accordion_frame.h:21
An AccordionFrame for editing user-defined hostname mappings.
Definition address_editor_frame.h:30
virtual void keyPressEvent(QKeyEvent *event)
Handle key press events.
Definition address_editor_frame.cpp:177
void showNameResolutionPreferences(const QString module_name)
Emitted when the user clicks the Name Resolution Preferences button.
void editAddresses(CaptureFile &cf, int column=-1)
Populate the frame with addresses from the selected packet.
Definition address_editor_frame.cpp:102
~AddressEditorFrame()
Destroy the AddressEditorFrame and release its UI resources.
Definition address_editor_frame.cpp:47
void redissectPackets()
Emitted after a hostname mapping is saved, to trigger a full redissection.
virtual void showEvent(QShowEvent *event)
Populate widgets with the latest address data when the frame becomes visible.
Definition address_editor_frame.cpp:169
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
Represents information about a dissected packet field.
Definition field_information.h:26
A wrapper class for the core proto_node structure, providing tree traversal and data access.
Definition proto_node.h:24
Represents a capture file and its associated metadata.
Definition cfile.h:84
Definition column-info.h:59