summaryrefslogtreecommitdiffstats
path: root/dummyresource/resourcefactory.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'dummyresource/resourcefactory.cpp')
-rw-r--r--dummyresource/resourcefactory.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/dummyresource/resourcefactory.cpp b/dummyresource/resourcefactory.cpp
index e5019f2..fab3df9 100644
--- a/dummyresource/resourcefactory.cpp
+++ b/dummyresource/resourcefactory.cpp
@@ -168,7 +168,9 @@ private slots:
168 //mPipeline->modifiedEntity 168 //mPipeline->modifiedEntity
169 break; 169 break;
170 case Akonadi2::Commands::CreateEntityCommand: { 170 case Akonadi2::Commands::CreateEntityCommand: {
171 //TODO job lifetime management 171 //TODO JOBAPI: job lifetime management
172 //Right now we're just leaking jobs. In this case we'd like jobs that are heap allocated and delete
173 //themselves once done. In other cases we'd like jobs that only live as long as their handle though.
172 mPipeline->newEntity(queuedCommand->command()->Data(), queuedCommand->command()->size()).then<void>([messageQueueCallback, whileCallback](Async::Future<void> &future) { 174 mPipeline->newEntity(queuedCommand->command()->Data(), queuedCommand->command()->size()).then<void>([messageQueueCallback, whileCallback](Async::Future<void> &future) {
173 messageQueueCallback(true); 175 messageQueueCallback(true);
174 whileCallback(false); 176 whileCallback(false);