MailImporter

messagestatus.h
1 /*
2  SPDX-FileCopyrightText: 2017-2020 Laurent Montel <[email protected]>
3 
4  SPDX-License-Identifier: GPL-2.0-or-later
5 */
6 
7 #ifndef MESSAGESTATUS_H
8 #define MESSAGESTATUS_H
9 
10 #include "mailimporter_export.h"
11 #include <QtGlobal>
12 
13 namespace MailImporter {
18 class MAILIMPORTER_EXPORT MessageStatus
19 {
20 public:
21  MessageStatus();
22  ~MessageStatus();
23 
24  void setRead(bool state);
25  Q_REQUIRED_RESULT bool isRead() const;
26 
27  void setDeleted(bool state);
28  Q_REQUIRED_RESULT bool isDeleted() const;
29 
30  void setReplied(bool state);
31  Q_REQUIRED_RESULT bool isReplied() const;
32 
33  void setForwarded(bool state);
34  Q_REQUIRED_RESULT bool isForwarded() const;
35 private:
36  bool mRead = false;
37  bool mDeleted = false;
38  bool mReplied = false;
39  bool mForwarded = false;
40 };
41 }
42 #endif // MESSAGESTATUS_H
The MessageStatus class.
Definition: messagestatus.h:18
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Aug 12 2020 23:15:18 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.