Messagelib

infopart.h
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #ifndef MESSAGECOMPOSER_INFOPART_H
8 #define MESSAGECOMPOSER_INFOPART_H
9 
10 #include "messagepart.h"
11 
12 #include <QStringList>
13 
14 #include <kmime/kmime_message.h>
15 #include <kmime/kmime_headers.h>
16 namespace MessageComposer {
20 class MESSAGECOMPOSER_EXPORT InfoPart : public MessageComposer::MessagePart
21 {
22  Q_OBJECT
23 
24 public:
25  explicit InfoPart(QObject *parent = nullptr);
26  ~InfoPart() override;
27 
28  Q_REQUIRED_RESULT QString from() const;
29  void setFrom(const QString &from);
30  Q_REQUIRED_RESULT QStringList to() const;
31  void setTo(const QStringList &to);
32  Q_REQUIRED_RESULT QStringList cc() const;
33  void setCc(const QStringList &cc);
34  Q_REQUIRED_RESULT QStringList bcc() const;
35  void setBcc(const QStringList &bcc);
36 
37  Q_REQUIRED_RESULT QStringList replyTo() const;
38  void setReplyTo(const QStringList &replyTo);
39 
40  Q_REQUIRED_RESULT QString subject() const;
41  void setSubject(const QString &subject);
42 
43  Q_REQUIRED_RESULT QString fcc() const;
44  void setFcc(const QString &fcc);
45 
46  Q_REQUIRED_RESULT QString userAgent() const;
47  void setUserAgent(const QString &userAgent);
48 
49  Q_REQUIRED_RESULT bool urgent() const;
50  void setUrgent(bool);
51 
52  Q_REQUIRED_RESULT QString inReplyTo() const;
53  void setInReplyTo(const QString &inReplyTo);
54 
55  Q_REQUIRED_RESULT QString references() const;
56  void setReferences(const QString &references);
57 
58  void setExtraHeaders(const KMime::Headers::Base::List &headers);
59  Q_REQUIRED_RESULT KMime::Headers::Base::List extraHeaders() const;
60 
61  Q_REQUIRED_RESULT int transportId() const;
62  void setTransportId(int tid);
63 
64 private:
65  class Private;
66  Private *const d;
67 };
68 } // namespace MessageComposer
69 
70 #endif // MESSAGECOMPOSER_INFOPART_H
Simple interface that both EncryptJob and SignEncryptJob implement so the composer can extract some e...
The InfoPart class.
Definition: infopart.h:20
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Wed Sep 23 2020 23:14:04 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.