3 * Wireshark - Network traffic analyzer
4 * By Gerald Combs <gerald@wireshark.org>
5 * Copyright 1998 Gerald Combs
7 * SPDX-License-Identifier: GPL-2.0-or-later
14 #include "capture_event.h"
20 struct profile_switch_filter
{
25 class PacketListModel
;
27 class ProfileSwitcher
: public QObject
31 explicit ProfileSwitcher(QObject
*parent
= nullptr);
34 void captureEventHandler(CaptureEvent ev
);
35 void checkPacket(capture_file
*cap_file
, frame_data
*fdata
, qsizetype row
);
38 QVector
<struct profile_switch_filter
> profile_filters_
;
39 bool capture_file_changed_
;
40 bool profile_changed_
;
41 QString previous_cap_file_
;
43 void clearProfileFilters();
46 void disableSwitching();