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_RLC_STATISTICS_DIALOG_H__
11 #define __LTE_RLC_STATISTICS_DIALOG_H__
13 #include "tap_parameter_dialog.h"
15 #include <epan/dissectors/packet-rlc-lte.h>
16 #include <epan/dissectors/packet-rlc-3gpp-common.h>
21 class LteRlcStatisticsDialog
: public TapParameterDialog
26 LteRlcStatisticsDialog(QWidget
&parent
, CaptureFile
&cf
, const char *filter
);
27 ~LteRlcStatisticsDialog();
29 unsigned getFrameCount() { return packet_count_
; }
30 void incFrameCount() { ++packet_count_
; }
33 void captureFileClosing();
36 void launchRLCGraph(bool channelKnown
,
40 uint16_t channelType
, uint16_t channelId
,
44 // Extra controls needed for this dialog.
45 QCheckBox
*useRLCFramesFromMacCheckBox_
;
46 QCheckBox
*showSRFilterCheckBox_
;
47 QCheckBox
*showRACHFilterCheckBox_
;
48 QPushButton
*launchULGraph_
;
49 QPushButton
*launchDLGraph_
;
50 QString displayFilter_
;
55 // Callbacks for register_tap_listener
56 static void tapReset(void *ws_dlg_ptr
);
57 static tap_packet_status
tapPacket(void *ws_dlg_ptr
, struct _packet_info
*, struct epan_dissect
*, const void *rlc_lte_tap_info_ptr
, tap_flags_t flags
);
58 static void tapDraw(void *ws_dlg_ptr
);
60 void updateHeaderLabels();
62 virtual const QString
filterExpression();
64 QList
<QVariant
> treeItemData(QTreeWidgetItem
*item
) const;
67 virtual void fillTree();
68 void updateItemSelectionChanged();
70 void useRLCFramesFromMacCheckBoxToggled(bool state
);
71 void launchULGraphButtonClicked();
72 void launchDLGraphButtonClicked();
73 void filterUpdated(QString filter
);
76 #endif // __LTE_RLC_STATISTICS_DIALOG_H__