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

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 "sievewidgetpageabstract.h"
0010 class QCheckBox;
0011 class QLineEdit;
0012 class QXmlStreamReader;
0013 
0014 namespace KSieveUi
0015 {
0016 class SieveHelpButton;
0017 class SieveForEveryPartWidget : public SieveWidgetPageAbstract
0018 {
0019     Q_OBJECT
0020 public:
0021     explicit SieveForEveryPartWidget(QWidget *parent = nullptr);
0022     ~SieveForEveryPartWidget() override;
0023 
0024     void generatedScript(QString &script, QStringList &required, bool inForEveryPartLoop) override;
0025     void loadScript(QXmlStreamReader &element, QString &error);
0026 
0027 private:
0028     void slotHelp();
0029     QCheckBox *mForLoop = nullptr;
0030     QLineEdit *mName = nullptr;
0031     SieveHelpButton *mHelpButton = nullptr;
0032 };
0033 }