Messagelib

infopart.cpp
1 /*
2  SPDX-FileCopyrightText: 2009 Constantin Berzan <[email protected]>
3 
4  SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6 
7 #include "infopart.h"
8 
9 using namespace MessageComposer;
10 
11 class Q_DECL_HIDDEN InfoPart::Private
12 {
13 public:
14  Private()
15  {
16  }
17 
18  KMime::Headers::Base::List extraHeaders;
19  QStringList to;
20  QStringList cc;
21  QStringList bcc;
22  QStringList replyTo;
23  QString subject;
24  QString from;
25  QString fcc;
26  QString userAgent;
27  QString inReplyTo;
28  QString references;
29  int transportId = 0;
30  bool urgent = false;
31 };
32 
33 InfoPart::InfoPart(QObject *parent)
34  : MessagePart(parent)
35  , d(new Private)
36 {
37 }
38 
39 InfoPart::~InfoPart()
40 {
41  delete d;
42 }
43 
44 QString InfoPart::from() const
45 {
46  return d->from;
47 }
48 
49 void InfoPart::setFrom(const QString &from)
50 {
51  d->from = from;
52 }
53 
54 QStringList InfoPart::to() const
55 {
56  return d->to;
57 }
58 
59 void InfoPart::setTo(const QStringList &to)
60 {
61  d->to = to;
62 }
63 
64 QStringList InfoPart::cc() const
65 {
66  return d->cc;
67 }
68 
69 void InfoPart::setCc(const QStringList &cc)
70 {
71  d->cc = cc;
72 }
73 
74 QStringList InfoPart::bcc() const
75 {
76  return d->bcc;
77 }
78 
79 void InfoPart::setBcc(const QStringList &bcc)
80 {
81  d->bcc = bcc;
82 }
83 
84 QString InfoPart::subject() const
85 {
86  return d->subject;
87 }
88 
89 void InfoPart::setSubject(const QString &subject)
90 {
91  d->subject = subject;
92 }
93 
94 QStringList InfoPart::replyTo() const
95 {
96  return d->replyTo;
97 }
98 
99 void InfoPart::setReplyTo(const QStringList &replyTo)
100 {
101  d->replyTo = replyTo;
102 }
103 
104 int InfoPart::transportId() const
105 {
106  return d->transportId;
107 }
108 
109 void InfoPart::setTransportId(int tid)
110 {
111  d->transportId = tid;
112 }
113 
114 void InfoPart::setFcc(const QString &fcc)
115 {
116  d->fcc = fcc;
117 }
118 
119 QString InfoPart::fcc() const
120 {
121  return d->fcc;
122 }
123 
124 bool InfoPart::urgent() const
125 {
126  return d->urgent;
127 }
128 
129 void InfoPart::setUrgent(bool urgent)
130 {
131  d->urgent = urgent;
132 }
133 
134 QString InfoPart::inReplyTo() const
135 {
136  return d->inReplyTo;
137 }
138 
139 void InfoPart::setInReplyTo(const QString &inReplyTo)
140 {
141  d->inReplyTo = inReplyTo;
142 }
143 
144 QString InfoPart::references() const
145 {
146  return d->references;
147 }
148 
149 void InfoPart::setReferences(const QString &references)
150 {
151  d->references = references;
152 }
153 
154 void InfoPart::setExtraHeaders(const KMime::Headers::Base::List &headers)
155 {
156  d->extraHeaders = headers;
157 }
158 
159 KMime::Headers::Base::List InfoPart::extraHeaders() const
160 {
161  return d->extraHeaders;
162 }
163 
164 QString InfoPart::userAgent() const
165 {
166  return d->userAgent;
167 }
168 
169 void InfoPart::setUserAgent(const QString &userAgent)
170 {
171  d->userAgent = userAgent;
172 }
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 Tue Sep 22 2020 23:14:00 by doxygen 1.8.11 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.