Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
address_editor_frame.h
Go to the documentation of this file.
1
9
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 {
21class AddressEditorFrame;
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) override;
71
77 virtual void keyPressEvent(QKeyEvent *event) override;
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_;
118
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
struct _capture_file capture_file
Represents a capture file and its associated metadata.
AccordionFrame(QWidget *parent=0)
Create an AccordionFrame with the given parent.
Definition accordion_frame.cpp:22
AddressEditorFrame(QWidget *parent=0)
Construct an AddressEditorFrame.
Definition address_editor_frame.cpp:32
void showNameResolutionPreferences(const QString module_name)
Emitted when the user clicks the Name Resolution Preferences button.
virtual void keyPressEvent(QKeyEvent *event) override
Handle key press events.
Definition address_editor_frame.cpp:177
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
virtual void showEvent(QShowEvent *event) override
Populate widgets with the latest address data when the frame becomes visible.
Definition address_editor_frame.cpp:169
void redissectPackets()
Emitted after a hostname mapping is saved, to trigger a full redissection.
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
Definition column-info.h:59