summaryrefslogtreecommitdiffstats
path: root/common/synchronizer.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-28 09:26:50 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2017-03-28 09:26:50 +0200
commit547e5e29cbfc12474ab45768ff0d9342882b2633 (patch)
tree6728cb767b5c3a2ce450a6621815cc7fd8c0bd96 /common/synchronizer.h
parent8b69affc452cd828824ee77653f40d4c4f8d0658 (diff)
downloadsink-547e5e29cbfc12474ab45768ff0d9342882b2633.tar.gz
sink-547e5e29cbfc12474ab45768ff0d9342882b2633.zip
Track the entities that this request applies to directly in the
syncrequest That way we can do the notification emitting in the synchronizer and it keeps working even if the login already fails (so the synchronizing code would never be executed).
Diffstat (limited to 'common/synchronizer.h')
-rw-r--r--common/synchronizer.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/common/synchronizer.h b/common/synchronizer.h
index e3dbddc..751542d 100644
--- a/common/synchronizer.h
+++ b/common/synchronizer.h
@@ -134,7 +134,8 @@ protected:
134 : requestId(requestId_), 134 : requestId(requestId_),
135 requestType(Synchronization), 135 requestType(Synchronization),
136 options(o), 136 options(o),
137 query(q) 137 query(q),
138 applicableEntities(q.ids())
138 { 139 {
139 } 140 }
140 141
@@ -155,6 +156,7 @@ protected:
155 RequestType requestType; 156 RequestType requestType;
156 RequestOptions options = NoOptions; 157 RequestOptions options = NoOptions;
157 Sink::QueryBase query; 158 Sink::QueryBase query;
159 QByteArrayList applicableEntities;
158 }; 160 };
159 161
160 /** 162 /**