Libksieve

sieveactionstop.cpp
1/*
2 SPDX-FileCopyrightText: 2013-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6#include "sieveactionstop.h"
7#include "editor/sieveeditorutil.h"
8
9#include <KLocalizedString>
10
11using namespace KSieveUi;
12
13SieveActionStop::SieveActionStop(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
14 : SieveAction(sieveGraphicalModeWidget, QStringLiteral("stop"), i18n("Stop"), parent)
15{
16}
17
18QString SieveActionStop::code(QWidget *) const
19{
20 return QStringLiteral("stop;");
21}
22
23QString SieveActionStop::help() const
24{
25 return i18n("The \"stop\" action ends all processing. If the implicit keep has not been cancelled, then it is taken.");
26}
27
28QUrl SieveActionStop::href() const
29{
30 return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
31}
32
33#include "moc_sieveactionstop.cpp"
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Tue Mar 26 2024 11:17:19 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.