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