diff options
author | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2015-09-28 03:38:29 -0700 |
---|---|---|
committer | Martin Mathieson <martin.r.mathieson@googlemail.com> | 2015-09-28 16:14:06 +0000 |
commit | 32849b2877a153b04a5833f57c969f0854c5695e (patch) | |
tree | c74ade645b4e26ccbb819400034c7e83acd29a4d /ui/qt/lte_rlc_statistics_dialog.h | |
parent | ea2b45104028e840e05820256a3530cf2ab970ec (diff) | |
download | wireshark-32849b2877a153b04a5833f57c969f0854c5695e.tar.gz |
LTE RLC Statistics Dialog
Change-Id: Id0af0227a398fd06ba37c23097fa6809db432d0f
Reviewed-on: https://code.wireshark.org/review/10669
Petri-Dish: Martin Mathieson <martin.r.mathieson@googlemail.com>
Tested-by: Petri Dish Buildbot <buildbot-no-reply@wireshark.org>
Reviewed-by: Martin Mathieson <martin.r.mathieson@googlemail.com>
Diffstat (limited to 'ui/qt/lte_rlc_statistics_dialog.h')
-rw-r--r-- | ui/qt/lte_rlc_statistics_dialog.h | 69 |
1 files changed, 69 insertions, 0 deletions
diff --git a/ui/qt/lte_rlc_statistics_dialog.h b/ui/qt/lte_rlc_statistics_dialog.h new file mode 100644 index 0000000000..1bcd813ca0 --- /dev/null +++ b/ui/qt/lte_rlc_statistics_dialog.h @@ -0,0 +1,69 @@ +/* lte_rlc_statistics_dialog.h + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + */ + +#ifndef __LTE_RLC_STATISTICS_DIALOG_H__ +#define __LTE_RLC_STATISTICS_DIALOG_H__ + +#include "tap_parameter_dialog.h" + +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_; } + +protected: + +private: + 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); + + virtual const QString filterExpression(); + +private slots: + virtual void fillTree(); + void updateHeaderLabels(); + void captureFileClosing(); +}; + +#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: + */ |