Attica

message.h
1 /*
2  This file is part of KDE.
3 
4  SPDX-FileCopyrightText: 2008 Cornelius Schumacher <[email protected]>
5 
6  SPDX-License-Identifier: LGPL-2.1-only OR LGPL-3.0-only OR LicenseRef-KDE-Accepted-LGPL
7 */
8 
9 #ifndef ATTICA_MESSAGE_H
10 #define ATTICA_MESSAGE_H
11 
12 #include <QDateTime>
13 #include <QList>
14 #include <QSharedDataPointer>
15 
16 #include "attica_export.h"
17 
18 namespace Attica
19 {
20 
21 class ATTICA_EXPORT Message
22 {
23 public:
24  typedef QList<Message> List;
25  class Parser;
26 
27  enum Status { Unread = 0, Read = 1, Answered = 2};
28 
29  Message();
30  Message(const Message &other);
31  Message &operator=(const Message &other);
32  ~Message();
33 
34  void setId(const QString &);
35  QString id() const;
36 
37  void setFrom(const QString &);
38  QString from() const;
39 
40  void setTo(const QString &);
41  QString to() const;
42 
43  void setSent(const QDateTime &);
44  QDateTime sent() const;
45 
46  void setStatus(Status);
47  Status status() const;
48 
49  void setSubject(const QString &);
50  QString subject() const;
51 
52  void setBody(const QString &);
53  QString body() const;
54 
55  bool isValid() const;
56 
57 private:
58  class Private;
60 };
61 
62 }
63 
64 #endif
AKONADI_MIME_EXPORT const char Answered[]
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Mon Jan 25 2021 23:06:24 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.