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 SieveConditionAddress : public SieveCondition
0013 {
0014     Q_OBJECT
0015 public:
0016     explicit SieveConditionAddress(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent = nullptr);
0017 
0018     [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override;
0019 
0020     [[nodiscard]] QString code(QWidget *w) const override;
0021 
0022     [[nodiscard]] QStringList needRequires(QWidget *parent) const override;
0023 
0024     [[nodiscard]] QString help() const override;
0025     void setParamWidgetValue(QXmlStreamReader &element, QWidget *parent, bool notCondition, QString &error) override;
0026     [[nodiscard]] QUrl href() const override;
0027 };
0028 }