diff options
Diffstat (limited to 'common/domain/applicationdomaintype.h')
-rw-r--r-- | common/domain/applicationdomaintype.h | 12 |
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 | ||
273 | struct SINK_EXPORT Mail : public Entity { | 273 | struct 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) | |||
417 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkAccount::Ptr) | 424 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::SinkAccount::Ptr) |
418 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity) | 425 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity) |
419 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity::Ptr) | 426 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Identity::Ptr) |
427 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Mail::Contact) | ||
420 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Error) | 428 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Error) |
421 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Progress) | 429 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Progress) |