Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
stats_tree_dialog.h
1 /* stats_tree_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 STATS_TREE_DIALOG_H
11 #define STATS_TREE_DIALOG_H
12 
13 #include "tap_parameter_dialog.h"
14 
15 #include <config.h>
16 
17 #include <glib.h>
18 
19 #include "epan/stats_tree_priv.h"
20 
21 struct _tree_cfg_pres {
22  class StatsTreeDialog* st_dlg;
23 };
24 
26 {
27  Q_OBJECT
28 
29 public:
30  explicit StatsTreeDialog(QWidget &parent, CaptureFile &cf, const char *cfg_abbr);
31  ~StatsTreeDialog();
32  static void setupNode(stat_node* node);
33 
34 private:
35  struct _tree_cfg_pres cfg_pr_;
36  stats_tree *st_;
37  stats_tree_cfg *st_cfg_;
38 
39  static void resetTap(void *st_ptr);
40  static void drawTreeItems(void *st_ptr);
41  virtual QByteArray getTreeAsString(st_format_type format);
42 
43 private slots:
44  virtual void fillTree();
45 };
46 
47 #endif // STATS_TREE_DIALOG_H
48 
49 /*
50  * Editor modelines
51  *
52  * Local Variables:
53  * c-basic-offset: 4
54  * tab-width: 8
55  * indent-tabs-mode: nil
56  * End:
57  *
58  * ex: set shiftwidth=4 tabstop=8 expandtab:
59  * :indentSize=4:tabSize=8:noTabs=true:
60  */
Definition: stats_tree_priv.h:125
enum _st_format_type st_format_type
Definition: tap_parameter_dialog.h:44
Definition: tap-stats_tree.c:34
Definition: stats_tree_priv.h:55
Definition: stats_tree_dialog.h:25
Definition: capture_file.h:22
Definition: stats_tree_priv.h:91