File indexing completed on 2025-02-16 04:55:57

0001 /*
0002    SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
0003 
0004    SPDX-License-Identifier: LGPL-2.0-or-later
0005 */
0006 #include "sieveactionstop.h"
0007 #include "editor/sieveeditorutil.h"
0008 
0009 #include <KLocalizedString>
0010 
0011 using namespace KSieveUi;
0012 
0013 SieveActionStop::SieveActionStop(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
0014     : SieveAction(sieveGraphicalModeWidget, QStringLiteral("stop"), i18n("Stop"), parent)
0015 {
0016 }
0017 
0018 QString SieveActionStop::code(QWidget *) const
0019 {
0020     return QStringLiteral("stop;");
0021 }
0022 
0023 QString SieveActionStop::help() const
0024 {
0025     return i18n("The \"stop\" action ends all processing.  If the implicit keep has not been cancelled, then it is taken.");
0026 }
0027 
0028 QUrl SieveActionStop::href() const
0029 {
0030     return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
0031 }
0032 
0033 #include "moc_sieveactionstop.cpp"