Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / sctp_chunk_statistics_dialog.h
blob1c18dad919d3d72f06de2175354710100323fedc
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 SCTP_CHUNK_STATISTICS_DIALOG_H
11 #define SCTP_CHUNK_STATISTICS_DIALOG_H
13 #include <config.h>
15 #include <file.h>
16 #include <wsutil/file_util.h>
17 #include <epan/dissectors/packet-sctp.h>
18 #include "epan/packet.h"
19 #include "epan/value_string.h"
20 #include <epan/prefs.h>
21 #include <epan/uat-int.h>
22 #include <epan/prefs-int.h>
23 #include <wsutil/filesystem.h>
24 #include "wireshark_application.h"
26 #include <QTableWidgetItem>
27 #include <QDialog>
28 #include <QMenu>
29 #include <QContextMenuEvent>
31 namespace Ui {
32 class SCTPChunkStatisticsDialog;
35 struct _sctp_assoc_info;
37 class SCTPChunkStatisticsDialog : public QDialog
39 Q_OBJECT
41 public:
42 explicit SCTPChunkStatisticsDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL);
43 ~SCTPChunkStatisticsDialog();
45 public slots:
46 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
48 private slots:
49 // void on_sectionClicked(int row);
50 // void on_sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex);
51 void on_pushButton_clicked();
52 void on_actionHideChunkType_triggered();
53 void on_actionChunkTypePreferences_triggered();
54 void contextMenuEvent(QContextMenuEvent * event);
56 void on_actionShowAllChunkTypes_triggered();
58 signals:
59 // void sectionClicked(int);
60 // void sectionMoved(int, int, int);
62 private:
63 Ui::SCTPChunkStatisticsDialog *ui;
64 uint16_t selected_assoc_id;
65 capture_file *cap_file_;
66 QMenu ctx_menu_;
67 QPoint selected_point;
69 struct chunkTypes {
70 int row;
71 int id;
72 int hide;
73 char name[30];
76 QMap<int, struct chunkTypes> chunks, tempChunks;
78 void initializeChunkMap();
79 void fillTable(bool all = false, const _sctp_assoc_info *selected_assoc = NULL);
82 #endif // SCTP_CHUNK_STATISTICS_DIALOG_H