summaryrefslogtreecommitdiffstats
path: root/common/domain/event.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/domain/event.cpp')
-rw-r--r--common/domain/event.cpp6
1 files changed, 4 insertions, 2 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
51void TypeImplementation<Event>::index(const Event &type) 53void 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());