From 2486b417dbfb4daf0741f7b870e3d276fac87729 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20Knau=C3=9F?= Date: Mon, 16 Jan 2017 17:36:47 +0100 Subject: make contacts suitable for applications like sinksh --- common/domain/applicationdomaintype.h | 4 ++-- common/domain/applicationdomaintype_p.h | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) (limited to 'common/domain') 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 { struct SINK_EXPORT Contact : public Entity { SINK_ENTITY(Contact); - SINK_EXTRACTED_PROPERTY(QString, Uid, uid); + SINK_PROPERTY(QString, Uid, uid); SINK_PROPERTY(QString, Fn, fn); SINK_PROPERTY(QByteArrayList, Emails, emails); - SINK_BLOB_PROPERTY(Vcard, vcard); + SINK_PROPERTY(QByteArray, Vcard, vcard); }; 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 { return Func{}(std::forward(args...)); } else if (type == Sink::ApplicationDomain::getTypeName()) { return Func{}(std::forward(args...)); + } else if (type == Sink::ApplicationDomain::getTypeName()) { + return Func{}(std::forward(args...)); } else { Q_ASSERT(false); } -- cgit v1.2.3