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
10 #ifndef COMPILEDFILTEROUTPUT_H
11 #define COMPILEDFILTEROUTPUT_H
13 #include "geometry_state_dialog.h"
18 #include <QListWidgetItem>
22 struct InterfaceFilter
{
23 InterfaceFilter(QString intf
, QString filt
) : interface(intf
), filter(filt
) {}
30 class CompiledFilterOutput
;
33 class CompiledFilterOutput
: public GeometryStateDialog
38 QList
<InterfaceFilter
> intList_
;
39 Ui::CompiledFilterOutput
*ui
;
40 GMutex pcap_compile_mtx_
;
41 QHash
<QString
, QString
> compile_results
;
42 QListWidget
*interface_list_
;
43 QPushButton
*copy_bt_
;
49 explicit CompiledFilterOutput(QWidget
*parent
= 0, QList
<InterfaceFilter
> &intList
= *new QList
<InterfaceFilter
>());
51 ~CompiledFilterOutput();
54 void on_interfaceList_currentItemChanged(QListWidgetItem
*current
, QListWidgetItem
*previous
);
55 void copyFilterText();
58 #endif // COMPILEDFILTEROUTPUT_H