summaryrefslogtreecommitdiffstats
path: root/common/domain
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-09 18:51:04 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-10-10 10:40:01 +0200
commit6f1d3437b3bdd3ccde1243ceddf19f0c0fb5afda (patch)
tree0c90df67eac827d5166158c1f7055d00cf39425d /common/domain
parent4f1ec5deaf3205e4d71dcb0ff35a29cfbb2c8ec1 (diff)
downloadsink-6f1d3437b3bdd3ccde1243ceddf19f0c0fb5afda.tar.gz
sink-6f1d3437b3bdd3ccde1243ceddf19f0c0fb5afda.zip
Modification and removal in results
Now we just need to ensure that equality is tested using the ApplicationDomainType::identifier
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;