|
Wireshark 4.7.2
The Wireshark network protocol analyzer
|
FilterValidator for Wireshark display filters. More...
#include <display_filter_validator.h>
Public Member Functions | |
| DisplayFilterValidator (QObject *parent=nullptr) | |
| QValidator::State | validate (QString &input, int &pos) const override |
Validates input and updates the stashed Detail. | |
| Detail | lastDetail () const override |
| Returns the Detail produced by the most recent validate() call. | |
| Public Member Functions inherited from FilterValidator | |
| FilterValidator (QObject *parent=nullptr) | |
| QString | lastError () const |
| Short error message from the last validation (Detail::errMsg). | |
| QString | lastErrorFull (const QString &filter) const |
Full, location-annotated error message for filter. | |
| QString | deprecatedToken () const |
| The deprecated token from the last validation, or empty. | |
Additional Inherited Members | |
| Static Public Member Functions inherited from FilterValidator | |
| static QString | createSyntaxErrorMessageFull (const QString &filter, const QString &err_msg, qsizetype loc_start, size_t loc_length) |
| Builds a full, location-annotated error string. | |
FilterValidator for Wireshark display filters.
validate() compiles the expression with dfilter_compile_full() and maps the result to the FilterEdit syntax states:
Synchronous, like the capture validator: it runs on the host widget's debounce and reads lastDetail() immediately afterwards.
|
inlineoverridevirtual |
Returns the Detail produced by the most recent validate() call.
Implements FilterValidator.
|
overridevirtual |
Validates input and updates the stashed Detail.
| input | The text to validate; may be normalised in place. |
| pos | In/out cursor position. |
Implements FilterValidator.