diff options
Diffstat (limited to 'common/domain/applicationdomaintype.h')
-rw-r--r-- | common/domain/applicationdomaintype.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index db7fc8d..e4ed05b 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -328,6 +328,14 @@ struct SINK_EXPORT Entity : public ApplicationDomainType { | |||
328 | virtual ~Entity(); | 328 | virtual ~Entity(); |
329 | }; | 329 | }; |
330 | 330 | ||
331 | struct SINK_EXPORT Contact : public Entity { | ||
332 | SINK_ENTITY(Contact); | ||
333 | SINK_EXTRACTED_PROPERTY(QString, Uid, uid); | ||
334 | SINK_PROPERTY(QString, Fn, fn); | ||
335 | SINK_PROPERTY(QByteArrayList, Emails, emails); | ||
336 | SINK_BLOB_PROPERTY(Vcard, vcard); | ||
337 | }; | ||
338 | |||
331 | struct SINK_EXPORT Event : public Entity { | 339 | struct SINK_EXPORT Event : public Entity { |
332 | SINK_ENTITY(Event); | 340 | SINK_ENTITY(Event); |
333 | SINK_PROPERTY(QString, Uid, uid); | 341 | SINK_PROPERTY(QString, Uid, uid); |
@@ -459,6 +467,9 @@ template<class DomainType> | |||
459 | QByteArray SINK_EXPORT getTypeName(); | 467 | QByteArray SINK_EXPORT getTypeName(); |
460 | 468 | ||
461 | template<> | 469 | template<> |
470 | QByteArray SINK_EXPORT getTypeName<Contact>(); | ||
471 | |||
472 | template<> | ||
462 | QByteArray SINK_EXPORT getTypeName<Event>(); | 473 | QByteArray SINK_EXPORT getTypeName<Event>(); |
463 | 474 | ||
464 | template<> | 475 | template<> |
@@ -507,6 +518,7 @@ class SINK_EXPORT TypeImplementation; | |||
507 | * This macro can be used to instantiate templates for all domain types. | 518 | * This macro can be used to instantiate templates for all domain types. |
508 | */ | 519 | */ |
509 | #define SINK_REGISTER_TYPES() \ | 520 | #define SINK_REGISTER_TYPES() \ |
521 | REGISTER_TYPE(Sink::ApplicationDomain::Contact); \ | ||
510 | REGISTER_TYPE(Sink::ApplicationDomain::Event); \ | 522 | REGISTER_TYPE(Sink::ApplicationDomain::Event); \ |
511 | REGISTER_TYPE(Sink::ApplicationDomain::Mail); \ | 523 | REGISTER_TYPE(Sink::ApplicationDomain::Mail); \ |
512 | REGISTER_TYPE(Sink::ApplicationDomain::Folder); \ | 524 | REGISTER_TYPE(Sink::ApplicationDomain::Folder); \ |
@@ -521,6 +533,8 @@ Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType) | |||
521 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType::Ptr) | 533 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::ApplicationDomainType::Ptr) |
522 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity) | 534 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity) |
523 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity::Ptr) | 535 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Entity::Ptr) |
536 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Contact) | ||
537 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Contact::Ptr) | ||
524 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Event) | 538 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Event) |
525 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Event::Ptr) | 539 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Event::Ptr) |
526 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Mail) | 540 | Q_DECLARE_METATYPE(Sink::ApplicationDomain::Mail) |