File indexing completed on 2024-11-10 04:50:04
0001 /* 0002 0003 SPDX-FileCopyrightText: 2012-2024 Laurent Montel <montel@kde.org> 0004 0005 SPDX-License-Identifier: GPL-2.0-or-later 0006 */ 0007 #pragma once 0008 0009 #include "filteractionwithstringlist.h" 0010 #include <Akonadi/MessageStatus> 0011 0012 namespace MailCommon 0013 { 0014 class FilterActionStatus : public FilterActionWithStringList 0015 { 0016 Q_OBJECT 0017 public: 0018 FilterActionStatus(const QString &name, const QString &label, QObject *parent = nullptr); 0019 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override; 0020 [[nodiscard]] bool isEmpty() const override; 0021 void argsFromString(const QString &argsStr) override; 0022 [[nodiscard]] QString argsAsString() const override; 0023 [[nodiscard]] QString displayString() const override; 0024 0025 static QString realStatusString(const QString &statusStr); 0026 [[nodiscard]] QString informationAboutNotValidAction() const override; 0027 0028 static const Akonadi::MessageStatus statuses[]; 0029 static const int StatiCount; 0030 }; 0031 }