| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
data_source_tab.h
Go to the documentation of this file.
1
10#pragma once
11
12#include <config.h>
13
14#include <epan/packet.h>
15#include <epan/proto.h>
16#include <epan/tvbuff.h>
17
18#include <ui/qt/utils/field_information.h>
19
20#include "cfile.h"
21
22#include <QTabWidget>
23
24
25#include <ui/qt/widgets/base_data_source_view.h>
26
27 class DataSourceTab : public QTabWidget
28{
29 Q_OBJECT
30
31 public:
32 explicit DataSourceTab(QWidget *parent = 0, epan_dissect_t *edt_fixed = 0);
33
34 public slots:
35 /* Set the capture file */
36 void setCaptureFile(capture_file *cf);
37 /* Creates the tabs and data, depends on an dissection which has already run */
38 void selectedFrameChanged(QList<int>);
39 /* Selects or marks a field */
40 void selectedFieldChanged(FieldInformation *);
41 /* Highlights field */
42 void highlightedFieldChanged(FieldInformation *);
43 void captureFileClosing(void);
44
45signals:
46 void fieldSelected(FieldInformation *);
47 void fieldHighlight(FieldInformation *);
48 void byteViewSettingsChanged(void);
49 void byteViewUnmarkField(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 BaseDataSourceView * findDataSourceViewForTvb(tvbuff_t * search, int * idx = 0);
62 void addTab(const char *name = "", const struct data_source *source = nullptr);
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};
base_data_source_view.h
cfile.h
BaseDataSourceView
Definition base_data_source_view.h:17
DataSourceTab
Definition data_source_tab.h:28
FieldInformation
Definition field_information.h:23
field_information.h
packet.h
proto.h
_capture_file
Definition cfile.h:67
data_source
Definition packet.c:56
epan_dissect
Definition epan_dissect.h:28
tvbuff
Definition tvbuff-int.h:35
tvbuff.h