Mailcommon

filteractionpipethrough.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 "filteractionpipethrough.h"
9 
10 #include <KLocalizedString>
11 
12 using namespace MailCommon;
13 
14 FilterAction *FilterActionPipeThrough::newAction()
15 {
16  return new FilterActionPipeThrough;
17 }
18 
19 FilterActionPipeThrough::FilterActionPipeThrough(QObject *parent)
20  : FilterActionWithCommand(QStringLiteral("filter app"), i18nc("pipe through with command", "Pipe Through"), parent)
21 {
22 }
23 
24 FilterAction::ReturnCode FilterActionPipeThrough::process(ItemContext &context, bool) const
25 {
26  return FilterActionWithCommand::genericProcess(context, true); // use output
27 }
28 
29 SearchRule::RequiredPart FilterActionPipeThrough::requiredPart() const
30 {
32 }
33 
34 QString FilterActionPipeThrough::informationAboutNotValidAction() const
35 {
36  return i18n("No action defined.");
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
QString i18nc(const char *context, const char *text, const TYPE &arg...)
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.