Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIExecutionListener.h>
Classes | |
struct | Events |
Public Member Functions | |
virtual | ~IExecutionListener () |
virtual void | NotHandled (const QString &commandId, const NotHandledException *exception)=0 |
virtual void | PostExecuteFailure (const QString &commandId, const ExecutionException *exception)=0 |
virtual void | PostExecuteSuccess (const QString &commandId, const Object::Pointer &returnValue)=0 |
virtual void | PreExecute (const QString &commandId, const SmartPointer< const ExecutionEvent > &event)=0 |
A listener to the execution of commands. This listener will be notified if a command is about to execute, and when that execution completes. It is not possible for the listener to prevent the execution, only to respond to it in some way.
Definition at line 39 of file berryIExecutionListener.h.
|
virtual |
Definition at line 70 of file berryIExecutionListener.cpp.
|
pure virtual |
Notifies the listener that an attempt was made to execute a command with no handler.
commandId | The identifier of command that is not handled; never null |
exception | The exception that occurred; never null . |
Referenced by berry::IExecutionListener::Events::AddListener(), and berry::IExecutionListener::Events::RemoveListener().
|
pure virtual |
Notifies the listener that a command has failed to complete execution.
commandId | The identifier of the command that has executed; never null . |
exception | The exception that occurred; never null . |
Referenced by berry::IExecutionListener::Events::AddListener(), and berry::IExecutionListener::Events::RemoveListener().
|
pure virtual |
Notifies the listener that a command has completed execution successfully.
commandId | The identifier of the command that has executed; never null . |
returnValue | The return value from the command; may be null . |
Referenced by berry::IExecutionListener::Events::AddListener(), and berry::IExecutionListener::Events::RemoveListener().
|
pure virtual |
Notifies the listener that a command is about to execute.
commandId | The identifier of the command that is about to execute, never null . |
event | The event that will be passed to the execute method; never null . |
Referenced by berry::IExecutionListener::Events::AddListener(), and berry::IExecutionListener::Events::RemoveListener().