summaryrefslogtreecommitdiffstats
path: root/common/domain/applicationdomaintype.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/applicationdomaintype.h')
-rw-r--r--common/domain/applicationdomaintype.h31
1 files changed, 4 insertions, 27 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h
index 7380c04..fee6344 100644
--- a/common/domain/applicationdomaintype.h
+++ b/common/domain/applicationdomaintype.h
@@ -262,27 +262,9 @@ inline bool operator==(const ApplicationDomainType& lhs, const ApplicationDomain
262 && lhs.resourceInstanceIdentifier() == rhs.resourceInstanceIdentifier(); 262 && lhs.resourceInstanceIdentifier() == rhs.resourceInstanceIdentifier();
263} 263}
264 264
265inline QDebug operator<< (QDebug d, const ApplicationDomainType &type) 265SINK_EXPORT QDebug operator<< (QDebug d, const ApplicationDomainType &type);
266{ 266SINK_EXPORT QDebug operator<< (QDebug d, const Reference &ref);
267 d << "ApplicationDomainType(\n"; 267SINK_EXPORT QDebug operator<< (QDebug d, const BLOB &blob);
268 for (const auto &property : type.mAdaptor->availableProperties()) {
269 d << " " << property << "\t" << type.getProperty(property) << "\n";
270 }
271 d << ")";
272 return d;
273}
274
275inline QDebug operator<< (QDebug d, const Reference &ref)
276{
277 d << ref.value;
278 return d;
279}
280
281inline QDebug operator<< (QDebug d, const BLOB &blob)
282{
283 d << blob.value << "external:" << blob.isExternal ;
284 return d;
285}
286 268
287 269
288struct SINK_EXPORT SinkAccount : public ApplicationDomainType { 270struct SINK_EXPORT SinkAccount : public ApplicationDomainType {
@@ -389,12 +371,7 @@ struct SINK_EXPORT Mail : public Entity {
389 SINK_INDEX_PROPERTY(QByteArray, ThreadId, threadId); 371 SINK_INDEX_PROPERTY(QByteArray, ThreadId, threadId);
390}; 372};
391 373
392inline QDebug operator<< (QDebug d, const Mail::Contact &c) 374SINK_EXPORT QDebug operator<< (QDebug d, const Mail::Contact &c);
393{
394 d << "Contact(" << c.name << ", " << c.emailAddress << ")";
395 return d;
396}
397
398 375
399/** 376/**
400 * The status of an account or resource. 377 * The status of an account or resource.