Mailcommon

filteractionsetidentity.h
1 /*
2  * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <[email protected]>
3  *
4  * SPDX-License-Identifier: GPL-2.0-or-later
5  *
6  */
7 
8 #pragma once
9 
10 #include "filteractionwithuoid.h"
11 
12 namespace MailCommon
13 {
14 //=============================================================================
15 // FilterActionSetIdentity - set identity to
16 // Specify Identity to be used when replying to a message
17 //=============================================================================
18 class FilterActionSetIdentity : public FilterActionWithUOID
19 {
20  Q_OBJECT
21 public:
22  explicit FilterActionSetIdentity(QObject *parent = nullptr);
23  Q_REQUIRED_RESULT ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
24  Q_REQUIRED_RESULT SearchRule::RequiredPart requiredPart() const override;
25  Q_REQUIRED_RESULT bool argsFromStringInteractive(const QString &argsStr, const QString &filterName) override;
26  static FilterAction *newAction();
27 
28  Q_REQUIRED_RESULT QWidget *createParamWidget(QWidget *parent) const override;
29  void applyParamWidgetValue(QWidget *parent) override;
30  void setParamWidgetValue(QWidget *parent) const override;
31  void clearParamWidget(QWidget *param) const override;
32 };
33 }
Q_OBJECTQ_OBJECT
RequiredPart
Possible required parts.
Definition: searchrule.h:68
ReturnCode
Describes the possible return codes of filter processing:
Definition: filteraction.h:45
FilterAction(const QString &name, const QString &label, QObject *parent=nullptr)
Creates a new filter action.
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sat Oct 1 2022 04:00:52 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.