Mailcommon

searchruleattachment.h
1/*
2 SPDX-FileCopyrightText: 2024 Laurent Montel <montel@kde.org
3
4 SPDX-License-Identifier: GPL-2.0-or-later
5*/
6
7#pragma once
8#include "mailcommon_private_export.h"
9#include "searchpattern.h"
10
11namespace MailCommon
12{
13class MAILCOMMON_TESTS_EXPORT SearchRuleAttachment : public SearchRule
14{
15public:
16 explicit SearchRuleAttachment(const QByteArray &field = {}, Function func = FuncEquals, const QString &contents = {});
17 ~SearchRuleAttachment() override;
18
19 [[nodiscard]] bool isEmpty() const override;
20 [[nodiscard]] bool matches(const Akonadi::Item &item) const override;
21 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
22 void addQueryTerms(Akonadi::SearchTerm &groupTerm, bool &emptyIsNotAnError) const override;
23};
24}
The filter dialog.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Oct 11 2024 12:18:39 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.