| Wireshark 4.7.3 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
sctp_chunk_statistics_dialog.h
Go to the documentation of this file.
1
9
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
39 class SCTPChunkStatisticsDialog : public QDialog
40{
41 Q_OBJECT
42
43 public:
50 explicit SCTPChunkStatisticsDialog(QWidget *parent = 0, const _sctp_assoc_info *assoc = NULL, capture_file *cf = NULL);
51
55 ~SCTPChunkStatisticsDialog();
56
57 public slots:
62 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
63
64 private 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) override;
88
92 void on_actionShowAllChunkTypes_triggered();
93
94signals:
95 // void sectionClicked(int);
96 // void sectionMoved(int, int, int);
97
98 private:
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
capture_file
struct _capture_file capture_file
Represents a capture file and its associated metadata.
SCTPChunkStatisticsDialog::SCTPChunkStatisticsDialog
SCTPChunkStatisticsDialog(QWidget *parent=0, const _sctp_assoc_info *assoc=NULL, capture_file *cf=NULL)
Constructs a new SCTPChunkStatisticsDialog.
Definition sctp_chunk_statistics_dialog.cpp:25
SCTPChunkStatisticsDialog::setCaptureFile
void setCaptureFile(capture_file *cf)
Sets the active capture file for the dialog.
Definition sctp_chunk_statistics_dialog.h:62
SCTPChunkStatisticsDialog::~SCTPChunkStatisticsDialog
~SCTPChunkStatisticsDialog()
Destroys the SCTPChunkStatisticsDialog.
Definition sctp_chunk_statistics_dialog.cpp:61
file.h
file_util.h
filesystem.h
packet.h
prefs.h
_sctp_assoc_info
Complete statistics and metadata record for a single SCTP association.
Definition tap-sctp-analysis.h:213
uat.h
value_string.h
wireshark_application.h