2015-09-28 10:38:29 +00:00
|
|
|
/* lte_rlc_statistics_dialog.h
|
|
|
|
*
|
|
|
|
* Wireshark - Network traffic analyzer
|
|
|
|
* By Gerald Combs <gerald@wireshark.org>
|
|
|
|
* Copyright 1998 Gerald Combs
|
|
|
|
*
|
2018-04-30 07:47:58 +00:00
|
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
*/
|
2015-09-28 10:38:29 +00:00
|
|
|
|
|
|
|
#ifndef __LTE_RLC_STATISTICS_DIALOG_H__
|
|
|
|
#define __LTE_RLC_STATISTICS_DIALOG_H__
|
|
|
|
|
|
|
|
#include "tap_parameter_dialog.h"
|
|
|
|
|
2015-10-16 11:58:51 +00:00
|
|
|
#include <QCheckBox>
|
|
|
|
|
2015-09-28 10:38:29 +00:00
|
|
|
class LteRlcStatisticsDialog : public TapParameterDialog
|
|
|
|
{
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
public:
|
|
|
|
LteRlcStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
|
|
|
|
~LteRlcStatisticsDialog();
|
|
|
|
|
|
|
|
unsigned getFrameCount() { return packet_count_; }
|
|
|
|
void incFrameCount() { ++packet_count_; }
|
|
|
|
|
2015-10-16 11:58:51 +00:00
|
|
|
protected:
|
|
|
|
|
2015-10-17 15:54:55 +00:00
|
|
|
signals:
|
|
|
|
void launchRLCGraph(bool channelKnown,
|
|
|
|
guint16 ueid, guint8 rlcMode,
|
|
|
|
guint16 channelType, guint16 channelId,
|
|
|
|
guint8 direction);
|
|
|
|
|
2015-10-16 11:58:51 +00:00
|
|
|
private:
|
2015-10-15 12:19:33 +00:00
|
|
|
// Extra controls needed for this dialog.
|
2015-10-16 11:58:51 +00:00
|
|
|
QCheckBox *useRLCFramesFromMacCheckBox_;
|
|
|
|
QCheckBox *showSRFilterCheckBox_;
|
|
|
|
QCheckBox *showRACHFilterCheckBox_;
|
2015-10-15 12:19:33 +00:00
|
|
|
QPushButton *launchULGraph_;
|
|
|
|
QPushButton *launchDLGraph_;
|
2017-11-24 21:07:38 +00:00
|
|
|
QString displayFilter_;
|
2015-10-15 12:19:33 +00:00
|
|
|
|
|
|
|
CaptureFile &cf_;
|
2015-09-28 10:38:29 +00:00
|
|
|
int packet_count_;
|
|
|
|
|
|
|
|
// Callbacks for register_tap_listener
|
|
|
|
static void tapReset(void *ws_dlg_ptr);
|
|
|
|
static gboolean tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *rlc_lte_tap_info_ptr);
|
|
|
|
static void tapDraw(void *ws_dlg_ptr);
|
|
|
|
|
2015-10-15 12:19:33 +00:00
|
|
|
void updateHeaderLabels();
|
|
|
|
|
2015-09-28 10:38:29 +00:00
|
|
|
virtual const QString filterExpression();
|
|
|
|
|
2017-12-23 14:58:29 +00:00
|
|
|
QList<QVariant> treeItemData(QTreeWidgetItem *item) const;
|
|
|
|
|
2015-09-28 10:38:29 +00:00
|
|
|
private slots:
|
|
|
|
virtual void fillTree();
|
2015-10-15 12:19:33 +00:00
|
|
|
void updateItemSelectionChanged();
|
|
|
|
|
2015-09-28 10:38:29 +00:00
|
|
|
void captureFileClosing();
|
2015-10-15 12:19:33 +00:00
|
|
|
|
2015-10-16 11:58:51 +00:00
|
|
|
void useRLCFramesFromMacCheckBoxToggled(bool state);
|
2015-10-15 12:19:33 +00:00
|
|
|
void launchULGraphButtonClicked();
|
|
|
|
void launchDLGraphButtonClicked();
|
2017-11-24 21:07:38 +00:00
|
|
|
void filterUpdated(QString filter);
|
2015-09-28 10:38:29 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // __LTE_RLC_STATISTICS_DIALOG_H__
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Editor modelines
|
|
|
|
*
|
|
|
|
* Local Variables:
|
|
|
|
* c-basic-offset: 4
|
|
|
|
* tab-width: 8
|
|
|
|
* indent-tabs-mode: nil
|
|
|
|
* End:
|
|
|
|
*
|
|
|
|
* ex: set shiftwidth=4 tabstop=8 expandtab:
|
|
|
|
* :indentSize=4:tabSize=8:noTabs=true:
|
|
|
|
*/
|