Wireshark 4.5.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 "cfile.h"
16
17#include <QObject>
18#include <QVector>
19
21 QString name;
22 dfilter_t *dfcode;
23};
24
25class PacketListModel;
26
27class ProfileSwitcher : public QObject
28{
29 Q_OBJECT
30public:
31 explicit ProfileSwitcher(QObject *parent = nullptr);
32
33public slots:
34 void captureEventHandler(CaptureEvent ev);
35 void checkPacket(capture_file *cap_file, frame_data *fdata, qsizetype row);
36
37private:
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
45private slots:
46 void disableSwitching();
47};
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