Kerberos: add kerberos_inject_longterm_key() helper function
[wireshark-sm.git] / ui / qt / compiled_filter_output.h
blobd87c7c29db4c5b72e2f2e5befc01f74fc244cbc4
1 /** @file
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
8 */
10 #ifndef COMPILEDFILTEROUTPUT_H
11 #define COMPILEDFILTEROUTPUT_H
13 #include "geometry_state_dialog.h"
15 #include <config.h>
16 #include <QList>
17 #include <QHash>
18 #include <QListWidgetItem>
20 #include <glib.h>
22 struct InterfaceFilter {
23 InterfaceFilter(QString intf, QString filt) : interface(intf), filter(filt) {}
25 QString interface;
26 QString filter;
29 namespace Ui {
30 class CompiledFilterOutput;
33 class CompiledFilterOutput : public GeometryStateDialog
35 Q_OBJECT
37 private:
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_;
44 #ifdef HAVE_LIBPCAP
45 void compileFilter();
46 #endif
48 public:
49 explicit CompiledFilterOutput(QWidget *parent = 0, QList<InterfaceFilter> &intList = *new QList<InterfaceFilter>());
51 ~CompiledFilterOutput();
53 private slots:
54 void on_interfaceList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
55 void copyFilterText();
58 #endif // COMPILEDFILTEROUTPUT_H