diff options
author | Minijackson <minijackson@riseup.net> | 2018-08-21 12:03:40 +0200 |
---|---|---|
committer | Minijackson <minijackson@riseup.net> | 2018-08-21 12:03:40 +0200 |
commit | 6ef0a29d8e468de50c9dcf260db45957d028a083 (patch) | |
tree | 3c4f90c992595cb440e7a8a007d2f643c595777a /common/domain/typeimplementations.cpp | |
parent | 91a86f8664f4c8ddec6546bd1faeb793b8cd70e3 (diff) | |
download | sink-6ef0a29d8e468de50c9dcf260db45957d028a083.tar.gz sink-6ef0a29d8e468de50c9dcf260db45957d028a083.zip |
Separate UIDs and revisions
Diffstat (limited to 'common/domain/typeimplementations.cpp')
-rw-r--r-- | common/domain/typeimplementations.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/common/domain/typeimplementations.cpp b/common/domain/typeimplementations.cpp index bb3f455..d6b5b76 100644 --- a/common/domain/typeimplementations.cpp +++ b/common/domain/typeimplementations.cpp | |||
@@ -86,7 +86,7 @@ void TypeImplementation<Mail>::configure(TypeIndex &index) | |||
86 | 86 | ||
87 | QMap<QByteArray, int> TypeImplementation<Mail>::typeDatabases() | 87 | QMap<QByteArray, int> TypeImplementation<Mail>::typeDatabases() |
88 | { | 88 | { |
89 | return merge(QMap<QByteArray, int>{{QByteArray{Mail::name} + ".main", 0}}, MailIndexConfig::databases()); | 89 | return merge(QMap<QByteArray, int>{{QByteArray{Mail::name} + ".main", Storage::IntegerKeys}}, MailIndexConfig::databases()); |
90 | } | 90 | } |
91 | 91 | ||
92 | void TypeImplementation<Mail>::configure(IndexPropertyMapper &indexPropertyMapper) | 92 | void TypeImplementation<Mail>::configure(IndexPropertyMapper &indexPropertyMapper) |
@@ -129,7 +129,7 @@ void TypeImplementation<Folder>::configure(TypeIndex &index) | |||
129 | 129 | ||
130 | QMap<QByteArray, int> TypeImplementation<Folder>::typeDatabases() | 130 | QMap<QByteArray, int> TypeImplementation<Folder>::typeDatabases() |
131 | { | 131 | { |
132 | return merge(QMap<QByteArray, int>{{QByteArray{Folder::name} + ".main", 0}}, FolderIndexConfig::databases()); | 132 | return merge(QMap<QByteArray, int>{{QByteArray{Folder::name} + ".main", Storage::IntegerKeys}}, FolderIndexConfig::databases()); |
133 | } | 133 | } |
134 | 134 | ||
135 | void TypeImplementation<Folder>::configure(PropertyMapper &propertyMapper) | 135 | void TypeImplementation<Folder>::configure(PropertyMapper &propertyMapper) |
@@ -154,7 +154,7 @@ void TypeImplementation<Contact>::configure(TypeIndex &index) | |||
154 | 154 | ||
155 | QMap<QByteArray, int> TypeImplementation<Contact>::typeDatabases() | 155 | QMap<QByteArray, int> TypeImplementation<Contact>::typeDatabases() |
156 | { | 156 | { |
157 | return merge(QMap<QByteArray, int>{{QByteArray{Contact::name} + ".main", 0}}, ContactIndexConfig::databases()); | 157 | return merge(QMap<QByteArray, int>{{QByteArray{Contact::name} + ".main", Storage::IntegerKeys}}, ContactIndexConfig::databases()); |
158 | } | 158 | } |
159 | 159 | ||
160 | void TypeImplementation<Contact>::configure(PropertyMapper &propertyMapper) | 160 | void TypeImplementation<Contact>::configure(PropertyMapper &propertyMapper) |
@@ -182,7 +182,7 @@ void TypeImplementation<Addressbook>::configure(TypeIndex &index) | |||
182 | 182 | ||
183 | QMap<QByteArray, int> TypeImplementation<Addressbook>::typeDatabases() | 183 | QMap<QByteArray, int> TypeImplementation<Addressbook>::typeDatabases() |
184 | { | 184 | { |
185 | return merge(QMap<QByteArray, int>{{QByteArray{Addressbook::name} + ".main", 0}}, AddressbookIndexConfig::databases()); | 185 | return merge(QMap<QByteArray, int>{{QByteArray{Addressbook::name} + ".main", Storage::IntegerKeys}}, AddressbookIndexConfig::databases()); |
186 | } | 186 | } |
187 | 187 | ||
188 | void TypeImplementation<Addressbook>::configure(PropertyMapper &propertyMapper) | 188 | void TypeImplementation<Addressbook>::configure(PropertyMapper &propertyMapper) |
@@ -204,7 +204,7 @@ void TypeImplementation<Event>::configure(TypeIndex &index) | |||
204 | 204 | ||
205 | QMap<QByteArray, int> TypeImplementation<Event>::typeDatabases() | 205 | QMap<QByteArray, int> TypeImplementation<Event>::typeDatabases() |
206 | { | 206 | { |
207 | return merge(QMap<QByteArray, int>{{QByteArray{Event::name} + ".main", 0}}, EventIndexConfig::databases()); | 207 | return merge(QMap<QByteArray, int>{{QByteArray{Event::name} + ".main", Storage::IntegerKeys}}, EventIndexConfig::databases()); |
208 | } | 208 | } |
209 | 209 | ||
210 | void TypeImplementation<Event>::configure(PropertyMapper &propertyMapper) | 210 | void TypeImplementation<Event>::configure(PropertyMapper &propertyMapper) |
@@ -232,7 +232,7 @@ void TypeImplementation<Todo>::configure(TypeIndex &index) | |||
232 | 232 | ||
233 | QMap<QByteArray, int> TypeImplementation<Todo>::typeDatabases() | 233 | QMap<QByteArray, int> TypeImplementation<Todo>::typeDatabases() |
234 | { | 234 | { |
235 | return merge(QMap<QByteArray, int>{{QByteArray{Todo::name} + ".main", 0}}, TodoIndexConfig::databases()); | 235 | return merge(QMap<QByteArray, int>{{QByteArray{Todo::name} + ".main", Storage::IntegerKeys}}, TodoIndexConfig::databases()); |
236 | } | 236 | } |
237 | 237 | ||
238 | void TypeImplementation<Todo>::configure(PropertyMapper &propertyMapper) | 238 | void TypeImplementation<Todo>::configure(PropertyMapper &propertyMapper) |
@@ -263,7 +263,7 @@ void TypeImplementation<Calendar>::configure(TypeIndex &index) | |||
263 | 263 | ||
264 | QMap<QByteArray, int> TypeImplementation<Calendar>::typeDatabases() | 264 | QMap<QByteArray, int> TypeImplementation<Calendar>::typeDatabases() |
265 | { | 265 | { |
266 | return merge(QMap<QByteArray, int>{{QByteArray{Calendar::name} + ".main", 0}}, CalendarIndexConfig::databases()); | 266 | return merge(QMap<QByteArray, int>{{QByteArray{Calendar::name} + ".main", Storage::IntegerKeys}}, CalendarIndexConfig::databases()); |
267 | } | 267 | } |
268 | 268 | ||
269 | void TypeImplementation<Calendar>::configure(PropertyMapper &propertyMapper) | 269 | void TypeImplementation<Calendar>::configure(PropertyMapper &propertyMapper) |