Mailcommon

searchruleencryption.h
1 /*
2  SPDX-FileCopyrightText: 2017 Daniel Vrátil <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #pragma once
8 
9 #include "searchpattern.h"
10 
11 namespace MailCommon
12 {
13 class SearchRuleEncryption : public SearchRule
14 {
15 public:
16  explicit SearchRuleEncryption(const QByteArray &field = {}, Function func = FuncEquals, const QString &contents = {});
17  ~SearchRuleEncryption() override;
18 
19  Q_REQUIRED_RESULT bool isEmpty() const override;
20  Q_REQUIRED_RESULT bool matches(const Akonadi::Item &item) const override;
21  Q_REQUIRED_RESULT SearchRule::RequiredPart requiredPart() const override;
22 };
23 }
QString contents() const
Returns the contents of the rule.
Definition: searchrule.cpp:508
RequiredPart
Possible required parts.
Definition: searchrule.h:68
Function
Describes operators for comparison of field and contents.
Definition: searchrule.h:40
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2023 The KDE developers.
Generated on Fri Sep 22 2023 03:58:42 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.