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