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_LBTRM_TRANSPORT_DIALOG_H
13 #define LBM_LBTRM_TRANSPORT_DIALOG_H
18 #include <epan/packet_info.h>
24 class QTreeWidgetItem
;
28 class LBMLBTRMTransportDialog
;
31 class LBMLBTRMTransportDialogInfo
;
32 class LBMLBTRMSourceTransportEntry
;
33 class LBMLBTRMReceiverTransportEntry
;
35 class LBMLBTRMTransportDialog
: public QDialog
40 explicit LBMLBTRMTransportDialog(QWidget
* parent
= 0, capture_file
* cfile
= NULL
);
41 Ui::LBMLBTRMTransportDialog
* getUI(void)
46 void setCaptureFile(capture_file
* cfile
);
49 void goToPacket(int PacketNum
);
52 Ui::LBMLBTRMTransportDialog
* m_ui
;
53 LBMLBTRMTransportDialogInfo
* m_dialog_info
;
54 capture_file
* m_capture_file
;
55 LBMLBTRMSourceTransportEntry
* m_current_source_transport
;
56 LBMLBTRMReceiverTransportEntry
* m_current_receiver_transport
;
57 QMenu
* m_source_context_menu
;
58 QHeaderView
* m_source_header
;
60 virtual ~LBMLBTRMTransportDialog(void);
61 void resetSources(void);
62 void resetReceivers(void);
63 void resetSourcesDetail(void);
64 void resetReceiversDetail(void);
66 static void resetTap(void * tap_data
);
67 static tap_packet_status
tapPacket(void * tap_data
, packet_info
* pinfo
, epan_dissect_t
* edt
, const void * stream_info
, tap_flags_t flags
);
68 static void drawTreeItems(void * tap_data
);
69 void loadSourceDataDetails(LBMLBTRMSourceTransportEntry
* transport
);
70 void loadSourceRXDataDetails(LBMLBTRMSourceTransportEntry
* transport
);
71 void loadSourceNCFDetails(LBMLBTRMSourceTransportEntry
* transport
);
72 void loadSourceSMDetails(LBMLBTRMSourceTransportEntry
* transport
);
73 void loadSourceRSTDetails(LBMLBTRMSourceTransportEntry
* transport
);
74 void loadReceiverNAKDetails(LBMLBTRMReceiverTransportEntry
* transport
);
77 void on_applyFilterButton_clicked(void);
79 void sourcesDetailCurrentChanged(int Index
);
80 void sourcesItemClicked(QTreeWidgetItem
* item
, int column
);
81 void receiversItemClicked(QTreeWidgetItem
* item
, int column
);
82 void sourcesDetailItemDoubleClicked(QTreeWidgetItem
* item
, int column
);
83 void receiversDetailItemDoubleClicked(QTreeWidgetItem
* item
, int column
);
84 void actionSourceDataFrames_triggered(bool checked
);
85 void actionSourceDataBytes_triggered(bool checked
);
86 void actionSourceDataFramesBytes_triggered(bool checked
);
87 void actionSourceDataRate_triggered(bool checked
);
88 void actionSourceRXDataFrames_triggered(bool checked
);
89 void actionSourceRXDataBytes_triggered(bool checked
);
90 void actionSourceRXDataFramesBytes_triggered(bool checked
);
91 void actionSourceRXDataRate_triggered(bool checked
);
92 void actionSourceNCFFrames_triggered(bool checked
);
93 void actionSourceNCFCount_triggered(bool checked
);
94 void actionSourceNCFBytes_triggered(bool checked
);
95 void actionSourceNCFFramesBytes_triggered(bool checked
);
96 void actionSourceNCFCountBytes_triggered(bool checked
);
97 void actionSourceNCFFramesCount_triggered(bool checked
);
98 void actionSourceNCFFramesCountBytes_triggered(bool checked
);
99 void actionSourceNCFRate_triggered(bool checked
);
100 void actionSourceSMFrames_triggered(bool checked
);
101 void actionSourceSMBytes_triggered(bool checked
);
102 void actionSourceSMFramesBytes_triggered(bool checked
);
103 void actionSourceSMRate_triggered(bool checked
);
104 void actionSourceAutoResizeColumns_triggered(void);
105 void custom_source_context_menuRequested(const QPoint
& pos
);