9#include "sieveglobalvariablewidget.h"
10#include "sievewidgetpageabstract.h"
21class SieveConditionWidgetLister;
22class SieveActionWidgetLister;
23class SieveEditorGraphicalModeWidget;
25class SieveScriptBlockWidget :
public SieveWidgetPageAbstract
29 enum MatchCondition { OrCondition, AndCondition, AllCondition };
31 explicit SieveScriptBlockWidget(SieveEditorGraphicalModeWidget *graphicalModeWidget,
QWidget *
parent =
nullptr);
32 ~SieveScriptBlockWidget()
override;
34 void setPageType(PageType type)
override;
36 void generatedScript(
QString &script,
QStringList &required,
bool inForEveryPartLoop)
override;
38 [[nodiscard]] MatchCondition matchCondition()
const;
42 void loadLocalVariable(
const SieveGlobalVariableActionWidget::VariableElement &var);
44 void addNewBlock(
QWidget *widget, KSieveUi::SieveWidgetPageAbstract::PageType type);
50 void updateCondition();
51 MatchCondition mMatchCondition = AndCondition;
53 SieveEditorGraphicalModeWidget *
const mSieveGraphicalModeWidget;
54 SieveConditionWidgetLister *mScriptConditionLister =
nullptr;
55 SieveActionWidgetLister *mScriptActionLister =
nullptr;
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:07:48 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.