diff options
Diffstat (limited to 'examples')
-rw-r--r-- | examples/dummyresource/facade.cpp | 4 | ||||
-rw-r--r-- | examples/dummyresource/resourcefactory.cpp | 2 |
2 files changed, 3 insertions, 3 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 | ||
131 | static ResultSet getResultSet(const Akonadi2::Query &query, const QSharedPointer<Akonadi2::Storage> &storage) | 131 | static 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); |
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) | |||
122 | auto adaptor = eventFactory->createAdaptor(entity); | 122 | auto adaptor = eventFactory->createAdaptor(entity); |
123 | //FIXME set revision? | 123 | //FIXME set revision? |
124 | Akonadi2::ApplicationDomain::Event event(resourceIdentifier, state.key(), -1, adaptor); | 124 | Akonadi2::ApplicationDomain::Event event(resourceIdentifier, state.key(), -1, adaptor); |
125 | Akonadi2::ApplicationDomain::EventImplementation::index(event); | 125 | Akonadi2::ApplicationDomain::TypeImplementation<Akonadi2::ApplicationDomain::Event>::index(event); |
126 | }); | 126 | }); |
127 | 127 | ||
128 | //event is the entitytype and not the domain type | 128 | //event is the entitytype and not the domain type |