diff options
author | David Robillard <d@drobilla.net> | 2009-05-12 04:34:08 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2009-05-12 04:34:08 +0000 |
commit | 0fd55176b99cd6bd3230afdf350687a04702bd92 (patch) | |
tree | 07f8fd4244c415bac532981c6800e0ea9beb0982 /src/engine/events/DeactivateEvent.hpp | |
parent | effacccee852f5070c29f214cd2d15ce9aa2e91b (diff) | |
download | ingen-0fd55176b99cd6bd3230afdf350687a04702bd92.tar.gz ingen-0fd55176b99cd6bd3230afdf350687a04702bd92.tar.bz2 ingen-0fd55176b99cd6bd3230afdf350687a04702bd92.zip |
Detach/Reattach from/to Jack from UI (ticket #180).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1985 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/events/DeactivateEvent.hpp')
-rw-r--r-- | src/engine/events/DeactivateEvent.hpp | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/engine/events/DeactivateEvent.hpp b/src/engine/events/DeactivateEvent.hpp index 5a6750ba..eaa7e9cb 100644 --- a/src/engine/events/DeactivateEvent.hpp +++ b/src/engine/events/DeactivateEvent.hpp @@ -19,6 +19,7 @@ #define DEACTIVATEEVENT_H #include "QueuedEvent.hpp" +#include "Engine.hpp" namespace Ingen { @@ -30,11 +31,14 @@ namespace Ingen { class DeactivateEvent : public QueuedEvent { public: - DeactivateEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp); + DeactivateEvent(Engine& engine, SharedPtr<Responder> responder, SampleCount timestamp) + : QueuedEvent(engine, responder, timestamp) + {} - void pre_process(); - void execute(ProcessContext& context); - void post_process(); + void post_process() { + _responder->respond_ok(); + _engine.deactivate(); + } }; |