summaryrefslogtreecommitdiffstats
path: root/framework/actions/actionbroker.h
diff options
context:
space:
mode:
authorChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-03 20:24:09 +0200
committerChristian Mollekopf <chrigi_1@fastmail.fm>2016-05-03 20:24:26 +0200
commite06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91 (patch)
treeef606d36ee693eff087292a1950fe122a7376f19 /framework/actions/actionbroker.h
parent21f7851f044cd8b6e38c821ce12d7e1b291cae27 (diff)
downloadkube-e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91.tar.gz
kube-e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91.zip
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.
Diffstat (limited to 'framework/actions/actionbroker.h')
-rw-r--r--framework/actions/actionbroker.h3
1 files changed, 2 insertions, 1 deletions
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 @@
24namespace Kube { 24namespace Kube {
25class Context; 25class Context;
26class ActionHandler; 26class ActionHandler;
27class ActionResult;
27 28
28class ActionBroker : public QObject 29class ActionBroker : public QObject
29{ 30{
@@ -32,7 +33,7 @@ public:
32 static ActionBroker &instance(); 33 static ActionBroker &instance();
33 34
34 bool isActionReady(const QByteArray &actionId, Context *context); 35 bool isActionReady(const QByteArray &actionId, Context *context);
35 void executeAction(const QByteArray &actionId, Context *context); 36 ActionResult executeAction(const QByteArray &actionId, Context *context);
36 37
37 void registerHandler(const QByteArray &actionId, ActionHandler *handler); 38 void registerHandler(const QByteArray &actionId, ActionHandler *handler);
38 39