Wireshark  4.3.0
The Wireshark network protocol analyzer
profile_switcher.h
Go to the documentation of this file.
1 
10 #pragma once
11 
12 #include <config.h>
13 
14 #include "capture_event.h"
15 #include "cfile.h"
16 
17 #include <QObject>
18 #include <QVector>
19 
21  QString name;
22  dfilter_t *dfcode;
23 };
24 
25 class PacketListModel;
26 
27 class ProfileSwitcher : public QObject
28 {
29  Q_OBJECT
30 public:
31  explicit ProfileSwitcher(QObject *parent = nullptr);
32 
33 public slots:
34  void captureEventHandler(CaptureEvent ev);
35  void checkPacket(capture_file *cap_file, frame_data *fdata, qsizetype row);
36 
37 private:
38  PacketListModel *packet_list_model_;
39  QVector<struct profile_switch_filter> profile_filters_;
40  bool capture_file_changed_;
41  bool profile_changed_;
42  QString previous_cap_file_;
43 
44  void clearProfileFilters();
45 
46 private slots:
47  void disableSwitching();
48 };
Definition: capture_event.h:21
Definition: packet_list_model.h:32
Definition: profile_switcher.h:28
Definition: cfile.h:67
Definition: dfilter-int.h:35
Definition: profile_switcher.h:20