From c94e6860fcb15d93c61ffa44dd34fd7a7c5bbb8c Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 2 Aug 2018 15:42:11 +0200 Subject: Email debug serializer --- common/domain/applicationdomaintype.cpp | 6 ++++++ common/domain/applicationdomaintype.h | 2 ++ 2 files changed, 8 insertions(+) (limited to 'common/domain') diff --git a/common/domain/applicationdomaintype.cpp b/common/domain/applicationdomaintype.cpp index b0be729..9bc3d08 100644 --- a/common/domain/applicationdomaintype.cpp +++ b/common/domain/applicationdomaintype.cpp @@ -26,6 +26,12 @@ #include "utils.h" //for generateUid() #include +QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Contact::Email &e) +{ + d << "Email(" << e.email << ", " << e.type << ")"; + return d; +} + QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Mail::Contact &c) { d << "Contact(" << c.name << ", " << c.emailAddress << ")"; diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h index deaa917..802efd8 100644 --- a/common/domain/applicationdomaintype.h +++ b/common/domain/applicationdomaintype.h @@ -389,6 +389,8 @@ struct SINK_EXPORT Contact : public Entity { SINK_REFERENCE_PROPERTY(Addressbook, Addressbook, addressbook); }; +SINK_EXPORT QDebug operator<< (QDebug d, const Contact::Email &); + struct SINK_EXPORT Calendar : public Entity { SINK_ENTITY(Calendar, calendar); SINK_PROPERTY(QString, Name, name); -- cgit v1.2.3