Wireshark 4.7.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
compiled_filter_output.h
Go to the documentation of this file.
1
10#ifndef COMPILEDFILTEROUTPUT_H
11#define COMPILEDFILTEROUTPUT_H
12
14
15#include <config.h>
16
18
19#include <QList>
20#include <QHash>
21#include <QListWidgetItem>
22
24 InterfaceFilter(QString dev_name, interface_type type, QString disp_name, QString filt, int link = -1) : device_name(dev_name), iftype(type), display_name(disp_name), filter(filt), linktype(link) {}
25 InterfaceFilter(QString dev_name, interface_type type, QString disp_name, QString filt, QVariant link) : device_name(dev_name), iftype(type), display_name(disp_name), filter(filt)
26 {
27 bool ok;
28 linktype = link.toInt(&ok);
29 if (!ok) {
30 linktype = -1;
31 }
32 }
33
34 QString device_name;
35 interface_type iftype;
36 QString display_name;
37 QString filter;
38 int linktype;
39};
40
41namespace Ui {
43}
44
46{
47 Q_OBJECT
48
49private:
50 QList<InterfaceFilter> intList_;
51 Ui::CompiledFilterOutput *ui;
52 QHash<QString, QString> compile_results;
53 QPushButton *copy_bt_;
54 void setTitle();
55#ifdef HAVE_LIBPCAP
56 bool compileFilter(const InterfaceFilter &filter);
57 void compileFilters();
58#endif
59
60public:
61 explicit CompiledFilterOutput(QWidget *parent = 0, QList<InterfaceFilter> &intList = *new QList<InterfaceFilter>());
62
64
65private slots:
66 void on_interfaceList_currentItemChanged(QListWidgetItem *current, QListWidgetItem *previous);
67 void copyFilterText();
68};
69
70#endif // COMPILEDFILTEROUTPUT_H
Definition compiled_filter_output.h:46
Definition geometry_state_dialog.h:17
Definition compiled_filter_output.h:23