blob: ad5c7006a988a9b08e31e6dbd3270f82b0f6b47a (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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
|