Mailcommon

filteractionwithcommand.h
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#pragma once
9
10#include "filteractionwithurl.h"
11#include "mailcommon_private_export.h"
12#include <QList>
13class QTemporaryFile;
14
15namespace MailCommon
16{
17class MAILCOMMON_TESTS_EXPORT FilterActionWithCommand : public FilterActionWithUrl
18{
19 Q_OBJECT
20
21public:
22 /**
23 * @copydoc FilterAction::FilterAction
24 */
25 FilterActionWithCommand(const QString &name, const QString &label, QObject *parent = nullptr);
26
27 /**
28 * @copydoc FilterAction::createParamWidget
29 */
30 QWidget *createParamWidget(QWidget *parent) const override;
31
32 /**
33 * @copydoc FilterAction::applyParamWidgetValue
34 */
35 void applyParamWidgetValue(QWidget *paramWidget) override;
36
37 /**
38 * @copydoc FilterAction::setParamWidgetValue
39 */
40 void setParamWidgetValue(QWidget *paramWidget) const override;
41
42 /**
43 * @copydoc FilterAction::clearParamWidget
44 */
45 void clearParamWidget(QWidget *paramWidget) const override;
46
47 /**
48 * Substitutes various placeholders for data from the message
49 * resp. for filenames containing that data. Currently, only %n is
50 * supported, where n in an integer >= 0. %n gets substituted for
51 * the name of a tempfile holding the n'th message part, with n=0
52 * meaning the body of the message.
53 */
54 [[nodiscard]] virtual QString substituteCommandLineArgsFor(const KMime::Message::Ptr &aMsg, QList<QTemporaryFile *> &aTempFileList) const;
55
56 [[nodiscard]] virtual ReturnCode genericProcess(ItemContext &context, bool filtering) const;
57};
58}
QSharedPointer< Message > Ptr
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2025 The KDE developers.
Generated on Fri Feb 21 2025 11:49:21 by doxygen 1.13.2 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.