Mailcommon

filteractionforward.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 "filteractionwithaddress.h"
11
12namespace MailCommon
13{
14//=============================================================================
15// FilterActionForward - forward to
16// Forward message to another user, with a defined template
17//=============================================================================
18class FilterActionForward : public FilterActionWithAddress
19{
21public:
22 explicit FilterActionForward(QObject *parent = nullptr);
23 static FilterAction *newAction();
24 [[nodiscard]] ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
25 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
26 [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override;
27 void applyParamWidgetValue(QWidget *paramWidget) override;
28 void setParamWidgetValue(QWidget *paramWidget) const override;
29 void clearParamWidget(QWidget *paramWidget) const override;
30 void argsFromString(const QString &argsStr) override;
31 [[nodiscard]] QString argsAsString() const override;
32 [[nodiscard]] QString displayString() const override;
33 [[nodiscard]] bool argsFromStringInteractive(const QString &argsStr, const QString &filterName) override;
34
35 [[nodiscard]] QString informationAboutNotValidAction() const override;
36
37private:
38 mutable QString mTemplate;
39};
40}
FilterAction(const QString &name, const QString &label, QObject *parent=nullptr)
Creates a new filter action.
ReturnCode
Describes the possible return codes of filter processing:
RequiredPart
Possible required parts.
Definition searchrule.h:70
The filter dialog.
Q_OBJECTQ_OBJECT
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Sat Dec 21 2024 17:00:24 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.