summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--dummyresource/facade.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/dummyresource/facade.cpp b/dummyresource/facade.cpp
index 893b585..04bf5b3 100644
--- a/dummyresource/facade.cpp
+++ b/dummyresource/facade.cpp
@@ -32,6 +32,7 @@
32#include "domainadaptor.h" 32#include "domainadaptor.h"
33#include <common/entitybuffer.h> 33#include <common/entitybuffer.h>
34#include <common/index.h> 34#include <common/index.h>
35#include <common/log.h>
35 36
36using namespace DummyCalendar; 37using namespace DummyCalendar;
37using namespace flatbuffers; 38using namespace flatbuffers;
@@ -100,7 +101,6 @@ static std::function<bool(const std::string &key, DummyEvent const *buffer, Akon
100 const QByteArray uid = query.propertyFilter.value("uid").toByteArray(); 101 const QByteArray uid = query.propertyFilter.value("uid").toByteArray();
101 preparedQuery = [uid](const std::string &key, DummyEvent const *buffer, Akonadi2::Domain::Buffer::Event const *local) { 102 preparedQuery = [uid](const std::string &key, DummyEvent const *buffer, Akonadi2::Domain::Buffer::Event const *local) {
102 if (local && local->uid() && (QByteArray::fromRawData(local->uid()->c_str(), local->uid()->size()) == uid)) { 103 if (local && local->uid() && (QByteArray::fromRawData(local->uid()->c_str(), local->uid()->size()) == uid)) {
103 qDebug() << "uid match";
104 return true; 104 return true;
105 } 105 }
106 return false; 106 return false;
@@ -208,7 +208,7 @@ Async::Job<void> DummyResourceFacade::load(const Akonadi2::Query &query, const s
208 keys << value; 208 keys << value;
209 }, 209 },
210 [](const Index::Error &error) { 210 [](const Index::Error &error) {
211 qWarning() << "Error in index: " << error.message; 211 Warning() << "Error in index: " << error.message;
212 }); 212 });
213 } 213 }
214 214
@@ -216,7 +216,7 @@ Async::Job<void> DummyResourceFacade::load(const Akonadi2::Query &query, const s
216 //The transaction will be closed automatically once the storage object is destroyed. 216 //The transaction will be closed automatically once the storage object is destroyed.
217 storage->startTransaction(Akonadi2::Storage::ReadOnly); 217 storage->startTransaction(Akonadi2::Storage::ReadOnly);
218 if (keys.isEmpty()) { 218 if (keys.isEmpty()) {
219 qDebug() << "full scan"; 219 Log() << "Executing a full scan";
220 readValue(storage, QByteArray(), resultCallback, preparedQuery); 220 readValue(storage, QByteArray(), resultCallback, preparedQuery);
221 } else { 221 } else {
222 for (const auto &key : keys) { 222 for (const auto &key : keys) {