Libksieve

sieveactionstop.cpp
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
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 
11 using namespace KSieveUi;
12 
13 SieveActionStop::SieveActionStop(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
14  : SieveAction(sieveGraphicalModeWidget, QStringLiteral("stop"), i18n("Stop"), parent)
15 {
16 }
17 
18 QString SieveActionStop::code(QWidget *) const
19 {
20  return QStringLiteral("stop;");
21 }
22 
23 QString 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 
28 QUrl SieveActionStop::href() const
29 {
30  return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
31 }
QString name(const QVariant &location)
QString i18n(const char *text, const TYPE &arg...)
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Apr 11 2021 23:09:36 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.