summaryrefslogtreecommitdiffstats
path: root/common/domain
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain')
-rw-r--r--common/domain/applicationdomaintype.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/domain/applicationdomaintype.h b/common/domain/applicationdomaintype.h
index e0a6de0..b583a6e 100644
--- a/common/domain/applicationdomaintype.h
+++ b/common/domain/applicationdomaintype.h
@@ -97,6 +97,15 @@ private:
97 qint64 mRevision; 97 qint64 mRevision;
98}; 98};
99 99
100/*
101 * Should this be specific to the synclistresultset, in other cases we may want to take revision and resource into account.
102 */
103inline bool operator==(const ApplicationDomainType& lhs, const ApplicationDomainType& rhs)
104{
105 return lhs.identifier() == rhs.identifier()
106 && lhs.resourceInstanceIdentifier() == rhs.resourceInstanceIdentifier();
107}
108
100struct Event : public ApplicationDomainType { 109struct Event : public ApplicationDomainType {
101 typedef QSharedPointer<Event> Ptr; 110 typedef QSharedPointer<Event> Ptr;
102 using ApplicationDomainType::ApplicationDomainType; 111 using ApplicationDomainType::ApplicationDomainType;