Libksieve

sieveactiondiscard.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 "sieveactiondiscard.h"
7#include "editor/sieveeditorutil.h"
8#include <KLocalizedString>
9
10using namespace KSieveUi;
11SieveActionDiscard::SieveActionDiscard(SieveEditorGraphicalModeWidget *sieveGraphicalModeWidget, QObject *parent)
12 : SieveAction(sieveGraphicalModeWidget, QStringLiteral("discard"), i18n("Discard"), parent)
13{
14}
15
16QString SieveActionDiscard::code(QWidget *) const
17{
18 return QStringLiteral("discard;");
19}
20
21QString SieveActionDiscard::help() const
22{
23 return i18n("Discard is used to silently throw away the message.");
24}
25
26QUrl SieveActionDiscard::href() const
27{
28 return SieveEditorUtil::helpUrl(SieveEditorUtil::strToVariableName(name()));
29}
30
31#include "moc_sieveactiondiscard.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 Mon Nov 18 2024 12:14:30 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.