nexmon – Blame information for rev 1
?pathlinks?
Rev | Author | Line No. | Line |
---|---|---|---|
1 | office | 1 | /* sctp_chunck_statistics_dialog.h |
2 | * |
||
3 | * Wireshark - Network traffic analyzer |
||
4 | * By Gerald Combs <gerald@wireshark.org> |
||
5 | * Copyright 1998 Gerald Combs |
||
6 | * |
||
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. |
||
11 | * |
||
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. |
||
16 | * |
||
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. |
||
20 | */ |
||
21 | |||
22 | #ifndef SCTP_CHUNK_STATISTICS_DIALOG_H |
||
23 | #define SCTP_CHUNK_STATISTICS_DIALOG_H |
||
24 | |||
25 | #include <config.h> |
||
26 | #include <glib.h> |
||
27 | |||
28 | #include <file.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" |
||
38 | |||
39 | #include "ui/tap-sctp-analysis.h" |
||
40 | |||
41 | #include <QTableWidgetItem> |
||
42 | #include <QDialog> |
||
43 | #include <QMenu> |
||
44 | #include <QContextMenuEvent> |
||
45 | |||
46 | namespace Ui { |
||
47 | class SCTPChunkStatisticsDialog; |
||
48 | } |
||
49 | |||
50 | class SCTPChunkStatisticsDialog : public QDialog |
||
51 | { |
||
52 | Q_OBJECT |
||
53 | |||
54 | public: |
||
55 | explicit SCTPChunkStatisticsDialog(QWidget *parent = 0, sctp_assoc_info_t *assoc = NULL, capture_file *cf = NULL); |
||
56 | ~SCTPChunkStatisticsDialog(); |
||
57 | |||
58 | public slots: |
||
59 | void setCaptureFile(capture_file *cf) { cap_file_ = cf; } |
||
60 | |||
61 | private slots: |
||
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); |
||
68 | |||
69 | void on_actionShowAllChunkTypes_triggered(); |
||
70 | |||
71 | signals: |
||
72 | // void sectionClicked(int); |
||
73 | // void sectionMoved(int, int, int); |
||
74 | |||
75 | private: |
||
76 | Ui::SCTPChunkStatisticsDialog *ui; |
||
77 | sctp_assoc_info_t *selected_assoc; |
||
78 | capture_file *cap_file_; |
||
79 | QMenu ctx_menu_; |
||
80 | QPoint selected_point; |
||
81 | |||
82 | struct chunkTypes { |
||
83 | int row; |
||
84 | int id; |
||
85 | int hide; |
||
86 | char name[30]; |
||
87 | }; |
||
88 | |||
89 | QMap<int, struct chunkTypes> chunks, tempChunks; |
||
90 | |||
91 | void initializeChunkMap(); |
||
92 | void fillTable(bool all = false); |
||
93 | }; |
||
94 | |||
95 | #endif // SCTP_CHUNK_STATISTICS_DIALOG_H |
||
96 | |||
97 | /* |
||
98 | * Editor modelines |
||
99 | * |
||
100 | * Local Variables: |
||
101 | * c-basic-offset: 4 |
||
102 | * tab-width: 8 |
||
103 | * indent-tabs-mode: nil |
||
104 | * End: |
||
105 | * |
||
106 | * ex: set shiftwidth=4 tabstop=8 expandtab: |
||
107 | * :indentSize=4:tabSize=8:noTabs=true: |
||
108 | */ |