| 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>
23#include "wireshark_application.h"
24
25#include <QTableWidgetItem>
26#include <QDialog>
27#include <QMenu>
28#include <QContextMenuEvent>
29
30 namespace Ui {
31 class SCTPChunkStatisticsDialog;
32}
33
34 struct _sctp_assoc_info;
35
36 class SCTPChunkStatisticsDialog : public QDialog
37{
38 Q_OBJECT
39
40 public:
41 explicit SCTPChunkStatisticsDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL);
42 ~SCTPChunkStatisticsDialog();
43
44 public slots:
45 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
46
47 private slots:
48 // void on_sectionClicked(int row);
49 // void on_sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex);
50 void on_pushButton_clicked();
51 void on_actionHideChunkType_triggered();
52 void on_actionChunkTypePreferences_triggered();
53 void contextMenuEvent(QContextMenuEvent * event);
54
55 void on_actionShowAllChunkTypes_triggered();
56
57signals:
58 // void sectionClicked(int);
59 // void sectionMoved(int, int, int);
60
61 private:
62 Ui::SCTPChunkStatisticsDialog *ui;
63 uint16_t selected_assoc_id;
64 capture_file *cap_file_;
65 QMenu ctx_menu_;
66 QPoint selected_point;
67
68 struct chunkTypes {
69 int row;
70 int id;
71 int hide;
72 char name[24];
73 };
74
75 QMap<int, struct chunkTypes> chunks, tempChunks;
76
77 void initializeChunkMap();
78 void fillTable(bool all = false, const _sctp_assoc_info *selected_assoc = NULL);
79};
80
81#endif // SCTP_CHUNK_STATISTICS_DIALOG_H
SCTPChunkStatisticsDialog
Definition sctp_chunk_statistics_dialog.h:37
file.h
file_util.h
filesystem.h
packet.h
prefs.h
_capture_file
Definition cfile.h:71
_sctp_assoc_info
Definition tap-sctp-analysis.h:192
uat.h
value_string.h
wireshark_application.h