Libksieve

sievecondition.h
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "autocreatescripts/commonwidgets/sievecommonactioncondition.h"
10 #include <QObject>
11 class QXmlStreamReader;
12 namespace KSieveUi
13 {
14 class SieveEditorGraphicalModeWidget;
15 class SieveCondition : public SieveCommonActionCondition
16 {
17  Q_OBJECT
18 public:
19  SieveCondition(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, const QString &name, const QString &label, QObject *parent = nullptr);
20  ~SieveCondition() override;
21 
22  virtual void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, bool notCondition, QString &error);
23 
24  void unknownTag(const QStringRef &tag, QString &error) override;
25  void unknownTagValue(const QString &tagValue, QString &error) override;
26  void tooManyArguments(const QStringRef &tagName, int index, int maxValue, QString &error) override;
27  void tooManyArguments(const QString &tagName, int index, int maxValue, QString &error);
28  void serverDoesNotSupportFeatures(const QString &feature, QString &error) override;
29 };
30 }
31 
Q_OBJECTQ_OBJECT
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sat Apr 17 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.