Mailcommon

attachmentwidgethandler.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
9#include "interfaces/rulewidgethandler.h"
10
11namespace MailCommon
12{
13class AttachmentWidgetHandler : public RuleWidgetHandler
14{
15public:
16 AttachmentWidgetHandler();
17 ~AttachmentWidgetHandler() override;
18
19 [[nodiscard]] QWidget *createFunctionWidget(int number, QStackedWidget *functionStack, const QObject *receiver, bool isBalooSearch) const override;
20 [[nodiscard]] QWidget *createValueWidget(int number, QStackedWidget *valueStack, const QObject *receiver) const override;
21 [[nodiscard]] MailCommon::SearchRule::Function function(const QByteArray &field, const QStackedWidget *functionStack) const override;
22 bool handlesField(const QByteArray &field) const override;
23 [[nodiscard]] QString prettyValue(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const override;
24 bool setRule(QStackedWidget *functionStack, QStackedWidget *valueStack, const MailCommon::SearchRule::Ptr rule, bool isBalooSearch) const override;
25 void reset(QStackedWidget *functionStack, QStackedWidget *valueStack) const override;
26 bool update(const QByteArray &field, QStackedWidget *functionStack, QStackedWidget *valueStack) const override;
27 [[nodiscard]] QString value(const QByteArray &field, const QStackedWidget *functionStack, const QStackedWidget *valueStack) const override;
28};
29}
std::shared_ptr< SearchRule > Ptr
Defines a pointer to a search rule.
Definition searchrule.h:29
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-2024 The KDE developers.
Generated on Mon Nov 18 2024 12:09:01 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.