Messagelib

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

KDE's Doxygen guidelines are available online.