3 * Copyright (c) 2005-2014 Informatica Corporation. All Rights Reserved.
5 * Wireshark - Network traffic analyzer
6 * By Gerald Combs <gerald@wireshark.org>
7 * Copyright 1998 Gerald Combs
9 * SPDX-License-Identifier: GPL-2.0-or-later
12 #ifndef LBM_LBTRU_TRANSPORT_DIALOG_H
13 #define LBM_LBTRU_TRANSPORT_DIALOG_H
18 #include <epan/packet_info.h>
24 class QTreeWidgetItem
;
28 class LBMLBTRUTransportDialog
;
31 class LBMLBTRUTransportDialogInfo
;
32 class LBMLBTRUSourceTransportEntry
;
33 class LBMLBTRUReceiverTransportEntry
;
35 class LBMLBTRUTransportDialog
: public QDialog
40 explicit LBMLBTRUTransportDialog(QWidget
* parent
= 0, capture_file
* cfile
= NULL
);
41 Ui::LBMLBTRUTransportDialog
* getUI(void)
46 void setCaptureFile(capture_file
* cfile
);
49 void goToPacket(int packet_num
);
52 Ui::LBMLBTRUTransportDialog
* m_ui
;
53 LBMLBTRUTransportDialogInfo
* m_dialog_info
;
54 capture_file
* m_capture_file
;
55 LBMLBTRUSourceTransportEntry
* m_current_source_transport
;
56 LBMLBTRUReceiverTransportEntry
* m_current_receiver_transport
;
57 QMenu
* m_source_context_menu
;
58 QHeaderView
* m_source_header
;
59 QMenu
* m_receiver_context_menu
;
60 QHeaderView
* m_receiver_header
;
62 virtual ~LBMLBTRUTransportDialog(void);
63 void resetSources(void);
64 void resetReceivers(void);
65 void resetSourcesDetail(void);
66 void resetReceiversDetail(void);
68 static void resetTap(void * tap_data
);
69 static tap_packet_status
tapPacket(void * tap_data
, packet_info
* pinfo
, epan_dissect_t
* edt
, const void * stream_info
, tap_flags_t flags
);
70 static void drawTreeItems(void * tap_data
);
71 void loadSourceDataDetails(LBMLBTRUSourceTransportEntry
* transport
);
72 void loadSourceRXDataDetails(LBMLBTRUSourceTransportEntry
* transport
);
73 void loadSourceNCFDetails(LBMLBTRUSourceTransportEntry
* transport
);
74 void loadSourceSMDetails(LBMLBTRUSourceTransportEntry
* transport
);
75 void loadSourceRSTDetails(LBMLBTRUSourceTransportEntry
* transport
);
76 void loadReceiverNAKDetails(LBMLBTRUReceiverTransportEntry
* transport
);
77 void loadReceiverACKDetails(LBMLBTRUReceiverTransportEntry
* transport
);
78 void loadReceiverCREQDetails(LBMLBTRUReceiverTransportEntry
* transport
);
81 void on_applyFilterButton_clicked(void);
83 void sourcesDetailCurrentChanged(int index
);
84 void sourcesItemClicked(QTreeWidgetItem
* item
, int column
);
85 void sourcesDetailItemDoubleClicked(QTreeWidgetItem
* item
, int column
);
86 void receiversDetailCurrentChanged(int index
);
87 void receiversItemClicked(QTreeWidgetItem
* item
, int column
);
88 void receiversDetailItemDoubleClicked(QTreeWidgetItem
* item
, int column
);
90 void custom_source_context_menuRequested(const QPoint
& pos
);
91 void actionSourceDataFrames_triggered(bool checked
);
92 void actionSourceDataBytes_triggered(bool checked
);
93 void actionSourceDataFramesBytes_triggered(bool checked
);
94 void actionSourceDataRate_triggered(bool checked
);
95 void actionSourceRXDataFrames_triggered(bool checked
);
96 void actionSourceRXDataBytes_triggered(bool checked
);
97 void actionSourceRXDataFramesBytes_triggered(bool checked
);
98 void actionSourceRXDataRate_triggered(bool checked
);
99 void actionSourceNCFFrames_triggered(bool checked
);
100 void actionSourceNCFCount_triggered(bool checked
);
101 void actionSourceNCFBytes_triggered(bool checked
);
102 void actionSourceNCFFramesBytes_triggered(bool checked
);
103 void actionSourceNCFCountBytes_triggered(bool checked
);
104 void actionSourceNCFFramesCount_triggered(bool checked
);
105 void actionSourceNCFFramesCountBytes_triggered(bool checked
);
106 void actionSourceNCFRate_triggered(bool checked
);
107 void actionSourceSMFrames_triggered(bool checked
);
108 void actionSourceSMBytes_triggered(bool checked
);
109 void actionSourceSMFramesBytes_triggered(bool checked
);
110 void actionSourceSMRate_triggered(bool checked
);
111 void actionSourceAutoResizeColumns_triggered(void);
112 void custom_receiver_context_menuRequested(const QPoint
& pos
);
113 void actionReceiverNAKFrames_triggered(bool checked
);
114 void actionReceiverNAKCount_triggered(bool checked
);
115 void actionReceiverNAKBytes_triggered(bool checked
);
116 void actionReceiverNAKFramesCount_triggered(bool checked
);
117 void actionReceiverNAKCountBytes_triggered(bool checked
);
118 void actionReceiverNAKFramesBytes_triggered(bool checked
);
119 void actionReceiverNAKFramesCountBytes_triggered(bool checked
);
120 void actionReceiverNAKRate_triggered(bool checked
);
121 void actionReceiverACKFrames_triggered(bool checked
);
122 void actionReceiverACKBytes_triggered(bool checked
);
123 void actionReceiverACKFramesBytes_triggered(bool checked
);
124 void actionReceiverACKRate_triggered(bool checked
);
125 void actionReceiverCREQFrames_triggered(bool checked
);
126 void actionReceiverCREQBytes_triggered(bool checked
);
127 void actionReceiverCREQFramesBytes_triggered(bool checked
);
128 void actionReceiverCREQRate_triggered(bool checked
);
129 void actionReceiverAutoResizeColumns_triggered(void);