Medical Imaging Interaction Toolkit
2016.11.0
Medical Imaging Interaction Toolkit
|
#include <berryIExecutionListenerWithChecks.h>
Classes | |
struct | Events |
Public Member Functions | |
virtual void | NotDefined (const QString &commandId, const NotDefinedException *exception)=0 |
virtual void | NotEnabled (const QString &commandId, const NotEnabledException *exception)=0 |
Public Member Functions inherited from berry::IExecutionListener | |
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 someone tries to execute a command and it is not enabled or not defined. The listener also 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.
Clients may implement.
Definition at line 38 of file berryIExecutionListenerWithChecks.h.
|
pure virtual |
Notifies the listener that an attempt was made to execute a command that is not defined.
commandId | The identifier of command that is not defined; never null |
exception | The exception that occurred; never null . |
Referenced by berry::IExecutionListenerWithChecks::Events::AddListener(), and berry::IExecutionListenerWithChecks::Events::RemoveListener().
|
pure virtual |
Notifies the listener that an attempt was made to execute a command that is disabled.
commandId | The identifier of command that is not enabled; never null |
exception | The exception that occurred; never null . |
Referenced by berry::IExecutionListenerWithChecks::Events::AddListener(), and berry::IExecutionListenerWithChecks::Events::RemoveListener().