Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
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  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef __LTE_MAC_STATISTICS_DIALOG_H__
11 #define __LTE_MAC_STATISTICS_DIALOG_H__
12 
13 #include "tap_parameter_dialog.h"
14 
15 #include <QLabel>
16 #include <QCheckBox>
17 
18 
19 // Common channel stats
20 typedef struct mac_lte_common_stats {
21  guint32 all_frames;
22  guint32 mib_frames;
23  guint32 sib_frames;
24  guint32 sib_bytes;
25  guint32 pch_frames;
26  guint32 pch_bytes;
27  guint32 pch_paging_ids;
28  guint32 rar_frames;
29  guint32 rar_entries;
30 
31  guint16 max_ul_ues_in_tti;
32  guint16 max_dl_ues_in_tti;
34 
35 
37 {
38  Q_OBJECT
39 
40 public:
41  LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
43 
44 protected:
45 
46 private:
47  // Extra controls needed for this dialog.
48  QLabel *commonStatsLabel_;
49  QCheckBox *showSRFilterCheckBox_;
50  QCheckBox *showRACHFilterCheckBox_;
51  QString displayFilter_;
52 
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);
57 
58  virtual const QString filterExpression();
59 
60  // Common stats.
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();
66 
67  unsigned getFrameCount();
68 
69  QList<QVariant> treeItemData(QTreeWidgetItem *item) const;
70 
71 private slots:
72  virtual void fillTree();
73  void updateHeaderLabels();
74  void captureFileClosing();
75  void filterUpdated(QString filter);
76 };
77 
78 #endif // __LTE_MAC_STATISTICS_DIALOG_H__
79 
80 /*
81  * Editor modelines
82  *
83  * Local Variables:
84  * c-basic-offset: 4
85  * tab-width: 8
86  * indent-tabs-mode: nil
87  * End:
88  *
89  * ex: set shiftwidth=4 tabstop=8 expandtab:
90  * :indentSize=4:tabSize=8:noTabs=true:
91  */
Definition: packet-mac-lte.h:185
Definition: packet_info.h:44
Definition: tap-macltestat.c:97
Definition: tap_parameter_dialog.h:44
Definition: lte_mac_statistics_dialog.h:36
Definition: epan_dissect.h:28
Definition: capture_file.h:22