From e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91 Mon Sep 17 00:00:00 2001 From: Christian Mollekopf Date: Tue, 3 May 2016 20:24:09 +0200 Subject: A save-as-draft action & action results This patch introduces tracking of actions, so they can be tested. It also provides a save-as-draft action, that looks for the draft folder, and stores the mail accordingly. --- framework/actions/actionbroker.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/actions/actionbroker.h') diff --git a/framework/actions/actionbroker.h b/framework/actions/actionbroker.h index 08eac742..8f3eaeb2 100644 --- a/framework/actions/actionbroker.h +++ b/framework/actions/actionbroker.h @@ -24,6 +24,7 @@ namespace Kube { class Context; class ActionHandler; +class ActionResult; class ActionBroker : public QObject { @@ -32,7 +33,7 @@ public: static ActionBroker &instance(); bool isActionReady(const QByteArray &actionId, Context *context); - void executeAction(const QByteArray &actionId, Context *context); + ActionResult executeAction(const QByteArray &actionId, Context *context); void registerHandler(const QByteArray &actionId, ActionHandler *handler); -- cgit v1.2.3