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