Libksieve

parser.h
1/* -*- c++ -*-
2 ksieve/parser.h
3
4 This file is part of KSieve,
5 the KDE internet mail/usenet news message filtering library.
6 SPDX-FileCopyrightText: 2002-2003 Marc Mutz <mutz@kde.org>
7
8 SPDX-License-Identifier: GPL-2.0-only
9*/
10
11#pragma once
12
13#include "ksieve_export.h"
14
15namespace KSieve
16{
17class ScriptBuilder;
18class Error;
19
20/** @short Parser for the Sieve grammar.
21 @author Marc Mutz <mutz@kde.org>
22**/
23class KSIEVE_EXPORT Parser
24{
25public:
26 Parser(const char *scursor, const char *const send, int options = 0);
27 ~Parser();
28
29 void setScriptBuilder(ScriptBuilder *builder);
30 ScriptBuilder *scriptBuilder() const;
31
32 bool parse();
33
34 const Error &error() const;
35
36 class Impl;
37
38private:
39 Impl *i = nullptr;
40
41private:
42 const Parser &operator=(const Parser &) = delete;
43 Parser(const Parser &) = delete;
44};
45} // namespace KSieve
Parser for the Sieve grammar.
Definition parser.h:24
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri May 3 2024 11:48:06 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.