File indexing completed on 2024-11-10 04:50:03
0001 /* 0002 * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <taferner@kde.org> 0003 * 0004 * SPDX-License-Identifier: GPL-2.0-or-later 0005 * 0006 */ 0007 0008 #include "filteractionexec.h" 0009 0010 #include <KLocalizedString> 0011 0012 using namespace MailCommon; 0013 0014 FilterActionExec::FilterActionExec(QObject *parent) 0015 : FilterActionWithCommand(QStringLiteral("execute"), i18n("Execute Command"), parent) 0016 { 0017 } 0018 0019 FilterAction::ReturnCode FilterActionExec::process(ItemContext &context, bool) const 0020 { 0021 return FilterActionWithCommand::genericProcess(context, false); // ignore output 0022 } 0023 0024 SearchRule::RequiredPart FilterActionExec::requiredPart() const 0025 { 0026 return SearchRule::CompleteMessage; 0027 } 0028 0029 FilterAction *FilterActionExec::newAction() 0030 { 0031 return new FilterActionExec(); 0032 } 0033 0034 QString FilterActionExec::informationAboutNotValidAction() const 0035 { 0036 return i18n("Missing command."); 0037 } 0038 0039 #include "moc_filteractionexec.cpp"