diff options
Diffstat (limited to 'common/domain')
-rw-r--r-- | common/domain/event.cpp | 6 | ||||
-rw-r--r-- | common/domain/event.h | 2 |
2 files changed, 5 insertions, 3 deletions
diff --git a/common/domain/event.cpp b/common/domain/event.cpp index d86ac16..15f5d11 100644 --- a/common/domain/event.cpp +++ b/common/domain/event.cpp | |||
@@ -27,6 +27,8 @@ | |||
27 | #include "../storage.h" | 27 | #include "../storage.h" |
28 | #include "../log.h" | 28 | #include "../log.h" |
29 | #include "../propertymapper.h" | 29 | #include "../propertymapper.h" |
30 | #include "../query.h" | ||
31 | #include "../definitions.h" | ||
30 | 32 | ||
31 | #include "event_generated.h" | 33 | #include "event_generated.h" |
32 | 34 | ||
@@ -36,7 +38,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query, | |||
36 | { | 38 | { |
37 | QVector<QByteArray> keys; | 39 | QVector<QByteArray> keys; |
38 | if (query.propertyFilter.contains("uid")) { | 40 | if (query.propertyFilter.contains("uid")) { |
39 | Index uidIndex(Akonadi2::Store::storageLocation(), resourceInstanceIdentifier + ".index.uid", Akonadi2::Storage::ReadOnly); | 41 | Index uidIndex(Akonadi2::storageLocation(), resourceInstanceIdentifier + ".index.uid", Akonadi2::Storage::ReadOnly); |
40 | uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) { | 42 | uidIndex.lookup(query.propertyFilter.value("uid").toByteArray(), [&](const QByteArray &value) { |
41 | keys << value; | 43 | keys << value; |
42 | }, | 44 | }, |
@@ -50,7 +52,7 @@ ResultSet TypeImplementation<Event>::queryIndexes(const Akonadi2::Query &query, | |||
50 | 52 | ||
51 | void TypeImplementation<Event>::index(const Event &type) | 53 | void TypeImplementation<Event>::index(const Event &type) |
52 | { | 54 | { |
53 | Index uidIndex(Akonadi2::Store::storageLocation(), type.resourceInstanceIdentifier() + ".index.uid", Akonadi2::Storage::ReadWrite); | 55 | Index uidIndex(Akonadi2::storageLocation(), type.resourceInstanceIdentifier() + ".index.uid", Akonadi2::Storage::ReadWrite); |
54 | const auto uid = type.getProperty("uid"); | 56 | const auto uid = type.getProperty("uid"); |
55 | if (uid.isValid()) { | 57 | if (uid.isValid()) { |
56 | uidIndex.add(uid.toByteArray(), type.identifier()); | 58 | uidIndex.add(uid.toByteArray(), type.identifier()); |
diff --git a/common/domain/event.h b/common/domain/event.h index 38020f8..13cfc6e 100644 --- a/common/domain/event.h +++ b/common/domain/event.h | |||
@@ -18,7 +18,7 @@ | |||
18 | */ | 18 | */ |
19 | #pragma once | 19 | #pragma once |
20 | 20 | ||
21 | #include "../clientapi.h" | 21 | #include "applicationdomaintype.h" |
22 | 22 | ||
23 | class ResultSet; | 23 | class ResultSet; |
24 | class QByteArray; | 24 | class QByteArray; |