summaryrefslogtreecommitdiffstats
path: root/examples/dummyresource/facade.cpp
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-31 20:16:23 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2015-05-31 20:16:23 +0200
commite297fb92c2c0e344d36e0aef57921f6b9b921a61 (patch)
treeab36c3a121f3f132235ed3eafb5eb5d767c77b3b /examples/dummyresource/facade.cpp
parent0815156ef93cb9f48073a777b888ed47b579d695 (diff)
downloadsink-e297fb92c2c0e344d36e0aef57921f6b9b921a61.tar.gz
sink-e297fb92c2c0e344d36e0aef57921f6b9b921a61.zip
Moved default read/write property mapper to TypeImplementation
There is always exactly one default buffer that we can centralize in TypeImplementation.
Diffstat (limited to 'examples/dummyresource/facade.cpp')
-rw-r--r--examples/dummyresource/facade.cpp4
1 files changed, 2 insertions, 2 deletions
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<Akonadi2::Storage> &sto
130 130
131static ResultSet getResultSet(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::Storage> &storage) 131static ResultSet getResultSet(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::Storage> &storage)
132{ 132{
133 auto resultSet = Akonadi2::ApplicationDomain::EventImplementation::queryIndexes(query, "org.kde.dummy"); 133 auto resultSet = Akonadi2::ApplicationDomain::TypeImplementation<Akonadi2::ApplicationDomain::Event>::queryIndexes(query, "org.kde.dummy");
134 134
135 //Scan for where we don't have an index 135 //Scan for where we don't have an index
136 //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 136 //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
137 //TODO: the prepared query should be generalized in EventImplementation on top of domain adaptors 137 //TODO: the prepared query should be generalized in TypeImplementation on top of domain adaptors
138 if (resultSet.isEmpty()) { 138 if (resultSet.isEmpty()) {
139 QVector<QByteArray> keys; 139 QVector<QByteArray> keys;
140 const auto preparedQuery = prepareQuery(query); 140 const auto preparedQuery = prepareQuery(query);