Mailcommon

filteractionsettransport.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 "filteraction.h"
11
12namespace MailCommon
13{
14//=============================================================================
15// FilterActionSetTransport - set transport to...
16// Specify mail transport (smtp server) to be used when replying to a message
17//=============================================================================
18class FilterActionSetTransport : public FilterAction
19{
21public:
22 explicit FilterActionSetTransport(QObject *parent = nullptr);
23 ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
24 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
25 static FilterAction *newAction();
26 QWidget *createParamWidget(QWidget *parent) const override;
27 /**
28 * @copydoc FilterAction::applyParamWidgetValue
29 */
30 void applyParamWidgetValue(QWidget *paramWidget) override;
31
32 /**
33 * @copydoc FilterAction::setParamWidgetValue
34 */
35 void setParamWidgetValue(QWidget *paramWidget) const override;
36
37 /**
38 * @copydoc FilterAction::clearParamWidget
39 */
40 void clearParamWidget(QWidget *paramWidget) const override;
41
42 [[nodiscard]] bool argsFromStringInteractive(const QString &argsStr, const QString &filterName) override;
43
44 /**
45 * @copydoc FilterAction::argsFromString
46 */
47 void argsFromString(const QString &argsStr) override;
48 /**
49 * @copydoc FilterAction::isEmpty
50 */
51 [[nodiscard]] bool isEmpty() const override;
52 /**
53 * @copydoc FilterAction::argsAsString
54 */
55 [[nodiscard]] QString argsAsString() const override;
56
57 /**
58 * @copydoc FilterAction::displayString
59 */
60 [[nodiscard]] QString displayString() const override;
61 [[nodiscard]] QString informationAboutNotValidAction() const override;
62
63protected:
64 int mParameter;
65 mutable QString mTransportName;
66};
67}
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:68
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 Fri Nov 8 2024 12:07:03 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.