| Wireshark 4.7.0 The Wireshark network protocol analyzer

Loading...
Searching...
No Matches
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 <epan/cfile.h>
16
17#include <QObject>
18#include <QVector>
19
20 struct profile_switch_filter {
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 QVector<struct profile_switch_filter> profile_filters_;
39 bool capture_file_changed_;
40 bool profile_changed_;
41 QString previous_cap_file_;
42
43 void clearProfileFilters();
44
45 private slots:
46 void disableSwitching();
47};
capture_event.h
cfile.h
CaptureEvent
Definition capture_event.h:21
PacketListModel
Definition packet_list_model.h:32
ProfileSwitcher
Definition profile_switcher.h:28
_capture_file
Definition cfile.h:71
epan_dfilter
Definition dfilter-int.h:35
profile_switch_filter
Definition profile_switcher.h:20