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

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