diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-03 20:24:09 +0200 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-05-03 20:24:26 +0200 |
commit | e06e1dad4a4570e5c1181d05ab6ed7a5d74c6c91 (patch) | |
tree | ef606d36ee693eff087292a1950fe122a7376f19 /framework/actions/actionbroker.h | |
parent | 21f7851f044cd8b6e38c821ce12d7e1b291cae27 (diff) | |
download | kube-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.h | 3 |
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 @@ | |||
24 | namespace Kube { | 24 | namespace Kube { |
25 | class Context; | 25 | class Context; |
26 | class ActionHandler; | 26 | class ActionHandler; |
27 | class ActionResult; | ||
27 | 28 | ||
28 | class ActionBroker : public QObject | 29 | class 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 | ||