diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/applicationdomaintype.h | 4 | ||||
-rw-r--r-- | common/domain/applicationdomaintype_p.h | 2 |
2 files changed, 4 insertions, 2 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index e4ed05b..8ebf6cb 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h | |||
@@ -330,10 +330,10 @@ struct SINK_EXPORT Entity : public ApplicationDomainType { | |||
330 | 330 | ||
331 | struct SINK_EXPORT Contact : public Entity { | 331 | struct SINK_EXPORT Contact : public Entity { |
332 | SINK_ENTITY(Contact); | 332 | SINK_ENTITY(Contact); |
333 | SINK_EXTRACTED_PROPERTY(QString, Uid, uid); | 333 | SINK_PROPERTY(QString, Uid, uid); |
334 | SINK_PROPERTY(QString, Fn, fn); | 334 | SINK_PROPERTY(QString, Fn, fn); |
335 | SINK_PROPERTY(QByteArrayList, Emails, emails); | 335 | SINK_PROPERTY(QByteArrayList, Emails, emails); |
336 | SINK_BLOB_PROPERTY(Vcard, vcard); | 336 | SINK_PROPERTY(QByteArray, Vcard, vcard); |
337 | }; | 337 | }; |
338 | 338 | ||
339 | struct SINK_EXPORT Event : public Entity { | 339 | struct SINK_EXPORT Event : public Entity { |
diff --git a/common/domain/applicationdomaintype_p.h b/common/domain/applicationdomaintype_p.h index aedf21f..4b06864 100644 --- a/common/domain/applicationdomaintype_p.h +++ b/common/domain/applicationdomaintype_p.h | |||
@@ -38,6 +38,8 @@ struct TypeHelper { | |||
38 | return Func<Sink::ApplicationDomain::Mail>{}(std::forward<Args...>(args...)); | 38 | return Func<Sink::ApplicationDomain::Mail>{}(std::forward<Args...>(args...)); |
39 | } else if (type == Sink::ApplicationDomain::getTypeName<Sink::ApplicationDomain::Event>()) { | 39 | } else if (type == Sink::ApplicationDomain::getTypeName<Sink::ApplicationDomain::Event>()) { |
40 | return Func<Sink::ApplicationDomain::Event>{}(std::forward<Args...>(args...)); | 40 | return Func<Sink::ApplicationDomain::Event>{}(std::forward<Args...>(args...)); |
41 | } else if (type == Sink::ApplicationDomain::getTypeName<Sink::ApplicationDomain::Contact>()) { | ||
42 | return Func<Sink::ApplicationDomain::Contact>{}(std::forward<Args...>(args...)); | ||
41 | } else { | 43 | } else { |
42 | Q_ASSERT(false); | 44 | Q_ASSERT(false); |
43 | } | 45 | } |