equal
deleted
inserted
replaced
21 |
21 |
22 #include <QExplicitlySharedDataPointer> |
22 #include <QExplicitlySharedDataPointer> |
23 #include <QList> |
23 #include <QList> |
24 |
24 |
25 #include <nmapidef.h> |
25 #include <nmapidef.h> |
|
26 #include <nmapicommon.h> |
26 |
27 |
27 class QString; |
28 class QString; |
28 class QDateTime; |
29 class QDateTime; |
29 |
30 |
30 namespace EmailClientApi |
31 namespace EmailClientApi |
70 getter for id of parent folder |
71 getter for id of parent folder |
71 */ |
72 */ |
72 quint64 parentFolder() const; |
73 quint64 parentFolder() const; |
73 |
74 |
74 /*! |
75 /*! |
|
76 getter for id of mailbox |
|
77 */ |
|
78 quint64 mailboxId() const; |
|
79 |
|
80 /*! |
75 getter for subject |
81 getter for subject |
76 */ |
82 */ |
77 QString subject() const; |
83 QString subject() const; |
78 |
84 |
79 /*! |
85 /*! |
90 getter for cc recipients |
96 getter for cc recipients |
91 */ |
97 */ |
92 void getCcRecipients(QList<EmailClientApi::NmApiEmailAddress> &ccRecipients); |
98 void getCcRecipients(QList<EmailClientApi::NmApiEmailAddress> &ccRecipients); |
93 |
99 |
94 /*! |
100 /*! |
|
101 getter for bcc recipients |
|
102 */ |
|
103 void getBccRecipients(QList<EmailClientApi::NmApiEmailAddress> &bccRecipients); |
|
104 |
|
105 /*! |
95 getter for sent time |
106 getter for sent time |
96 */ |
107 */ |
97 QDateTime sentTime() const; |
108 QDateTime sentTime() const; |
98 |
109 |
99 /*! |
110 /*! |
140 getter for messages fetched size |
151 getter for messages fetched size |
141 */ |
152 */ |
142 quint64 fetchedSize() const; |
153 quint64 fetchedSize() const; |
143 |
154 |
144 /*! |
155 /*! |
|
156 getter for priority |
|
157 */ |
|
158 NmApiMessagePriority priority() const; |
|
159 |
|
160 /*! |
|
161 getter for flags |
|
162 */ |
|
163 NmApiMessageFlags flags() const; |
|
164 |
|
165 /*! |
|
166 getter for flag |
|
167 */ |
|
168 bool isFlagSet(const NmApiMessageFlag flag) const; |
|
169 |
|
170 /*! |
145 setter for id |
171 setter for id |
146 */ |
172 */ |
147 void setId(quint64 id); |
173 void setId(quint64 id); |
148 |
174 |
149 /*! |
175 /*! |
150 setter for parent folder |
176 setter for parent folder |
151 */ |
177 */ |
152 void setParentFolder(quint64 parentFolder); |
178 void setParentFolder(quint64 parentFolder); |
153 |
179 |
154 /*! |
180 /*! |
|
181 setter for mailbox id |
|
182 */ |
|
183 void setMailboxId(quint64 mailboxId); |
|
184 |
|
185 /*! |
155 setter for subject |
186 setter for subject |
156 */ |
187 */ |
157 void setSubject(const QString &subject); |
188 void setSubject(const QString &subject); |
158 |
189 |
159 /*! |
190 /*! |
170 setter for cc recipients |
201 setter for cc recipients |
171 */ |
202 */ |
172 void setCcRecipients(const QList<EmailClientApi::NmApiEmailAddress> &ccRecipients); |
203 void setCcRecipients(const QList<EmailClientApi::NmApiEmailAddress> &ccRecipients); |
173 |
204 |
174 /*! |
205 /*! |
|
206 setter for bcc recipients |
|
207 */ |
|
208 void setBccRecipients(const QList<EmailClientApi::NmApiEmailAddress> &bccRecipients); |
|
209 |
|
210 /*! |
175 setter for sent time |
211 setter for sent time |
176 */ |
212 */ |
177 void setSentTime(QDateTime sentTime); |
213 void setSentTime(QDateTime sentTime); |
178 |
214 |
179 /*! |
215 /*! |
200 setter for content type |
236 setter for content type |
201 */ |
237 */ |
202 void setContentType(const QString &contentType); |
238 void setContentType(const QString &contentType); |
203 |
239 |
204 /*! |
240 /*! |
205 getter for messages plain text |
241 setter for messages plain text |
206 */ |
242 */ |
207 void setPlainText(const QString &plainText); |
243 void setPlainText(const QString &plainText); |
208 |
244 |
209 /*! |
245 /*! |
210 getter for messages fetched size |
246 setter for messages fetched size |
211 */ |
247 */ |
212 void setTotalSize(quint64 totalSize); |
248 void setTotalSize(quint64 totalSize); |
213 |
249 |
214 /*! |
250 /*! |
215 getter for messages fetched size |
251 setter for messages fetched size |
216 */ |
252 */ |
217 void setFetchedSize(quint64 fetchedSize); |
253 void setFetchedSize(quint64 fetchedSize); |
|
254 |
|
255 /*! |
|
256 setter for priority |
|
257 */ |
|
258 void setPriority(NmApiMessagePriority forwarded); |
|
259 |
|
260 /*! |
|
261 setter for flags |
|
262 */ |
|
263 void setFlags(const NmApiMessageFlags flags, bool set); |
|
264 |
|
265 /*! |
|
266 setter for flag |
|
267 */ |
|
268 void setFlag(const NmApiMessageFlag flag, bool set); |
218 |
269 |
219 private: |
270 private: |
220 QExplicitlySharedDataPointer<NmApiMessageEnvelopePrivate> d; |
271 QExplicitlySharedDataPointer<NmApiMessageEnvelopePrivate> d; |
221 }; |
272 }; |
222 } |
273 } |