Mailcommon

filteractionexec.cpp
1/*
2 * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <taferner@kde.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 *
6 */
7
8#include "filteractionexec.h"
9
10#include <KLocalizedString>
11
12using namespace MailCommon;
13
14FilterActionExec::FilterActionExec(QObject *parent)
15 : FilterActionWithCommand(QStringLiteral("execute"), i18n("Execute Command"), parent)
16{
17}
18
19FilterAction::ReturnCode FilterActionExec::process(ItemContext &context, bool) const
20{
21 return FilterActionWithCommand::genericProcess(context, false); // ignore output
22}
23
24SearchRule::RequiredPart FilterActionExec::requiredPart() const
25{
27}
28
29FilterAction *FilterActionExec::newAction()
30{
31 return new FilterActionExec();
32}
33
34QString FilterActionExec::informationAboutNotValidAction() const
35{
36 return i18n("Missing command.");
37}
38
39#include "moc_filteractionexec.cpp"
Abstract base class for mail filter actions.
ReturnCode
Describes the possible return codes of filter processing:
A helper class for the filtering process.
Definition itemcontext.h:27
RequiredPart
Possible required parts.
Definition searchrule.h:68
@ CompleteMessage
Whole message.
Definition searchrule.h:71
QString i18n(const char *text, const TYPE &arg...)
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:12:19 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.