3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef BLUETOOTH_HCI_SUMMARY_DIALOG_H
11 #define BLUETOOTH_HCI_SUMMARY_DIALOG_H
15 #include "wireshark_dialog.h"
17 #include "packet_list.h"
23 class QAbstractButton
;
25 class QTreeWidgetItem
;
27 typedef struct _bluetooth_hci_summary_tapinfo_t
{
28 tap_reset_cb tap_reset
;
29 tap_packet_cb tap_packet
;
31 } bluetooth_hci_summary_tapinfo_t
;
34 class BluetoothHciSummaryDialog
;
37 class BluetoothHciSummaryDialog
: public WiresharkDialog
42 explicit BluetoothHciSummaryDialog(QWidget
&parent
, CaptureFile
&cf
);
43 ~BluetoothHciSummaryDialog();
48 void updateFilter(QString filter
, bool force
= false);
49 void captureFileChanged(capture_file
*cf
);
50 void goToPacket(int packet_num
);
53 void keyPressEvent(QKeyEvent
*event
);
54 void captureFileClosing();
55 void captureFileClosed();
58 void changeEvent(QEvent
* event
);
61 Ui::BluetoothHciSummaryDialog
*ui
;
63 bluetooth_hci_summary_tapinfo_t tapinfo_
;
66 QTreeWidgetItem
*item_link_control_
;
67 QTreeWidgetItem
*item_link_policy_
;
68 QTreeWidgetItem
*item_controller_and_baseband_
;
69 QTreeWidgetItem
*item_informational_
;
70 QTreeWidgetItem
*item_status_parameters_
;
71 QTreeWidgetItem
*item_testing_
;
72 QTreeWidgetItem
*item_low_energy_
;
73 QTreeWidgetItem
*item_logo_testing_
;
74 QTreeWidgetItem
*item_vendor_
;
75 QTreeWidgetItem
*item_unknown_ogf_
;
76 QTreeWidgetItem
*item_events_
;
77 QTreeWidgetItem
*item_status_
;
78 QTreeWidgetItem
*item_reason_
;
79 QTreeWidgetItem
*item_hardware_errors_
;
81 static void tapReset(void *tapinfo_ptr
);
82 static tap_packet_status
tapPacket(void *tapinfo_ptr
, packet_info
*pinfo
, epan_dissect_t
*, const void *data
, tap_flags_t flags
);
85 void recursiveCopyTreeItems(QTreeWidgetItem
*item
, QString
©
, int ident_level
);
86 void on_tableTreeWidget_itemActivated(QTreeWidgetItem
*item
, int);
87 void on_buttonBox_clicked(QAbstractButton
*button
);
88 void on_actionMark_Unmark_Cell_triggered();
89 void on_actionMark_Unmark_Row_triggered();
90 void on_actionCopy_Cell_triggered();
91 void on_actionCopy_Rows_triggered();
92 void on_actionCopy_All_triggered();
93 void on_actionSave_as_image_triggered();
94 void tableContextMenu(const QPoint
&pos
);
95 void tableItemExpanded(QTreeWidgetItem
*item
);
96 void tableItemCollapsed(QTreeWidgetItem
*item
);
97 void interfaceCurrentIndexChanged(int index
);
98 void adapterCurrentIndexChanged(int index
);
99 void displayFilterLineEditAccepted();
100 void resultsFilterLineEditChanged(const QString
&text
);
103 #endif // BLUETOOTH_HCI_SUMMARY_DIALOG_H