summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-31 18:45:59 +0100
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-10-31 18:45:59 +0100
commit1d245e28c9b1b18a45097a72bc4ff166c59c37ba (patch)
tree46853e4df7d5b60435088b8503966567639b51b6 /common/domain/applicationdomaintype.h
parenteed2f992300a82debdeda3ece5acf5c05954bbf7 (diff)
downloadsink-1d245e28c9b1b18a45097a72bc4ff166c59c37ba.tar.gz
sink-1d245e28c9b1b18a45097a72bc4ff166c59c37ba.zip
Mail::Contact mapping
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)