Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
funnel_statistics.h
1 /* funnel_statistics.cpp
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 FUNNELSTATISTICS_H
11 #define FUNNELSTATISTICS_H
12 
13 #include <QObject>
14 
15 #include "capture_file.h"
16 
17 #include "funnel_text_dialog.h"
18 
19 struct _funnel_ops_t;
20 struct _funnel_progress_window_t;
21 struct progdlg;
22 
23 class FunnelStatistics : public QObject
24 {
25  Q_OBJECT
26 public:
27  explicit FunnelStatistics(QObject *parent, CaptureFile &cf);
28  void retapPackets();
29  struct progdlg *progressDialogNew(const gchar *task_title, const gchar *item_title, gboolean terminate_is_stop, gboolean *stop_flag);
30  const char *displayFilter();
31  void emitSetDisplayFilter(const QString filter);
32  void reloadPackets();
33  void reloadLuaPlugins();
34  void emitApplyDisplayFilter();
35  void emitOpenCaptureFile(QString cf_path, QString filter);
36  static const QString &actionName() { return action_name_; }
37 
38 signals:
39  void setDisplayFilter(const QString filter);
40  void applyDisplayFilter();
41  void openCaptureFile(QString cf_path, QString filter);
42 
43 public slots:
44  void funnelActionTriggered();
45  void displayFilterTextChanged(const QString &filter);
46 
47 private:
48  static const QString action_name_;
49  struct _funnel_ops_t *funnel_ops_;
50  CaptureFile &capture_file_;
51  QByteArray display_filter_;
52 };
53 
54 extern "C" {
55  void funnel_statistics_reload_menus(void);
56 } // extern "C"
57 
58 #endif // FUNNELSTATISTICS_H
59 
60 /*
61  * Editor modelines
62  *
63  * Local Variables:
64  * c-basic-offset: 4
65  * tab-width: 8
66  * indent-tabs-mode: nil
67  * End:
68  *
69  * ex: set shiftwidth=4 tabstop=8 expandtab:
70  * :indentSize=4:tabSize=8:noTabs=true:
71  */
Definition: funnel.h:49
Definition: progress_frame.h:33
Definition: funnel_statistics.h:23
Definition: capture_file.h:22