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
19
20#include "cfile.h"
21
22#include <QTabWidget>
23
24
26
27class DataSourceTab : public QTabWidget
28{
29 Q_OBJECT
30
31public:
32 explicit DataSourceTab(QWidget *parent = 0, epan_dissect_t *edt_fixed = 0);
33
34public 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
52private:
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
64protected:
65 void tabInserted(int);
66 void tabRemoved(int);
67
68private slots:
69 void byteViewTextHovered(int);
70 void byteViewTextMarked(int);
71
72 void connectToMainWindow();
73
74 void captureActive(int);
75};
Definition base_data_source_view.h:17
Definition data_source_tab.h:28
Definition field_information.h:23
Definition cfile.h:67
Definition packet.c:56
Definition epan_dissect.h:28
Definition tvbuff-int.h:35