diff options
Diffstat (limited to 'framework/actions/action.h')
-rw-r--r-- | framework/actions/action.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/framework/actions/action.h b/framework/actions/action.h index 1abf4a5c..47e41138 100644 --- a/framework/actions/action.h +++ b/framework/actions/action.h | |||
@@ -24,6 +24,8 @@ | |||
24 | 24 | ||
25 | namespace Kube { | 25 | namespace Kube { |
26 | 26 | ||
27 | class ActionHandler; | ||
28 | |||
27 | class Action : public QObject | 29 | class Action : public QObject |
28 | { | 30 | { |
29 | Q_OBJECT | 31 | Q_OBJECT |
@@ -47,6 +49,9 @@ public: | |||
47 | Q_INVOKABLE void execute(); | 49 | Q_INVOKABLE void execute(); |
48 | ActionResult executeWithResult(); | 50 | ActionResult executeWithResult(); |
49 | 51 | ||
52 | void addPreHandler(ActionHandler *handler); | ||
53 | void addPostHandler(ActionHandler *handler); | ||
54 | |||
50 | Q_SIGNALS: | 55 | Q_SIGNALS: |
51 | void readyChanged(); | 56 | void readyChanged(); |
52 | 57 | ||
@@ -56,6 +61,8 @@ private Q_SLOTS: | |||
56 | private: | 61 | private: |
57 | Context *mContext; | 62 | Context *mContext; |
58 | QByteArray mActionId; | 63 | QByteArray mActionId; |
64 | QList<QPointer<ActionHandler>> mPreHandler; | ||
65 | QList<QPointer<ActionHandler>> mPostHandler; | ||
59 | }; | 66 | }; |
60 | 67 | ||
61 | } | 68 | } |