Revert "TODO epan/dissectors/asn1/kerberos/packet-kerberos-template.c new GSS flags"
[wireshark-sm.git] / ui / qt / address_editor_frame.h
bloba4981e350b24e8f8ddf65673e9531f38ccbb5ab2
1 /** @file
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
8 */
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>
20 namespace Ui {
21 class AddressEditorFrame;
24 struct epan_column_info;
26 class AddressEditorFrame : public AccordionFrame
28 Q_OBJECT
30 public:
31 explicit AddressEditorFrame(QWidget *parent = 0);
32 ~AddressEditorFrame();
34 public slots:
35 void editAddresses(CaptureFile &cf, int column = -1);
37 signals:
38 void showNameResolutionPreferences(const QString module_name);
39 void redissectPackets();
41 protected:
42 virtual void showEvent(QShowEvent *event);
43 virtual void keyPressEvent(QKeyEvent *event);
45 private slots:
46 void displayPreviousUserDefinedHostname();
47 void updateWidgets();
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();
54 private:
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