diff options
Diffstat (limited to 'dummyresource')
-rw-r--r-- | dummyresource/domainadaptor.h | 1 | ||||
-rw-r--r-- | dummyresource/resourcefactory.cpp | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/dummyresource/domainadaptor.h b/dummyresource/domainadaptor.h index 239ceca..9474176 100644 --- a/dummyresource/domainadaptor.h +++ b/dummyresource/domainadaptor.h | |||
@@ -10,6 +10,7 @@ class DummyEventAdaptorFactory : public DomainTypeAdaptorFactory<Akonadi2::Domai | |||
10 | { | 10 | { |
11 | public: | 11 | public: |
12 | DummyEventAdaptorFactory(); | 12 | DummyEventAdaptorFactory(); |
13 | virtual ~DummyEventAdaptorFactory() {}; | ||
13 | virtual QSharedPointer<Akonadi2::Domain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity); | 14 | virtual QSharedPointer<Akonadi2::Domain::BufferAdaptor> createAdaptor(const Akonadi2::Entity &entity); |
14 | virtual void createBuffer(const Akonadi2::Domain::Event &event, flatbuffers::FlatBufferBuilder &fbb); | 15 | virtual void createBuffer(const Akonadi2::Domain::Event &event, flatbuffers::FlatBufferBuilder &fbb); |
15 | }; | 16 | }; |
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp index fab3df9..d1beb1d 100644 --- a/dummyresource/resourcefactory.cpp +++ b/dummyresource/resourcefactory.cpp | |||
@@ -248,7 +248,7 @@ void DummyResource::configurePipeline(Akonadi2::Pipeline *pipeline) | |||
248 | auto eventFactory = QSharedPointer<DummyEventAdaptorFactory>::create(); | 248 | auto eventFactory = QSharedPointer<DummyEventAdaptorFactory>::create(); |
249 | //FIXME we should setup for each resource entity type, not for each domain type | 249 | //FIXME we should setup for each resource entity type, not for each domain type |
250 | //i.e. If a resource stores tags as part of each message it needs to update the tag index | 250 | //i.e. If a resource stores tags as part of each message it needs to update the tag index |
251 | //TODO setup preprocessors for each domain type and pipeline type allowing full customization | 251 | //TODO setup preprocessors for each resource entity type and pipeline type allowing full customization |
252 | //Eventually the order should be self configuring, for now it's hardcoded. | 252 | //Eventually the order should be self configuring, for now it's hardcoded. |
253 | auto eventIndexer = new SimpleProcessor("summaryprocessor", [eventFactory](const Akonadi2::PipelineState &state, const Akonadi2::Entity &entity) { | 253 | auto eventIndexer = new SimpleProcessor("summaryprocessor", [eventFactory](const Akonadi2::PipelineState &state, const Akonadi2::Entity &entity) { |
254 | auto adaptor = eventFactory->createAdaptor(entity); | 254 | auto adaptor = eventFactory->createAdaptor(entity); |