Mailcommon

filteractionstatus.h
1 /*
2 
3  SPDX-FileCopyrightText: 2012-2022 Laurent Montel <[email protected]>
4 
5  SPDX-License-Identifier: GPL-2.0-or-later
6 */
7 #pragma once
8 
9 #include "filteractionwithstringlist.h"
10 #include <Akonadi/MessageStatus>
11 
12 namespace MailCommon
13 {
14 class FilterActionStatus : public FilterActionWithStringList
15 {
16  Q_OBJECT
17 public:
18  FilterActionStatus(const QString &name, const QString &label, QObject *parent = nullptr);
19  Q_REQUIRED_RESULT SearchRule::RequiredPart requiredPart() const override;
20  Q_REQUIRED_RESULT bool isEmpty() const override;
21  void argsFromString(const QString &argsStr) override;
22  Q_REQUIRED_RESULT QString argsAsString() const override;
23  Q_REQUIRED_RESULT QString displayString() const override;
24 
25  static QString realStatusString(const QString &statusStr);
26  Q_REQUIRED_RESULT QString informationAboutNotValidAction() const override;
27 
28  static const Akonadi::MessageStatus statuses[];
29  static const int StatiCount;
30 };
31 }
Q_OBJECTQ_OBJECT
RequiredPart
Possible required parts.
Definition: searchrule.h:68
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.