From d10cbf7478cd2edfd44c162c1924109422584e22 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Mon, 2 Feb 2015 02:01:45 +0100 Subject: Added JOBAPI todo's. Work for dvratil. --- dummyresource/resourcefactory.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'dummyresource/resourcefactory.cpp') 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: //mPipeline->modifiedEntity break; case Akonadi2::Commands::CreateEntityCommand: { - //TODO job lifetime management + //TODO JOBAPI: job lifetime management + //Right now we're just leaking jobs. In this case we'd like jobs that are heap allocated and delete + //themselves once done. In other cases we'd like jobs that only live as long as their handle though. mPipeline->newEntity(queuedCommand->command()->Data(), queuedCommand->command()->size()).then([messageQueueCallback, whileCallback](Async::Future &future) { messageQueueCallback(true); whileCallback(false); -- cgit v1.2.3