summaryrefslogtreecommitdiffstats
path: root/framework/actions/action.h
diff options
context:
space:
mode:
Diffstat (limited to 'framework/actions/action.h')
-rw-r--r--framework/actions/action.h7
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
25namespace Kube { 25namespace Kube {
26 26
27class ActionHandler;
28
27class Action : public QObject 29class 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
50Q_SIGNALS: 55Q_SIGNALS:
51 void readyChanged(); 56 void readyChanged();
52 57
@@ -56,6 +61,8 @@ private Q_SLOTS:
56private: 61private:
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}