Mailcommon

filteractioncopy.h
1/*
2 * SPDX-FileCopyrightText: 1996-1998 Stefan Taferner <taferner@kde.org>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 *
6 */
7
8#pragma once
9
10#include "filteractionwithfolder.h"
11
12class KJob;
13
14namespace MailCommon
15{
16//=============================================================================
17// FilterActionCopy - copy into folder
18// Copy message into another mail folder
19//=============================================================================
20class FilterActionCopy : public FilterActionWithFolder
21{
23public:
24 explicit FilterActionCopy(QObject *parent = nullptr);
25 [[nodiscard]] ReturnCode process(ItemContext &context, bool applyOnOutbound) const override;
26 [[nodiscard]] SearchRule::RequiredPart requiredPart() const override;
27 static FilterAction *newAction();
28 [[nodiscard]] QString sieveCode() const override;
29 [[nodiscard]] QStringList sieveRequires() const override;
30 [[nodiscard]] QString informationAboutNotValidAction() const override;
31
32protected Q_SLOTS:
33 void jobFinished(KJob *job);
34};
35}
FilterAction(const QString &name, const QString &label, QObject *parent=nullptr)
Creates a new filter action.
ReturnCode
Describes the possible return codes of filter processing:
RequiredPart
Possible required parts.
Definition searchrule.h:68
The filter dialog.
Q_OBJECTQ_OBJECT
Q_SLOTSQ_SLOTS
QObject * parent() const const
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:59:39 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.