From b6d5d206de4d02149c6530236154283bf834087a Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Thu, 13 Aug 2015 01:27:21 +0200 Subject: Untangled the include dependencies a bit. We no longer depend on clientapi.h from everywhere. --- examples/dummyresource/resourcefactory.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/dummyresource/resourcefactory.cpp') diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index e9bf6cd..e029308 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp @@ -31,6 +31,8 @@ #include "log.h" #include "domain/event.h" #include "dummystore.h" +#include "definitions.h" +#include "facadefactory.h" //This is the resources entity type, and not the domain type #define ENTITY_TYPE_EVENT "event" @@ -46,7 +48,7 @@ DummyResource::DummyResource(const QByteArray &instanceIdentifier, const QShared Akonadi2::ApplicationDomain::Event event(resourceIdentifier, state.key(), -1, adaptor); Akonadi2::ApplicationDomain::TypeImplementation::index(event); - Index ridIndex(Akonadi2::Store::storageLocation(), resourceIdentifier + ".index.rid", Akonadi2::Storage::ReadWrite); + Index ridIndex(Akonadi2::storageLocation(), resourceIdentifier + ".index.rid", Akonadi2::Storage::ReadWrite); const auto rid = event.getProperty("remoteId"); if (rid.isValid()) { ridIndex.add(rid.toByteArray(), event.identifier()); @@ -62,7 +64,7 @@ KAsync::Job DummyResource::synchronizeWithSource() { return KAsync::start([this](KAsync::Future &f) { //TODO start transaction on index - Index uidIndex(Akonadi2::Store::storageLocation(), mResourceInstanceIdentifier + ".index.uid", Akonadi2::Storage::ReadOnly); + Index uidIndex(Akonadi2::storageLocation(), mResourceInstanceIdentifier + ".index.uid", Akonadi2::Storage::ReadOnly); const auto data = DummyStore::instance().data(); for (auto it = data.constBegin(); it != data.constEnd(); it++) { -- cgit v1.2.3