Libksieve

sievewidgetpageabstract.h
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8
9#include <QWidget>
10
11namespace KSieveUi
12{
13class SieveWidgetPageAbstract : public QWidget
14{
16public:
17 enum PageType : uint8_t {
18 BlockIf = 0,
19 BlockElsIf = 1,
20 BlockElse = 2,
21 Include = 3,
22 ForEveryPart = 4,
23 GlobalVariable = 5
24 };
25
26 explicit SieveWidgetPageAbstract(QWidget *parent = nullptr);
27 ~SieveWidgetPageAbstract() override;
28
29 virtual void generatedScript(QString &script, QStringList &required, bool inForEveryPartLoop) = 0;
30
31 virtual void setPageType(PageType type);
32 [[nodiscard]] PageType pageType() const;
33
35 void valueChanged();
36
37private:
38 PageType mType = BlockIf;
39};
40}
Q_OBJECTQ_OBJECT
Q_SIGNALSQ_SIGNALS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 16:57:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.