Wireshark  4.3.0
The Wireshark network protocol analyzer
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 
18 #include <ui/qt/utils/proto_node.h>
19 
20 namespace Ui {
21 class AddressEditorFrame;
22 }
23 
24 struct epan_column_info;
25 
27 {
28  Q_OBJECT
29 
30 public:
31  explicit AddressEditorFrame(QWidget *parent = 0);
33 
34 public slots:
35  void editAddresses(CaptureFile &cf, int column = -1);
36 
37 signals:
38  void showNameResolutionPreferences(const QString module_name);
39  void redissectPackets();
40 
41 protected:
42  virtual void showEvent(QShowEvent *event);
43  virtual void keyPressEvent(QKeyEvent *event);
44 
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();
53 
54 private:
55  Ui::AddressEditorFrame *ui;
56  capture_file *cap_file_;
57 
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);
61 };
62 
63 #endif // ADDRESS_EDITOR_FRAME_H
Definition: accordion_frame.h:18
Definition: address_editor_frame.h:27
Definition: capture_file.h:21
Definition: field_information.h:23
Definition: proto_node.h:21
Definition: cfile.h:67
Definition: column-info.h:63