Wireshark 4.5.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
lte_mac_statistics_dialog.h
Go to the documentation of this file.
1
10#ifndef __LTE_MAC_STATISTICS_DIALOG_H__
11#define __LTE_MAC_STATISTICS_DIALOG_H__
12
14
15#include <QLabel>
16#include <QCheckBox>
17
19
20// Common channel stats
21typedef struct mac_3gpp_common_stats {
22 uint32_t all_frames;
23 uint32_t mib_frames;
24 uint32_t sib_frames;
25 uint32_t sib_bytes;
26 uint32_t pch_frames;
27 uint32_t pch_bytes;
28 uint32_t pch_paging_ids;
29 uint32_t rar_frames;
30 uint32_t rar_entries;
31
32 uint16_t max_ul_ues_in_tti;
33 uint16_t max_dl_ues_in_tti;
35
36
38{
39 Q_OBJECT
40
41public:
42 LteMacStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
44
45protected:
46 void captureFileClosing();
47
48private:
49 // Extra controls needed for this dialog.
50 QLabel *commonStatsLabel_;
51 QCheckBox *showSRFilterCheckBox_;
52 QCheckBox *showRACHFilterCheckBox_;
53 PercentBarDelegate *ul_delegate_, *dl_delegate_;
54 QString displayFilter_;
55
56 // Callbacks for register_tap_listener
57 static void tapReset(void *ws_dlg_ptr);
58 static tap_packet_status tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *mac_3gpp_tap_info_ptr, tap_flags_t flags);
59 static void tapDraw(void *ws_dlg_ptr);
60
61 virtual const QString filterExpression();
62
63 // Common stats.
64 mac_3gpp_common_stats commonStats_;
65 bool commonStatsCurrent_; // Set when changes have not yet been drawn
66 void updateCommonStats(const struct mac_3gpp_tap_info *mlt_info);
67 void drawCommonStats();
68 void clearCommonStats();
69
70 unsigned getFrameCount();
71
72 QList<QVariant> treeItemData(QTreeWidgetItem *item) const;
73
74private slots:
75 virtual void fillTree();
76 void updateHeaderLabels();
77 void filterUpdated(QString filter);
78};
79
80#endif // __LTE_MAC_STATISTICS_DIALOG_H__
Definition capture_file.h:21
Definition lte_mac_statistics_dialog.h:38
void captureFileClosing()
Called when the capture file is about to close. This can be used to disconnect taps and similar actio...
Definition lte_mac_statistics_dialog.cpp:913
Definition percent_bar_delegate.h:37
Definition tap_parameter_dialog.h:43
Definition packet_info.h:43
Definition epan_dissect.h:28
Definition lte_mac_statistics_dialog.h:21
Definition packet-mac-3gpp-common.h:22
tap_packet_status
Definition tap.h:25