From e297fb92c2c0e344d36e0aef57921f6b9b921a61 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Sun, 31 May 2015 20:16:23 +0200 Subject: Moved default read/write property mapper to TypeImplementation There is always exactly one default buffer that we can centralize in TypeImplementation. --- examples/dummyresource/facade.cpp | 4 ++-- examples/dummyresource/resourcefactory.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'examples') diff --git a/examples/dummyresource/facade.cpp b/examples/dummyresource/facade.cpp index 611217f..e678214 100644 --- a/examples/dummyresource/facade.cpp +++ b/examples/dummyresource/facade.cpp @@ -130,11 +130,11 @@ void DummyResourceFacade::readValue(const QSharedPointer &sto static ResultSet getResultSet(const Akonadi2::Query &query, const QSharedPointer &storage) { - auto resultSet = Akonadi2::ApplicationDomain::EventImplementation::queryIndexes(query, "org.kde.dummy"); + auto resultSet = Akonadi2::ApplicationDomain::TypeImplementation::queryIndexes(query, "org.kde.dummy"); //Scan for where we don't have an index //TODO: we may want a way for queryIndexes to indicate that the resultSet is not final, and that a scan over the remaining set is required - //TODO: the prepared query should be generalized in EventImplementation on top of domain adaptors + //TODO: the prepared query should be generalized in TypeImplementation on top of domain adaptors if (resultSet.isEmpty()) { QVector keys; const auto preparedQuery = prepareQuery(query); diff --git a/examples/dummyresource/resourcefactory.cpp b/examples/dummyresource/resourcefactory.cpp index 71a4ac5..31ec972 100644 --- a/examples/dummyresource/resourcefactory.cpp +++ b/examples/dummyresource/resourcefactory.cpp @@ -122,7 +122,7 @@ void DummyResource::configurePipeline(Akonadi2::Pipeline *pipeline) auto adaptor = eventFactory->createAdaptor(entity); //FIXME set revision? Akonadi2::ApplicationDomain::Event event(resourceIdentifier, state.key(), -1, adaptor); - Akonadi2::ApplicationDomain::EventImplementation::index(event); + Akonadi2::ApplicationDomain::TypeImplementation::index(event); }); //event is the entitytype and not the domain type -- cgit v1.2.3