Wireshark 2.9.0-477-g68ec514b The Wireshark network protocol analyzer

- Main Page
- Related Pages
- Modules
- Namespaces
- Classes
- Files

- File List
- File Members

bluetooth_devices_dialog.h
1 /* bluetooth_devices_dialog.h
2 *
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
6 *
7 * SPDX-License-Identifier: GPL-2.0-or-later
8 */
9
10 #ifndef BLUETOOTH_DEVICES_DIALOG_H
11 #define BLUETOOTH_DEVICES_DIALOG_H
12
13 #include "config.h"
14
15 #include <glib.h>
16
17 #include "wireshark_dialog.h"
18 #include "cfile.h"
19 #include "packet_list.h"
20
21 #include "epan/tap.h"
22
23 #include <QMenu>
24
25 class QAbstractButton;
26 class QPushButton;
27 class QTreeWidgetItem;
28
29 typedef struct _bluetooth_devices_tapinfo_t {
30 tap_reset_cb tap_reset;
31 tap_packet_cb tap_packet;
32 void *ui;
33 } bluetooth_devices_tapinfo_t;
34
35 namespace Ui {
36 class BluetoothDevicesDialog;
37 }
38
39 class BluetoothDevicesDialog : public WiresharkDialog
40 {
41 Q_OBJECT
42
43 public:
44 explicit BluetoothDevicesDialog(QWidget &parent, CaptureFile &cf, PacketList *packet_list);
45 ~BluetoothDevicesDialog();
46
47 public slots:
48
49 signals:
50 void updateFilter(QString filter, bool force = false);
51 void captureFileChanged(capture_file *cf);
52 void goToPacket(int packet_num);
53
54 protected:
55 void keyPressEvent(QKeyEvent *event);
56
57 protected slots:
58 void changeEvent(QEvent* event);
59
60 private:
61 Ui::BluetoothDevicesDialog *ui;
62 PacketList *packet_list_;
63
64 bluetooth_devices_tapinfo_t tapinfo_;
65 QMenu context_menu_;
66
67 static void tapReset(void *tapinfo_ptr);
68 static gboolean tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data);
69
70 private slots:
71 void captureFileClosing();
72 void on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int);
73 void on_buttonBox_clicked(QAbstractButton *button);
74 void on_actionMark_Unmark_Cell_triggered();
75 void on_actionMark_Unmark_Row_triggered();
76 void on_actionCopy_Cell_triggered();
77 void on_actionCopy_Rows_triggered();
78 void on_actionCopy_All_triggered();
79 void on_actionSave_as_image_triggered();
80 void tableContextMenu(const QPoint &pos);
81 void tableItemDoubleClicked(QTreeWidgetItem *item, int column);
82 void interfaceCurrentIndexChanged(int index);
83 void showInformationStepsChanged(int state);
84 };
85
86 #endif // BLUETOOTH_DEVICES_DIALOG_H
87
88 /*
89 * Editor modelines
90 *
91 * Local Variables:
92 * c-basic-offset: 4
93 * tab-width: 8
94 * indent-tabs-mode: nil
95 * End:
96 *
97 * ex: set shiftwidth=4 tabstop=8 expandtab:
98 * :indentSize=4:tabSize=8:noTabs=true:
99 */
PacketList
Definition: packet_list.h:30
_packet_info
Definition: packet_info.h:44
Ui
Definition: ui_about_dialog.h:291
_bluetooth_devices_tapinfo_t
Definition: bluetooth_devices_dialog.h:29
Ui::BluetoothDevicesDialog
Definition: ui_bluetooth_devices_dialog.h:160
BluetoothDevicesDialog
Definition: bluetooth_devices_dialog.h:39
epan_dissect
Definition: epan_dissect.h:28
WiresharkDialog
Definition: wireshark_dialog.h:32
_capture_file
Definition: cfile.h:58
CaptureFile
Definition: capture_file.h:22