Wireshark  4.3.0
The Wireshark network protocol analyzer
byte_view_tab.h
Go to the documentation of this file.
1 
10 #ifndef BYTE_VIEW_TAB_H
11 #define BYTE_VIEW_TAB_H
12 
13 #include <config.h>
14 
15 #include <epan/packet.h>
16 #include <epan/proto.h>
17 #include <epan/tvbuff.h>
18 
20 
21 #include "cfile.h"
22 
23 #include <QTabWidget>
24 
25 
27 
28 class ByteViewTab : public QTabWidget
29 {
30  Q_OBJECT
31 
32 public:
33  explicit ByteViewTab(QWidget *parent = 0, epan_dissect_t *edt_fixed = 0);
34 
35 public slots:
36  /* Set the capture file */
37  void setCaptureFile(capture_file *cf);
38  /* Creates the tabs and data, depends on an dissection which has already run */
39  void selectedFrameChanged(QList<int>);
40  /* Selects or marks a field */
41  void selectedFieldChanged(FieldInformation *);
42  /* Highlights field */
43  void highlightedFieldChanged(FieldInformation *);
44  void captureFileClosing(void);
45 
46 signals:
47  void fieldSelected(FieldInformation *);
48  void fieldHighlight(FieldInformation *);
49  void byteViewSettingsChanged(void);
50  void detachData(void);
51 
52 private:
53  capture_file *cap_file_;
54  bool is_fixed_packet_; /* true if this byte view is related to a single
55  packet in the packet dialog and false if the
56  packet dissection context can change. */
57  epan_dissect_t *edt_; /* Packet dissection result for the currently selected packet. */
58  bool disable_hover_;
59 
60  void setTabsVisible();
61  ByteViewText * findByteViewTextForTvb(tvbuff_t * search, int * idx = 0);
62  void addTab(const char *name = "", tvbuff_t *tvb = NULL);
63 
64 protected:
65  void tabInserted(int);
66  void tabRemoved(int);
67 
68 private slots:
69  void byteViewTextHovered(int);
70  void byteViewTextMarked(int);
71 
72  void connectToMainWindow();
73 
74  void captureActive(int);
75 };
76 
77 #endif // BYTE_VIEW_TAB_H
Definition: byte_view_tab.h:29
Definition: byte_view_text.h:32
Definition: field_information.h:23
Definition: cfile.h:67
Definition: epan_dissect.h:28
Definition: tvbuff-int.h:35