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_DEVICES_DIALOG_H
11 #define BLUETOOTH_DEVICES_DIALOG_H
15 #include "wireshark_dialog.h"
17 #include "packet_list.h"
23 class QAbstractButton
;
25 class QTreeWidgetItem
;
27 typedef struct _bluetooth_devices_tapinfo_t
{
28 tap_reset_cb tap_reset
;
29 tap_packet_cb tap_packet
;
31 } bluetooth_devices_tapinfo_t
;
34 class BluetoothDevicesDialog
;
37 class BluetoothDevicesDialog
: public WiresharkDialog
42 explicit BluetoothDevicesDialog(QWidget
&parent
, CaptureFile
&cf
, PacketList
*packet_list
);
43 ~BluetoothDevicesDialog();
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 captureFileClosed();
57 void changeEvent(QEvent
* event
);
60 Ui::BluetoothDevicesDialog
*ui
;
61 PacketList
*packet_list_
;
63 bluetooth_devices_tapinfo_t tapinfo_
;
66 static void tapReset(void *tapinfo_ptr
);
67 static tap_packet_status
tapPacket(void *tapinfo_ptr
, packet_info
*pinfo
, epan_dissect_t
*, const void *data
, tap_flags_t flags
);
70 void on_tableTreeWidget_itemActivated(QTreeWidgetItem
*item
, int);
71 void on_buttonBox_clicked(QAbstractButton
*button
);
72 void on_actionMark_Unmark_Cell_triggered();
73 void on_actionMark_Unmark_Row_triggered();
74 void on_actionCopy_Cell_triggered();
75 void on_actionCopy_Rows_triggered();
76 void on_actionCopy_All_triggered();
77 void on_actionSave_as_image_triggered();
78 void tableContextMenu(const QPoint
&pos
);
79 void tableItemDoubleClicked(QTreeWidgetItem
*item
, int column
);
80 void interfaceCurrentIndexChanged(int index
);
81 void showInformationStepsChanged(int state
);
84 #endif // BLUETOOTH_DEVICES_DIALOG_H