Mailcommon

filteractionunsetstatus.h
1 /*
2 
3  SPDX-FileCopyrightText: 2012-2022 Laurent Montel <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 
8 #pragma once
9 
10 #include "filteractionstatus.h"
11 namespace MailCommon
12 {
13 class FilterActionUnsetStatus : public FilterActionStatus
14 {
15  Q_OBJECT
16 public:
17  explicit FilterActionUnsetStatus(QObject *parent = nullptr);
18  Q_REQUIRED_RESULT ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
19  Q_REQUIRED_RESULT SearchRule::RequiredPart requiredPart() const override;
20 
21  static FilterAction *newAction();
22  Q_REQUIRED_RESULT QString sieveCode() const override;
23  Q_REQUIRED_RESULT QStringList sieveRequires() const override;
24  Q_REQUIRED_RESULT bool isEmpty() const override;
25  Q_REQUIRED_RESULT QString informationAboutNotValidAction() const override;
26 
27 private:
28  bool checkIsValid(int &index) const;
29 };
30 }
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 Sep 24 2022 03:58:15 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.