File indexing completed on 2024-12-29 04:54:41

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 
0007 #pragma once
0008 
0009 #include "autocreatescripts/commonwidgets/sievecommonactioncondition.h"
0010 class QXmlStreamReader;
0011 namespace KSieveUi
0012 {
0013 class SieveEditorGraphicalModeWidget;
0014 class SieveCondition : public SieveCommonActionCondition
0015 {
0016     Q_OBJECT
0017 public:
0018     SieveCondition(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, const QString &name, const QString &label, QObject *parent = nullptr);
0019     ~SieveCondition() override;
0020 
0021     virtual void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, bool notCondition, QString &error);
0022 
0023     void unknownTagValue(const QString &tagValue, QString &error) override;
0024     void unknownTag(const QStringView &tag, QString &error) override;
0025     void tooManyArguments(const QStringView &tagName, int index, int maxValue, QString &error) override;
0026     void tooManyArguments(const QString &tagName, int index, int maxValue, QString &error);
0027     void serverDoesNotSupportFeatures(const QString &feature, QString &error) override;
0028 };
0029 }