drsuapi_SupportedExtensionsExt wild guess to match 0x80a and DsGetNCChangesReq11...
[wireshark-sm.git] / ui / qt / bluetooth_att_server_attributes_dialog.h
blob3097e458ab5ed566ca94e2a6a36be3200b8379b8
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_ATT_SERVER_ATTRIBUTES_DIALOG_H
11 #define BLUETOOTH_ATT_SERVER_ATTRIBUTES_DIALOG_H
13 #include <config.h>
15 #include "wireshark_dialog.h"
16 #include "cfile.h"
18 #include "epan/tap.h"
20 #include <QMenu>
22 class QAbstractButton;
23 class QPushButton;
24 class QTreeWidgetItem;
26 typedef struct _tapinfo_t {
27 tap_reset_cb tap_reset;
28 tap_packet_cb tap_packet;
29 void *ui;
30 } tapinfo_t;
32 namespace Ui {
33 class BluetoothAttServerAttributesDialog;
36 class QTreeWidgetItem;
37 class BluetoothAttServerAttributesDialog : public WiresharkDialog
39 Q_OBJECT
41 public:
42 explicit BluetoothAttServerAttributesDialog(QWidget &parent, CaptureFile &cf);
43 ~BluetoothAttServerAttributesDialog();
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::BluetoothAttServerAttributesDialog *ui;
62 tapinfo_t tapinfo_;
63 QMenu context_menu_;
65 static void tapReset(void *tapinfo_ptr);
66 static tap_packet_status tapPacket(void *tapinfo_ptr, packet_info *pinfo, epan_dissect_t *, const void *data, tap_flags_t flags);
68 private slots:
69 void on_tableTreeWidget_itemActivated(QTreeWidgetItem *item, int);
70 void on_buttonBox_clicked(QAbstractButton *button);
71 void on_actionMark_Unmark_Cell_triggered();
72 void on_actionMark_Unmark_Row_triggered();
73 void on_actionCopy_Cell_triggered();
74 void on_actionCopy_Rows_triggered();
75 void on_actionCopy_All_triggered();
76 void on_actionSave_as_image_triggered();
77 void tableContextMenu(const QPoint &pos);
78 void interfaceCurrentIndexChanged(int index);
79 void deviceCurrentIndexChanged(int index);
80 #if QT_VERSION >= QT_VERSION_CHECK(6, 7, 0)
81 void removeDuplicatesStateChanged(Qt::CheckState state);
82 #else
83 void removeDuplicatesStateChanged(int state);
84 #endif
87 #endif // BLUETOOTH_ATT_SERVER_ATTRIBUTES_DIALOG_H