diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-10 20:34:10 +0000 |
commit | e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc (patch) | |
tree | 68cb5ef9081156392f1dd62a00c6ccc1451b93df /ui/qt/wlan_statistics_dialog.h | |
parent | Initial commit. (diff) | |
download | wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.tar.xz wireshark-e4ba6dbc3f1e76890b22773807ea37fe8fa2b1bc.zip |
Adding upstream version 4.2.2.upstream/4.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'ui/qt/wlan_statistics_dialog.h')
-rw-r--r-- | ui/qt/wlan_statistics_dialog.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/ui/qt/wlan_statistics_dialog.h b/ui/qt/wlan_statistics_dialog.h new file mode 100644 index 00000000..ad5c7006 --- /dev/null +++ b/ui/qt/wlan_statistics_dialog.h @@ -0,0 +1,53 @@ +/** @file + * + * Wireshark - Network traffic analyzer + * By Gerald Combs <gerald@wireshark.org> + * Copyright 1998 Gerald Combs + * + * SPDX-License-Identifier: GPL-2.0-or-later + */ + +#ifndef WLANSTATISTICSDIALOG_H +#define WLANSTATISTICSDIALOG_H + +#include "tap_parameter_dialog.h" +#include <ui/qt/models/percent_bar_delegate.h> + +class QElapsedTimer; + +class WlanStatisticsDialog : public TapParameterDialog +{ + Q_OBJECT + +public: + WlanStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter); + ~WlanStatisticsDialog(); + +protected: + void captureFileClosing(); + +private: + int packet_count_; + int cur_network_; + PercentBarDelegate *packets_delegate_, *retry_delegate_; + QElapsedTimer *add_station_timer_; + QString displayFilter_; + + // Callbacks for register_tap_listener + static void tapReset(void *ws_dlg_ptr); + static tap_packet_status tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *wlan_hdr_ptr, tap_flags_t flags); + static void tapDraw(void *ws_dlg_ptr); + + virtual const QString filterExpression(); + + // How each item will be exported + virtual QList<QVariant> treeItemData(QTreeWidgetItem *) const; + +private slots: + virtual void fillTree(); + void addStationTreeItems(); + void updateHeaderLabels(); + void filterUpdated(QString filter); +}; + +#endif // WLANSTATISTICSDIALOG_H |