Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / lte_rlc_statistics_dialog.h
blobfc97996eceab955f51c46be6d565689cdca9852b
1 /** @file
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
8 */
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>
19 #include <QCheckBox>
21 class LteRlcStatisticsDialog : public TapParameterDialog
23 Q_OBJECT
25 public:
26 LteRlcStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
27 ~LteRlcStatisticsDialog();
29 unsigned getFrameCount() { return packet_count_; }
30 void incFrameCount() { ++packet_count_; }
32 protected:
33 void captureFileClosing();
35 signals:
36 void launchRLCGraph(bool channelKnown,
37 uint8_t version,
38 uint16_t ueid,
39 uint8_t rlcMode,
40 uint16_t channelType, uint16_t channelId,
41 uint8_t direction);
43 private:
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_;
52 CaptureFile &cf_;
53 int packet_count_;
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;
66 private slots:
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__