replace SPDX identifier GPL-2.0+ with GPL-2.0-or-later.
[metze/wireshark/wip.git] / ui / qt / 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 #ifndef CAPTURE_FILTER_SYNTAX_WORKER_H
10 #define CAPTURE_FILTER_SYNTAX_WORKER_H
11
12 #include <QMutex>
13 #include <QObject>
14 #include <QWaitCondition>
15
16 class CaptureFilterSyntaxWorker : public QObject
17 {
18     Q_OBJECT
19
20 public:
21     CaptureFilterSyntaxWorker(QObject *parent = 0) : QObject(parent) {}
22     void checkFilter(const QString &filter);
23
24 public slots:
25     void start();
26
27 private:
28     QMutex data_mtx_;
29     QWaitCondition data_cond_;
30     QString filter_text_;
31
32 signals:
33     void syntaxResult(QString filter, int state, QString err_msg);
34 };
35
36 #endif // CAPTURE_FILTER_SYNTAX_WORKER_H
37
38 /*
39  * Editor modelines
40  *
41  * Local Variables:
42  * c-basic-offset: 4
43  * tab-width: 8
44  * indent-tabs-mode: nil
45  * End:
46  *
47  * ex: set shiftwidth=4 tabstop=8 expandtab:
48  * :indentSize=4:tabSize=8:noTabs=true:
49  */