File indexing completed on 2024-12-29 04:54:42
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 SieveConditionExists : public SieveCondition 0013 { 0014 Q_OBJECT 0015 public: 0016 explicit SieveConditionExists(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent = nullptr); 0017 [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override; 0018 0019 [[nodiscard]] QString code(QWidget *parent) const override; 0020 [[nodiscard]] QString help() const override; 0021 void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, bool notCondition, QString &error) override; 0022 [[nodiscard]] QUrl href() const override; 0023 }; 0024 }