| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
bluetooth_devices_dialog.h
Go to the documentation of this file.
1
9
10#ifndef BLUETOOTH_DEVICES_DIALOG_H
11#define BLUETOOTH_DEVICES_DIALOG_H
12
13#include "config.h"
14
15#include "wireshark_dialog.h"
16#include <epan/cfile.h>
17#include "packet_list.h"
18
19#include "epan/tap.h"
20
21#include <QMenu>
22
23 class QAbstractButton;
24 class QPushButton;
25 class QTreeWidgetItem;
26
33 typedef struct _bluetooth_devices_tapinfo_t {
34 tap_reset_cb tap_reset;
35 tap_packet_cb tap_packet;
36 void *ui;
37} bluetooth_devices_tapinfo_t;
38
39 namespace Ui {
40 class BluetoothDevicesDialog;
41}
42
47 class BluetoothDevicesDialog : public WiresharkDialog
48{
49 Q_OBJECT
50
51 public:
58 explicit BluetoothDevicesDialog(QWidget &parent, CaptureFile &cf, PacketList *packet_list);
60 ~BluetoothDevicesDialog();
61
62 public slots:
63
64signals:
70 void updateFilter(QString filter, bool force = false);
71
76 void captureFileChanged(capture_file *cf);
77
82 void goToPacket(int packet_num);
83
84 protected:
91 void keyPressEvent(QKeyEvent *event) override;
92
98 void captureFileClosed() override;
99
100 protected slots:
105 void changeEvent(QEvent* event) override;
106
107 private:
108 Ui::BluetoothDevicesDialog *ui;
109 PacketList *packet_list_;
110
111 bluetooth_devices_tapinfo_t tapinfo_;
112 QMenu context_menu_;
113
120 static void tapReset(void *tapinfo_ptr);
121
136 static tap_packet_status tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data, tap_flags_t flags);
137
138 private slots:
143 void on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int);
144
149 void on_buttonBox_clicked(QAbstractButton *button);
150
152 void on_actionMark_Unmark_Cell_triggered();
153
155 void on_actionMark_Unmark_Row_triggered();
156
158 void on_actionCopy_Cell_triggered();
159
161 void on_actionCopy_Rows_triggered();
162
164 void on_actionCopy_All_triggered();
165
167 void on_actionSave_as_image_triggered();
168
173 void tableContextMenu(const QPoint &pos);
174
180 void tableItemDoubleClicked(QTreeWidgetItem *item, int column);
181
186 void interfaceCurrentIndexChanged(int index);
187
193 void showInformationStepsChanged(int state);
194};
195
196#endif // BLUETOOTH_DEVICES_DIALOG_H
bluetooth_devices_tapinfo_t
struct _bluetooth_devices_tapinfo_t bluetooth_devices_tapinfo_t
Tap info block driving the Bluetooth Devices dialog's live packet feed.
cfile.h
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
BluetoothDevicesDialog::BluetoothDevicesDialog
BluetoothDevicesDialog(QWidget &parent, CaptureFile &cf, PacketList *packet_list)
Construct a BluetoothDevicesDialog.
Definition bluetooth_devices_dialog.cpp:65
BluetoothDevicesDialog::updateFilter
void updateFilter(QString filter, bool force=false)
Emitted when the display filter should be updated.
BluetoothDevicesDialog::captureFileClosed
void captureFileClosed() override
Called when the associated capture file is closed.
Definition bluetooth_devices_dialog.cpp:119
BluetoothDevicesDialog::changeEvent
void changeEvent(QEvent *event) override
Handle change events such as language or palette changes.
Definition bluetooth_devices_dialog.cpp:128
BluetoothDevicesDialog::keyPressEvent
void keyPressEvent(QKeyEvent *event) override
Handle key press events.
Definition bluetooth_devices_dialog.cpp:145
BluetoothDevicesDialog::goToPacket
void goToPacket(int packet_num)
Emitted when the packet list should navigate to a specific packet.
BluetoothDevicesDialog::captureFileChanged
void captureFileChanged(capture_file *cf)
Emitted when the underlying capture file has changed.
BluetoothDevicesDialog::~BluetoothDevicesDialog
~BluetoothDevicesDialog()
Destroy the BluetoothDevicesDialog.
Definition bluetooth_devices_dialog.cpp:113
CaptureFile
Manages a capture file and its associated state and operations.
Definition capture_file.h:27
PacketList
The main packet list view for displaying captured packets.
Definition packet_list.h:45
WiresharkDialog::WiresharkDialog
WiresharkDialog(QWidget &parent, CaptureFile &capture_file)
Constructs a new WiresharkDialog object.
Definition wireshark_dialog.cpp:30
epan_dissect_t
struct epan_dissect epan_dissect_t
Opaque type representing a single packet dissection context.
Definition epan.h:62
packet_info
struct _packet_info packet_info
Represents the metadata and indexing information for a single captured frame.
packet_list.h
_bluetooth_devices_tapinfo_t
Tap info block driving the Bluetooth Devices dialog's live packet feed.
Definition bluetooth_devices_dialog.h:33
_bluetooth_devices_tapinfo_t::tap_packet
tap_packet_cb tap_packet
Definition bluetooth_devices_dialog.h:35
_bluetooth_devices_tapinfo_t::tap_reset
tap_reset_cb tap_reset
Definition bluetooth_devices_dialog.h:34
_bluetooth_devices_tapinfo_t::ui
void * ui
Definition bluetooth_devices_dialog.h:36
tap.h
tap_packet_status
tap_packet_status
Definition tap.h:22
wireshark_dialog.h