summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-02 15:42:11 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2018-08-02 20:00:37 +0200
commitc94e6860fcb15d93c61ffa44dd34fd7a7c5bbb8c (patch)
treef8e83aa790159658540c19e65c5319472ee91c73 /common
parent96740b5c1364f3ef4a32110ea98dde6128e922fc (diff)
downloadsink-c94e6860fcb15d93c61ffa44dd34fd7a7c5bbb8c.tar.gz
sink-c94e6860fcb15d93c61ffa44dd34fd7a7c5bbb8c.zip
Email debug serializer
Diffstat (limited to 'common')
-rw-r--r--common/domain/applicationdomaintype.cpp6
-rw-r--r--common/domain/applicationdomaintype.h2
2 files changed, 8 insertions, 0 deletions
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 @@
26#include "utils.h" //for generateUid() 26#include "utils.h" //for generateUid()
27#include <QFile> 27#include <QFile>
28 28
29QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Contact::Email &e)
30{
31 d << "Email(" << e.email << ", " << e.type << ")";
32 return d;
33}
34
29QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Mail::Contact &c) 35QDebug Sink::ApplicationDomain::operator<< (QDebug d, const Sink::ApplicationDomain::Mail::Contact &c)
30{ 36{
31 d << "Contact(" << c.name << ", " << c.emailAddress << ")"; 37 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 {
389 SINK_REFERENCE_PROPERTY(Addressbook, Addressbook, addressbook); 389 SINK_REFERENCE_PROPERTY(Addressbook, Addressbook, addressbook);
390}; 390};
391 391
392SINK_EXPORT QDebug operator<< (QDebug d, const Contact::Email &);
393
392struct SINK_EXPORT Calendar : public Entity { 394struct SINK_EXPORT Calendar : public Entity {
393 SINK_ENTITY(Calendar, calendar); 395 SINK_ENTITY(Calendar, calendar);
394 SINK_PROPERTY(QString, Name, name); 396 SINK_PROPERTY(QString, Name, name);