1 /* sctp_chunck_statistics_dialog.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * as published by the Free Software Foundation; either version 2
10 * of the License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef SCTP_CHUNK_STATISTICS_DIALOG_H
23 #define SCTP_CHUNK_STATISTICS_DIALOG_H
29 #include <wsutil/file_util.h>
30 #include <epan/dissectors/packet-sctp.h>
31 #include "epan/packet.h"
32 #include "epan/value_string.h"
33 #include <epan/prefs.h>
34 #include <epan/uat-int.h>
35 #include <epan/prefs-int.h>
36 #include <wsutil/filesystem.h>
37 #include "wireshark_application.h"
39 #include "ui/tap-sctp-analysis.h"
41 #include <QTableWidgetItem>
44 #include <QContextMenuEvent>
47 class SCTPChunkStatisticsDialog;
50 class SCTPChunkStatisticsDialog : public QDialog
55 explicit SCTPChunkStatisticsDialog(QWidget *parent = 0, sctp_assoc_info_t *assoc = NULL, capture_file *cf = NULL);
56 ~SCTPChunkStatisticsDialog();
59 void setCaptureFile(capture_file *cf) { cap_file_ = cf; }
62 // void on_sectionClicked(int row);
63 // void on_sectionMoved(int logicalIndex, int oldVisualIndex, int newVisualIndex);
64 void on_pushButton_clicked();
65 void on_actionHideChunkType_triggered();
66 void on_actionChunkTypePreferences_triggered();
67 void contextMenuEvent(QContextMenuEvent * event);
69 void on_actionShowAllChunkTypes_triggered();
72 // void sectionClicked(int);
73 // void sectionMoved(int, int, int);
76 Ui::SCTPChunkStatisticsDialog *ui;
77 sctp_assoc_info_t *selected_assoc;
78 capture_file *cap_file_;
80 QPoint selected_point;
89 QMap<int, struct chunkTypes> chunks, tempChunks;
91 void initializeChunkMap();
92 void fillTable(bool all = false);
95 #endif // SCTP_CHUNK_STATISTICS_DIALOG_H
103 * indent-tabs-mode: nil
106 * ex: set shiftwidth=4 tabstop=8 expandtab:
107 * :indentSize=4:tabSize=8:noTabs=true: