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/action.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'framework/actions/action.h') diff --git a/framework/actions/action.h b/framework/actions/action.h index b820955e..1ad4a47e 100644 --- a/framework/actions/action.h +++ b/framework/actions/action.h @@ -20,6 +20,7 @@ #include #include "context.h" +#include "actionresult.h" namespace Kube { @@ -43,7 +44,7 @@ public: bool ready() const; - Q_INVOKABLE void execute(); + Q_INVOKABLE ActionResult execute(); Q_SIGNALS: void readyChanged(); -- cgit v1.2.3