Mailcommon

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

KDE's Doxygen guidelines are available online.