Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / bluetooth_devices_dialog.h
blobd26039d70b4e7cc70f70834c46aa2958d5ecef21
1 /** @file
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
8 */
10 #ifndef BLUETOOTH_DEVICES_DIALOG_H
11 #define BLUETOOTH_DEVICES_DIALOG_H
13 #include "config.h"
15 #include "wireshark_dialog.h"
16 #include "cfile.h"
17 #include "packet_list.h"
19 #include "epan/tap.h"
21 #include <QMenu>
23 class QAbstractButton;
24 class QPushButton;
25 class QTreeWidgetItem;
27 typedef struct _bluetooth_devices_tapinfo_t {
28 tap_reset_cb tap_reset;
29 tap_packet_cb tap_packet;
30 void *ui;
31 } bluetooth_devices_tapinfo_t;
33 namespace Ui {
34 class BluetoothDevicesDialog;
37 class BluetoothDevicesDialog : public WiresharkDialog
39 Q_OBJECT
41 public:
42 explicit BluetoothDevicesDialog(QWidget &parent, CaptureFile &cf, PacketList *packet_list);
43 ~BluetoothDevicesDialog();
45 public slots:
47 signals:
48 void updateFilter(QString filter, bool force = false);
49 void captureFileChanged(capture_file *cf);
50 void goToPacket(int packet_num);
52 protected:
53 void keyPressEvent(QKeyEvent *event);
54 void captureFileClosed();
56 protected slots:
57 void changeEvent(QEvent* event);
59 private:
60 Ui::BluetoothDevicesDialog *ui;
61 PacketList *packet_list_;
63 bluetooth_devices_tapinfo_t tapinfo_;
64 QMenu context_menu_;
66 static void tapReset(void *tapinfo_ptr);
67 static tap_packet_status tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data, tap_flags_t flags);
69 private slots:
70 void on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int);
71 void on_buttonBox_clicked(QAbstractButton *button);
72 void on_actionMark_Unmark_Cell_triggered();
73 void on_actionMark_Unmark_Row_triggered();
74 void on_actionCopy_Cell_triggered();
75 void on_actionCopy_Rows_triggered();
76 void on_actionCopy_All_triggered();
77 void on_actionSave_as_image_triggered();
78 void tableContextMenu(const QPoint &pos);
79 void tableItemDoubleClicked(QTreeWidgetItem *item, int column);
80 void interfaceCurrentIndexChanged(int index);
81 void showInformationStepsChanged(int state);
84 #endif // BLUETOOTH_DEVICES_DIALOG_H