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 #pragma once 0007 0008 #include "sievecondition.h" 0009 0010 namespace KSieveUi 0011 { 0012 class SieveConditionConvert : public SieveCondition 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit SieveConditionConvert(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent = nullptr); 0017 [[nodiscard]] QString code(QWidget *) const override; 0018 [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override; 0019 [[nodiscard]] QStringList needRequires(QWidget *) const override; 0020 [[nodiscard]] bool needCheckIfServerHasCapability() const override; 0021 [[nodiscard]] QString serverNeedsCapability() const override; 0022 [[nodiscard]] QString help() const override; 0023 void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, bool notCondition, QString &error) override; 0024 }; 0025 }