Messagelib

messageviewercheckbeforedeletingparameters.h
1/*
2 SPDX-FileCopyrightText: 2021-2024 Laurent Montel <montel@kde.org>
3
4 SPDX-License-Identifier: LGPL-2.0-or-later
5*/
6
7#pragma once
8#include "messageviewer_export.h"
9#include <Akonadi/Item>
10namespace MessageViewer
11{
12class MessageViewerCheckBeforeDeletingParametersPrivate;
13/** @brief The MessageViewerCheckBeforeDeletingParameters class
14 * @author Laurent Montel <montel@kde.org>
15 */
17{
18public:
22
23 enum DeleteType {
24 Unknown = 0,
25 MoveToTrash = 1,
26 Delete = 2,
27 };
28
29 [[nodiscard]] MessageViewerCheckBeforeDeletingParameters::DeleteType deleteType() const;
30 void setDeleteType(MessageViewerCheckBeforeDeletingParameters::DeleteType type);
31
33 [[nodiscard]] bool operator==(const MessageViewerCheckBeforeDeletingParameters &other) const;
34
35 [[nodiscard]] Akonadi::Item::List items() const;
36 void setItems(const Akonadi::Item::List &items);
37
38 [[nodiscard]] bool isValid() const;
39
40private:
41 MessageViewerCheckBeforeDeletingParametersPrivate *const d;
42};
43}
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:05:10 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.