summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/applicationdomaintype.h')
-rw-r--r--common/domain/applicationdomaintype.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h
index 39ce2b9..b377db9 100644
--- a/common/domain/applicationdomaintype.h
+++ b/common/domain/applicationdomaintype.h
@@ -271,10 +271,17 @@ struct SINK_EXPORT Folder : public Entity {
271}; 271};
272 272
273struct SINK_EXPORT Mail : public Entity { 273struct SINK_EXPORT Mail : public Entity {
274 struct SINK_EXPORT Contact {
275 QString name;
276 QString emailAddress;
277 };
278
274 SINK_ENTITY(Mail); 279 SINK_ENTITY(Mail);
275 SINK_PROPERTY(QString, Uid, uid); 280 SINK_PROPERTY(QString, Uid, uid);
276 SINK_EXTRACTED_PROPERTY(QString, Sender, sender); 281 SINK_PROPERTY(Contact, Sender, sender);
277 SINK_EXTRACTED_PROPERTY(QString, SenderName, senderName); 282 SINK_PROPERTY(QList<Contact>, To, to);
283 SINK_PROPERTY(QList<Contact>, Cc, cc);
284 SINK_PROPERTY(QList<Contact>, Bcc, bcc);
278 SINK_EXTRACTED_PROPERTY(QString, Subject, subject); 285 SINK_EXTRACTED_PROPERTY(QString, Subject, subject);
279 SINK_EXTRACTED_PROPERTY(QDateTime, Date, date); 286 SINK_EXTRACTED_PROPERTY(QDateTime, Date, date);
280 SINK_PROPERTY(bool, Unread, unread); 287 SINK_PROPERTY(bool, Unread, unread);
@@ -417,5 +424,6 @@ Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkAccount)
417Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkAccount::Ptr) 424Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkAccount::Ptr)
418Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity) 425Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity)
419Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity::Ptr) 426Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity::Ptr)
427Q_DECLARE_METATYPE(Sink::ApplicationDomain::Mail::Contact)
420Q_DECLARE_METATYPE(Sink::ApplicationDomain::Error) 428Q_DECLARE_METATYPE(Sink::ApplicationDomain::Error)
421Q_DECLARE_METATYPE(Sink::ApplicationDomain::Progress) 429Q_DECLARE_METATYPE(Sink::ApplicationDomain::Progress)