qt: add missing initializers (CID 1325722)
[metze/wireshark/wip.git] / ui / qt / lte_mac_statistics_dialog.h
1 /* lte_mac_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 __LTE_MAC_STATISTICS_DIALOG_H__
23 #define __LTE_MAC_STATISTICS_DIALOG_H__
24
25 #include "tap_parameter_dialog.h"
26
27 #include <QLabel>
28
29
30 // Common channel stats
31 typedef struct mac_lte_common_stats {
32     guint32 all_frames;
33     guint32 mib_frames;
34     guint32 sib_frames;
35     guint32 sib_bytes;
36     guint32 pch_frames;
37     guint32 pch_bytes;
38     guint32 pch_paging_ids;
39     guint32 rar_frames;
40     guint32 rar_entries;
41
42     guint16  max_ul_ues_in_tti;
43     guint16  max_dl_ues_in_tti;
44 } mac_lte_common_stats;
45
46
47 class LteMacStatisticsDialog : public TapParameterDialog
48 {
49     Q_OBJECT
50
51 public:
52     LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
53     ~LteMacStatisticsDialog();
54
55     QLabel *commonStatsLabel;
56 protected:
57
58 private:
59     mac_lte_common_stats common_stats;
60     bool commonStatsCurrent;
61
62     // Callbacks for register_tap_listener
63     static void tapReset(void *ws_dlg_ptr);
64     static gboolean tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *mac_lte_tap_info_ptr);
65     static void tapDraw(void *ws_dlg_ptr);
66
67     virtual const QString filterExpression();
68
69     void updateCommonStats(const struct mac_lte_tap_info *mlt_info);
70     void clearCommonStats();
71
72     unsigned  getFrameCount();
73
74 private slots:
75     virtual void fillTree();
76     void updateHeaderLabels();
77     void captureFileClosing();
78 };
79
80 #endif // __LTE_MAC_STATISTICS_DIALOG_H__
81
82 /*
83  * Editor modelines
84  *
85  * Local Variables:
86  * c-basic-offset: 4
87  * tab-width: 8
88  * indent-tabs-mode: nil
89  * End:
90  *
91  * ex: set shiftwidth=4 tabstop=8 expandtab:
92  * :indentSize=4:tabSize=8:noTabs=true:
93  */