Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / bluetooth_hci_summary_dialog.h
blob617966404e6ead794251ab263fd5158c3c4d293d
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_HCI_SUMMARY_DIALOG_H
11 #define BLUETOOTH_HCI_SUMMARY_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_hci_summary_tapinfo_t {
28 tap_reset_cb tap_reset;
29 tap_packet_cb tap_packet;
30 void *ui;
31 } bluetooth_hci_summary_tapinfo_t;
33 namespace Ui {
34 class BluetoothHciSummaryDialog;
37 class BluetoothHciSummaryDialog : public WiresharkDialog
39 Q_OBJECT
41 public:
42 explicit BluetoothHciSummaryDialog(QWidget &parent, CaptureFile &cf);
43 ~BluetoothHciSummaryDialog();
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 captureFileClosing();
55 void captureFileClosed();
57 protected slots:
58 void changeEvent(QEvent* event);
60 private:
61 Ui::BluetoothHciSummaryDialog *ui;
63 bluetooth_hci_summary_tapinfo_t tapinfo_;
64 QMenu context_menu_;
66 QTreeWidgetItem *item_link_control_;
67 QTreeWidgetItem *item_link_policy_;
68 QTreeWidgetItem *item_controller_and_baseband_;
69 QTreeWidgetItem *item_informational_;
70 QTreeWidgetItem *item_status_parameters_;
71 QTreeWidgetItem *item_testing_;
72 QTreeWidgetItem *item_low_energy_;
73 QTreeWidgetItem *item_logo_testing_;
74 QTreeWidgetItem *item_vendor_;
75 QTreeWidgetItem *item_unknown_ogf_;
76 QTreeWidgetItem *item_events_;
77 QTreeWidgetItem *item_status_;
78 QTreeWidgetItem *item_reason_;
79 QTreeWidgetItem *item_hardware_errors_;
81 static void tapReset(void *tapinfo_ptr);
82 static tap_packet_status tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data, tap_flags_t flags);
84 private slots:
85 void recursiveCopyTreeItems(QTreeWidgetItem *item, QString &copy, int ident_level);
86 void on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int);
87 void on_buttonBox_clicked(QAbstractButton *button);
88 void on_actionMark_Unmark_Cell_triggered();
89 void on_actionMark_Unmark_Row_triggered();
90 void on_actionCopy_Cell_triggered();
91 void on_actionCopy_Rows_triggered();
92 void on_actionCopy_All_triggered();
93 void on_actionSave_as_image_triggered();
94 void tableContextMenu(const QPoint &pos);
95 void tableItemExpanded(QTreeWidgetItem *item);
96 void tableItemCollapsed(QTreeWidgetItem *item);
97 void interfaceCurrentIndexChanged(int index);
98 void adapterCurrentIndexChanged(int index);
99 void displayFilterLineEditAccepted();
100 void resultsFilterLineEditChanged(const QString &text);
103 #endif // BLUETOOTH_HCI_SUMMARY_DIALOG_H