Wireshark  4.3.0
The Wireshark network protocol analyzer
bluetooth_device_dialog.h
Go to the documentation of this file.
1 
10 #ifndef BLUETOOTH_DEVICE_DIALOG_H
11 #define BLUETOOTH_DEVICE_DIALOG_H
12 
13 #include "config.h"
14 
15 #include <glib.h>
16 
17 #include "wireshark_dialog.h"
18 #include "cfile.h"
19 
20 #include "epan/tap.h"
21 
22 #include "epan/dissectors/packet-bluetooth.h"
23 
24 #include <QMenu>
25 #include <QTableWidget>
26 
27 class QAbstractButton;
28 class QPushButton;
29 class QTreeWidgetItem;
30 
32  tap_reset_cb tap_reset;
33  tap_packet_cb tap_packet;
34  QString bdAddr;
35  guint32 interface_id;
36  guint32 adapter_id;
37  gboolean is_local;
38  void *ui;
39  guint *changes;
41 
42 typedef struct _bluetooth_item_data_t {
43  guint32 interface_id;
44  guint32 adapter_id;
45  guint32 frame_number;
46  gint changes;
48 
49 namespace Ui {
51 }
52 
54 {
55  Q_OBJECT
56 
57 public:
58  explicit BluetoothDeviceDialog(QWidget &parent, CaptureFile &cf, QString bdAddr, QString name, guint32 interface_id, guint32 adapter_id, gboolean is_local);
60 
61 public slots:
62 
63 signals:
64  void updateFilter(QString &filter, bool force = false);
65  void captureFileChanged(capture_file *cf);
66  void goToPacket(int packet_num);
67 
68 protected:
69  void keyPressEvent(QKeyEvent *event);
70  void captureFileClosing();
71 
72 protected slots:
73  void changeEvent(QEvent* event);
74 
75 private:
76  Ui::BluetoothDeviceDialog *ui;
77 
79  QMenu context_menu_;
80  guint changes_;
81 
82  static void tapReset(void *tapinfo_ptr);
83  static tap_packet_status tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data, tap_flags_t flags);
84  static void updateChanges(QTableWidget *tableWidget, QString value, const int row, guint *changes, packet_info *pinfo);
85  static void saveItemData(QTableWidgetItem *item, bluetooth_device_tap_t *tap_device, packet_info *pinfo);
86 
87 private slots:
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);
100 };
101 
102 #endif // BLUETOOTH_DEVICE_DIALOG_H
Definition: bluetooth_device_dialog.h:54
void captureFileClosing()
Called when the capture file is about to close. This can be used to disconnect taps and similar actio...
Definition: bluetooth_device_dialog.cpp:176
Definition: capture_file.h:23
Definition: wireshark_dialog.h:35
Definition: packet-bluetooth.h:215
Definition: bluetooth_device_dialog.h:31
Definition: bluetooth_device_dialog.h:42
Definition: cfile.h:67
Definition: packet_info.h:44
Definition: epan_dissect.h:28
tap_packet_status
Definition: tap.h:25