File indexing completed on 2024-11-17 04:51:14
0001 /* 0002 SPDX-FileCopyrightText: 2017 Daniel Vrátil <dvratil@kde.org> 0003 0004 SPDX-License-Identifier: GPL-2.0-or-later 0005 */ 0006 0007 #pragma once 0008 0009 #include "searchpattern.h" 0010 0011 namespace MailCommon 0012 { 0013 class SearchRuleEncryption : public SearchRule 0014 { 0015 public: 0016 explicit SearchRuleEncryption(const QByteArray &field = {}, Function func = FuncEquals, const QString &contents = {}); 0017 ~SearchRuleEncryption() override; 0018 0019 [[nodiscard]] bool isEmpty() const override; 0020 [[nodiscard]] bool matches(const Akonadi::Item &item) const override; 0021 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override; 0022 }; 0023 }