Libksieve

sieveactiondiscard.cpp
1 /*
2  SPDX-FileCopyrightText: 2013-2021 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 #include "sieveactiondiscard.h"
7 #include "editor/sieveeditorutil.h"
8 #include <KLocalizedString>
9 
10 using namespace KSieveUi;
11 SieveActionDiscard::SieveActionDiscard(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
12  : SieveAction(sieveGraphicalModeWidget, QStringLiteral("discard"), i18n("Discard"), parent)
13 {
14 }
15 
16 QString SieveActionDiscard::code(QWidget *) const
17 {
18  return QStringLiteral("discard;");
19 }
20 
21 QString SieveActionDiscard::help() const
22 {
23  return i18n("Discard is used to silently throw away the message.");
24 }
25 
26 QUrl SieveActionDiscard::href() const
27 {
28  return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
29 }
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 Fri Apr 16 2021 23:09:34 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.