Mailcommon

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

KDE's Doxygen guidelines are available online.