1 /* bluetooth_device_dialog.h
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_DEVICE_DIALOG_H
11 #define BLUETOOTH_DEVICE_DIALOG_H
17 #include "wireshark_dialog.h"
22 #include "epan/dissectors/packet-bluetooth.h"
25 #include <QTableWidget>
27 class QAbstractButton;
29 class QTreeWidgetItem;
31 typedef struct _bluetooth_device_tapinfo_t {
32 tap_reset_cb tap_reset;
33 tap_packet_cb tap_packet;
40 } bluetooth_device_tapinfo_t;
42 typedef struct _bluetooth_item_data_t {
47 } bluetooth_item_data_t;
50 class BluetoothDeviceDialog;
53 class BluetoothDeviceDialog : public WiresharkDialog
58 explicit BluetoothDeviceDialog(QWidget &parent, CaptureFile &cf, QString bdAddr, QString name, guint32 interface_id, guint32 adapter_id, gboolean is_local);
59 ~BluetoothDeviceDialog();
64 void updateFilter(QString &filter, bool force = false);
65 void captureFileChanged(capture_file *cf);
66 void goToPacket(int packet_num);
69 void keyPressEvent(QKeyEvent *event);
72 void changeEvent(QEvent* event);
75 Ui::BluetoothDeviceDialog *ui;
77 bluetooth_device_tapinfo_t tapinfo_;
81 static void tapReset(void *tapinfo_ptr);
82 static gboolean tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data);
83 static void updateChanges(QTableWidget *tableWidget, QString value, const int row, guint *changes, packet_info *pinfo);
84 static void saveItemData(QTableWidgetItem *item, bluetooth_device_tap_t *tap_device, packet_info *pinfo);
87 void captureFileClosing();
88 void setTitle(QString bdAddr, QString name);
89 void on_tableWidget_itemActivated(QTableWidgetItem *item);
90 void on_buttonBox_clicked(QAbstractButton *button);
91 void on_actionMark_Unmark_Cell_triggered();
92 void on_actionMark_Unmark_Row_triggered();
93 void on_actionCopy_Cell_triggered();
94 void on_actionCopy_Rows_triggered();
95 void on_actionCopy_All_triggered();
96 void on_actionSave_as_image_triggered();
97 void tableContextMenu(const QPoint &pos);
98 void interfaceCurrentIndexChanged(int index);
99 void showInformationStepsChanged(int state);
102 #endif // BLUETOOTH_DEVICE_DIALOG_H
110 * indent-tabs-mode: nil
113 * ex: set shiftwidth=4 tabstop=8 expandtab:
114 * :indentSize=4:tabSize=8:noTabs=true: