Wireshark 4.7.3
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
bluetooth_device_dialog.h
Go to the documentation of this file.
1
9
10#ifndef BLUETOOTH_DEVICE_DIALOG_H
11#define BLUETOOTH_DEVICE_DIALOG_H
12
13#include "config.h"
14
15#include "wireshark_dialog.h"
16#include <epan/cfile.h>
17
18#include "epan/tap.h"
19
20#include "epan/dissectors/packet-bluetooth.h"
21
22#include <QMenu>
23#include <QTableWidget>
24
25class QAbstractButton;
26class QPushButton;
27class QTreeWidgetItem;
28
37 tap_reset_cb tap_reset;
38 tap_packet_cb tap_packet;
39 QString bdAddr;
40 uint32_t interface_id;
41 uint32_t adapter_id;
42 bool is_local;
43 void *ui;
44 unsigned *changes;
46
47
60
61
62namespace Ui {
63class BluetoothDeviceDialog;
64}
65
70{
71 Q_OBJECT
72
73
74public:
86 explicit BluetoothDeviceDialog(QWidget &parent, CaptureFile &cf, QString bdAddr, QString name, uint32_t interface_id, uint32_t adapter_id, bool is_local);
87
90
91public slots:
92
93signals:
97 void updateFilter(QString &filter, bool force = false);
98
102
105 void goToPacket(int packet_num);
106
107
108protected:
111 void keyPressEvent(QKeyEvent *event) override;
112
114 void captureFileClosing() override;
115
116protected slots:
119 void changeEvent(QEvent* event) override;
120
121private:
122 Ui::BluetoothDeviceDialog *ui;
123
125 QMenu context_menu_;
126 unsigned changes_;
127
130 static void tapReset(void *tapinfo_ptr);
131
138 static tap_packet_status tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data, tap_flags_t flags);
139
147 static void updateChanges(QTableWidget *tableWidget, QString value, const int row, unsigned *changes, packet_info *pinfo);
148
153 static void saveItemData(QTableWidgetItem *item, bluetooth_device_tap_t *tap_device, packet_info *pinfo);
154
155private slots:
159 void setTitle(QString bdAddr, QString name);
160
163 void on_tableWidget_itemActivated(QTableWidgetItem *item);
164
167 void on_buttonBox_clicked(QAbstractButton *button);
168
170 void on_actionMark_Unmark_Cell_triggered();
171
173 void on_actionMark_Unmark_Row_triggered();
174
176 void on_actionCopy_Cell_triggered();
177
179 void on_actionCopy_Rows_triggered();
180
182 void on_actionCopy_All_triggered();
183
185 void on_actionSave_as_image_triggered();
186
189 void tableContextMenu(const QPoint &pos);
190
193 void interfaceCurrentIndexChanged(int index);
194
197 void showInformationStepsChanged(int state);
198};
199
200#endif // BLUETOOTH_DEVICE_DIALOG_H
struct _bluetooth_device_tapinfo_t bluetooth_device_tapinfo_t
Tap info block driving the Bluetooth Device dialog's live packet feed.
struct _bluetooth_item_data_t bluetooth_item_data_t
Per-item metadata attached to a row in the Bluetooth Device dialog's packet list.
struct _capture_file capture_file
Represents a capture file and its associated metadata.
void updateFilter(QString &filter, bool force=false)
Emitted when the display filter should be updated.
void captureFileChanged(capture_file *cf)
Emitted when the capture file changes.
void keyPressEvent(QKeyEvent *event) override
Handle key press events.
Definition bluetooth_device_dialog.cpp:203
void captureFileClosing() override
Handle capture file closing.
Definition bluetooth_device_dialog.cpp:178
void goToPacket(int packet_num)
Emitted when the view should navigate to a specific packet.
BluetoothDeviceDialog(QWidget &parent, CaptureFile &cf, QString bdAddr, QString name, uint32_t interface_id, uint32_t adapter_id, bool is_local)
Construct a BluetoothDeviceDialog.
Definition bluetooth_device_dialog.cpp:102
void changeEvent(QEvent *event) override
Handle change events such as language changes.
Definition bluetooth_device_dialog.cpp:186
~BluetoothDeviceDialog()
Destroy the BluetoothDeviceDialog.
Definition bluetooth_device_dialog.cpp:153
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
struct epan_dissect epan_dissect_t
Opaque type representing a single packet dissection context.
Definition epan.h:62
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
Tap info block driving the Bluetooth Device dialog's live packet feed.
Definition bluetooth_device_dialog.h:36
void * ui
Definition bluetooth_device_dialog.h:43
unsigned * changes
Definition bluetooth_device_dialog.h:44
tap_packet_cb tap_packet
Definition bluetooth_device_dialog.h:38
uint32_t interface_id
Definition bluetooth_device_dialog.h:40
QString bdAddr
Definition bluetooth_device_dialog.h:39
bool is_local
Definition bluetooth_device_dialog.h:42
tap_reset_cb tap_reset
Definition bluetooth_device_dialog.h:37
uint32_t adapter_id
Definition bluetooth_device_dialog.h:41
Per-item metadata attached to a row in the Bluetooth Device dialog's packet list.
Definition bluetooth_device_dialog.h:54
int changes
Definition bluetooth_device_dialog.h:58
uint32_t interface_id
Definition bluetooth_device_dialog.h:55
uint32_t frame_number
Definition bluetooth_device_dialog.h:57
uint32_t adapter_id
Definition bluetooth_device_dialog.h:56
tap_packet_status
Definition tap.h:22