3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef ADDRESS_EDITOR_FRAME_H
11 #define ADDRESS_EDITOR_FRAME_H
13 #include "accordion_frame.h"
15 #include "capture_file.h"
17 #include <ui/qt/utils/field_information.h>
18 #include <ui/qt/utils/proto_node.h>
21 class AddressEditorFrame
;
24 struct epan_column_info
;
26 class AddressEditorFrame
: public AccordionFrame
31 explicit AddressEditorFrame(QWidget
*parent
= 0);
32 ~AddressEditorFrame();
35 void editAddresses(CaptureFile
&cf
, int column
= -1);
38 void showNameResolutionPreferences(const QString module_name
);
39 void redissectPackets();
42 virtual void showEvent(QShowEvent
*event
);
43 virtual void keyPressEvent(QKeyEvent
*event
);
46 void displayPreviousUserDefinedHostname();
48 void on_nameResolutionPreferencesToolButton_clicked();
49 void on_addressComboBox_currentIndexChanged(int idx
);
50 void on_nameLineEdit_textEdited(const QString
&);
51 void on_buttonBox_accepted();
52 void on_buttonBox_rejected();
55 Ui::AddressEditorFrame
*ui
;
56 capture_file
*cap_file_
;
58 static QString
addressToString(const FieldInformation
& finfo
);
59 static void addAddresses(const ProtoNode
& node
, QStringList
& addresses
);
60 bool isAddressColumn(struct epan_column_info
*cinfo
, int column
);
63 #endif // ADDRESS_EDITOR_FRAME_H