File indexing completed on 2024-11-10 04:50:04

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 #pragma once
0009 
0010 #include "filteractionwithuoid.h"
0011 
0012 namespace MailCommon
0013 {
0014 //=============================================================================
0015 // FilterActionSetIdentity - set identity to
0016 // Specify Identity to be used when replying to a message
0017 //=============================================================================
0018 class FilterActionSetIdentity : public FilterActionWithUOID
0019 {
0020     Q_OBJECT
0021 public:
0022     explicit FilterActionSetIdentity(QObject *parent = nullptr);
0023     [[nodiscard]] ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
0024     [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
0025     [[nodiscard]] bool argsFromStringInteractive(const QString &argsStr, const QString &filterName) override;
0026     static FilterAction *newAction();
0027 
0028     [[nodiscard]] QWidget *createParamWidget(QWidget *parent) const override;
0029     void applyParamWidgetValue(QWidget *parent) override;
0030     void setParamWidgetValue(QWidget *parent) const override;
0031     void clearParamWidget(QWidget *param) const override;
0032 };
0033 }