Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
sctp_chunk_statistics_dialog.h
Go to the documentation of this file.
1
10#ifndef SCTP_CHUNK_STATISTICS_DIALOG_H
11#define SCTP_CHUNK_STATISTICS_DIALOG_H
12
13#include <config.h>
14
15#include <file.h>
16#include <wsutil/file_util.h>
17#include <epan/dissectors/packet-sctp.h>
18#include "epan/packet.h"
19#include <wsutil/value_string.h>
20#include <epan/prefs.h>
21#include <epan/uat.h>
22#include <wsutil/filesystem.h>
24
25#include <QTableWidgetItem>
26#include <QDialog>
27#include <QMenu>
28#include <QContextMenuEvent>
29
30namespace Ui {
32}
33
34struct _sctp_assoc_info;
35
39class SCTPChunkStatisticsDialog : public QDialog
40{
41 Q_OBJECT
42
43public:
50 explicit SCTPChunkStatisticsDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL);
51
56
57public slots:
62 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
63
64private slots:
65 // void on_sectionClicked(int row);
66 // void on_sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex);
67
71 void on_pushButton_clicked();
72
76 void on_actionHideChunkType_triggered();
77
81 void on_actionChunkTypePreferences_triggered();
82
87 void contextMenuEvent(QContextMenuEvent * event);
88
92 void on_actionShowAllChunkTypes_triggered();
93
94signals:
95 // void sectionClicked(int);
96 // void sectionMoved(int, int, int);
97
98private:
100 Ui::SCTPChunkStatisticsDialog *ui;
101
103 uint16_t selected_assoc_id;
104
106 capture_file *cap_file_;
107
109 QMenu ctx_menu_;
110
112 QPoint selected_point;
113
117 struct chunkTypes {
119 int row;
121 int id;
123 int hide;
125 char name[24];
126 };
127
129 QMap<int, struct chunkTypes> chunks;
130
132 QMap<int, struct chunkTypes> tempChunks;
133
137 void initializeChunkMap();
138
144 void fillTable(bool all = false, const _sctp_assoc_info *selected_assoc = NULL);
145};
146
147#endif // SCTP_CHUNK_STATISTICS_DIALOG_H
A dialog for displaying and managing SCTP chunk statistics.
Definition sctp_chunk_statistics_dialog.h:40
void setCaptureFile(capture_file *cf)
Sets the active capture file for the dialog.
Definition sctp_chunk_statistics_dialog.h:62
~SCTPChunkStatisticsDialog()
Destroys the SCTPChunkStatisticsDialog.
Definition sctp_chunk_statistics_dialog.cpp:61
Represents a capture file and its associated metadata.
Definition cfile.h:84
Definition tap-sctp-analysis.h:192