1 /* lte_mac_statistics_dialog.h
3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
10 #ifndef __LTE_MAC_STATISTICS_DIALOG_H__
11 #define __LTE_MAC_STATISTICS_DIALOG_H__
13 #include "tap_parameter_dialog.h"
19 // Common channel stats
20 typedef struct mac_lte_common_stats {
27 guint32 pch_paging_ids;
31 guint16 max_ul_ues_in_tti;
32 guint16 max_dl_ues_in_tti;
33 } mac_lte_common_stats;
36 class LteMacStatisticsDialog : public TapParameterDialog
41 LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
42 ~LteMacStatisticsDialog();
47 // Extra controls needed for this dialog.
48 QLabel *commonStatsLabel_;
49 QCheckBox *showSRFilterCheckBox_;
50 QCheckBox *showRACHFilterCheckBox_;
51 QString displayFilter_;
53 // Callbacks for register_tap_listener
54 static void tapReset(void *ws_dlg_ptr);
55 static gboolean tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *mac_lte_tap_info_ptr);
56 static void tapDraw(void *ws_dlg_ptr);
58 virtual const QString filterExpression();
61 mac_lte_common_stats commonStats_;
62 bool commonStatsCurrent_; // Set when changes have not yet been drawn
63 void updateCommonStats(const struct mac_lte_tap_info *mlt_info);
64 void drawCommonStats();
65 void clearCommonStats();
67 unsigned getFrameCount();
69 QList<QVariant> treeItemData(QTreeWidgetItem *item) const;
72 virtual void fillTree();
73 void updateHeaderLabels();
74 void captureFileClosing();
75 void filterUpdated(QString filter);
78 #endif // __LTE_MAC_STATISTICS_DIALOG_H__
86 * indent-tabs-mode: nil
89 * ex: set shiftwidth=4 tabstop=8 expandtab:
90 * :indentSize=4:tabSize=8:noTabs=true: