Wireshark  2.9.0-477-g68ec514b
The Wireshark network protocol analyzer
capture_filter_syntax_worker.h
1 /* capture_filter_syntax_worker.h
2  *
3  * Wireshark - Network traffic analyzer
4  * By Gerald Combs <gerald@wireshark.org>
5  * Copyright 1998 Gerald Combs
6  *
7  * SPDX-License-Identifier: GPL-2.0-or-later
8  */
9 
10 #ifndef CAPTURE_FILTER_SYNTAX_WORKER_H
11 #define CAPTURE_FILTER_SYNTAX_WORKER_H
12 
13 #include <QMutex>
14 #include <QObject>
15 #include <QWaitCondition>
16 
17 class CaptureFilterSyntaxWorker : public QObject
18 {
19  Q_OBJECT
20 
21 public:
22  CaptureFilterSyntaxWorker(QObject *parent = 0) : QObject(parent) {}
23  void checkFilter(const QString &filter);
24 
25 public slots:
26  void start();
27 
28 private:
29  QMutex data_mtx_;
30  QWaitCondition data_cond_;
31  QString filter_text_;
32 
33 signals:
34  void syntaxResult(QString filter, int state, QString err_msg);
35 };
36 
37 #endif // CAPTURE_FILTER_SYNTAX_WORKER_H
38 
39 /*
40  * Editor modelines
41  *
42  * Local Variables:
43  * c-basic-offset: 4
44  * tab-width: 8
45  * indent-tabs-mode: nil
46  * End:
47  *
48  * ex: set shiftwidth=4 tabstop=8 expandtab:
49  * :indentSize=4:tabSize=8:noTabs=true:
50  */
Definition: capture_filter_syntax_worker.h:17