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
10 #ifndef SCTP_CHUNK_STATISTICS_DIALOG_H
11 #define SCTP_CHUNK_STATISTICS_DIALOG_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>
29 #include <QContextMenuEvent>
32 class SCTPChunkStatisticsDialog
;
35 struct _sctp_assoc_info
;
37 class SCTPChunkStatisticsDialog
: public QDialog
42 explicit SCTPChunkStatisticsDialog(QWidget
*parent
= 0, const _sctp_assoc_info
*assoc
= NULL
, capture_file
*cf
= NULL
);
43 ~SCTPChunkStatisticsDialog();
46 void setCaptureFile(capture_file
*cf
) { cap_file_
= cf
; }
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();
59 // void sectionClicked(int);
60 // void sectionMoved(int, int, int);
63 Ui::SCTPChunkStatisticsDialog
*ui
;
64 uint16_t selected_assoc_id
;
65 capture_file
*cap_file_
;
67 QPoint selected_point
;
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