Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
wlan_statistics_dialog.h
1 /* wlan_statistics_dialog.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef WLANSTATISTICSDIALOG_H
11 #define WLANSTATISTICSDIALOG_H
12 
13 #include "tap_parameter_dialog.h"
14 
15 class QElapsedTimer;
16 
18 {
19  Q_OBJECT
20 
21 public:
22  WlanStatisticsDialog(QWidget &parent, CaptureFile &cf, const char *filter);
24 
25 protected:
26 
27 private:
28  int packet_count_;
29  int cur_network_;
30  QElapsedTimer *add_station_timer_;
31  QString displayFilter_;
32 
33  // Callbacks for register_tap_listener
34  static void tapReset(void *ws_dlg_ptr);
35  static gboolean tapPacket(void *ws_dlg_ptr, struct _packet_info *, struct epan_dissect *, const void *wlan_hdr_ptr);
36  static void tapDraw(void *ws_dlg_ptr);
37 
38  virtual const QString filterExpression();
39 
40  // How each item will be exported
41  virtual QList<QVariant> treeItemData(QTreeWidgetItem *) const;
42 
43 private slots:
44  virtual void fillTree();
45  void addStationTreeItems();
46  void updateHeaderLabels();
47  void captureFileClosing();
48  void filterUpdated(QString filter);
49 };
50 
51 #endif // WLANSTATISTICSDIALOG_H
52 
53 /*
54  * Editor modelines
55  *
56  * Local Variables:
57  * c-basic-offset: 4
58  * tab-width: 8
59  * indent-tabs-mode: nil
60  * End:
61  *
62  * ex: set shiftwidth=4 tabstop=8 expandtab:
63  * :indentSize=4:tabSize=8:noTabs=true:
64  */
Definition: packet_info.h:44
Definition: wlan_statistics_dialog.h:17
Definition: tap_parameter_dialog.h:44
Definition: epan_dissect.h:28
Definition: capture_file.h:22