Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
lte_rlc_statistics_dialog.h
1 /* lte_rlc_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_RLC_STATISTICS_DIALOG_H__
11 #define __LTE_RLC_STATISTICS_DIALOG_H__
12 
13 #include "tap_parameter_dialog.h"
14 
15 #include <QCheckBox>
16 
18 {
19  Q_OBJECT
20 
21 public:
22  LteRlcStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
24 
25  unsigned getFrameCount() { return packet_count_; }
26  void incFrameCount() { ++packet_count_; }
27 
28 protected:
29 
30 signals:
31  void launchRLCGraph(bool channelKnown,
32  guint16 ueid, guint8 rlcMode,
33  guint16 channelType, guint16 channelId,
34  guint8 direction);
35 
36 private:
37  // Extra controls needed for this dialog.
38  QCheckBox *useRLCFramesFromMacCheckBox_;
39  QCheckBox *showSRFilterCheckBox_;
40  QCheckBox *showRACHFilterCheckBox_;
41  QPushButton *launchULGraph_;
42  QPushButton *launchDLGraph_;
43  QString displayFilter_;
44 
45  CaptureFile &cf_;
46  int packet_count_;
47 
48  // Callbacks for register_tap_listener
49  static void tapReset(void *ws_dlg_ptr);
50  static gboolean tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *rlc_lte_tap_info_ptr);
51  static void tapDraw(void *ws_dlg_ptr);
52 
53  void updateHeaderLabels();
54 
55  virtual const QString filterExpression();
56 
57  QList<QVariant> treeItemData(QTreeWidgetItem *item) const;
58 
59 private slots:
60  virtual void fillTree();
61  void updateItemSelectionChanged();
62 
63  void captureFileClosing();
64 
65  void useRLCFramesFromMacCheckBoxToggled(bool state);
66  void launchULGraphButtonClicked();
67  void launchDLGraphButtonClicked();
68  void filterUpdated(QString filter);
69 };
70 
71 #endif // __LTE_RLC_STATISTICS_DIALOG_H__
72 
73 /*
74  * Editor modelines
75  *
76  * Local Variables:
77  * c-basic-offset: 4
78  * tab-width: 8
79  * indent-tabs-mode: nil
80  * End:
81  *
82  * ex: set shiftwidth=4 tabstop=8 expandtab:
83  * :indentSize=4:tabSize=8:noTabs=true:
84  */
Definition: packet_info.h:44
Definition: tap_parameter_dialog.h:44
Definition: lte_rlc_statistics_dialog.h:17
Definition: epan_dissect.h:28
Definition: capture_file.h:22