1 /* lte_mac_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 __LTE_MAC_STATISTICS_DIALOG_H__
23 #define __LTE_MAC_STATISTICS_DIALOG_H__
25 #include "tap_parameter_dialog.h"
30 // Common channel stats
31 typedef struct mac_lte_common_stats {
38 guint32 pch_paging_ids;
42 guint16 max_ul_ues_in_tti;
43 guint16 max_dl_ues_in_tti;
44 } mac_lte_common_stats;
47 class LteMacStatisticsDialog : public TapParameterDialog
52 LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
53 ~LteMacStatisticsDialog();
55 QLabel *commonStatsLabel;
59 mac_lte_common_stats common_stats;
60 bool commonStatsCurrent;
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);
67 virtual const QString filterExpression();
69 void updateCommonStats(const struct mac_lte_tap_info *mlt_info);
70 void clearCommonStats();
72 unsigned getFrameCount();
75 virtual void fillTree();
76 void updateHeaderLabels();
77 void captureFileClosing();
80 #endif // __LTE_MAC_STATISTICS_DIALOG_H__
88 * indent-tabs-mode: nil
91 * ex: set shiftwidth=4 tabstop=8 expandtab:
92 * :indentSize=4:tabSize=8:noTabs=true: