Medical Imaging Interaction Toolkit
2024.06.00
Medical Imaging Interaction Toolkit
|
#include <berryIHandlerActivation.h>
Public Member Functions | |
berryObjectMacro (berry::IHandlerActivation) | |
~IHandlerActivation () override | |
virtual void | ClearActive ()=0 |
virtual QString | GetCommandId () const =0 |
virtual int | GetDepth () const =0 |
virtual SmartPointer< IHandler > | GetHandler () const =0 |
virtual IHandlerService * | GetHandlerService () const =0 |
Static Public Attributes | |
static const int | ROOT_DEPTH |
A token representing the activation of a handler. This token can later be used to cancel that activation. Without this token, then handler will only become inactive if the component in which the handler was activated is destroyed.
This interface is not intended to be implemented or extended by clients.
Definition at line 40 of file berryIHandlerActivation.h.
|
override |
berry::IHandlerActivation::berryObjectMacro | ( | berry::IHandlerActivation | ) |
|
pure virtual |
Clears the cached computation of the isActive
method, if any. This method is only intended for internal use. It provides a mechanism by which ISourceProvider
events can invalidate state on a IHandlerActivation
instance.
|
pure virtual |
Returns the identifier of the command whose handler is being activated.
null
.
|
pure virtual |
Returns the depth at which this activation was created within the services hierarchy. The root of the hierarchy is at a depth of 1
. This is used as the final tie-breaker in the event that no other method can be used to determine a winner.
|
pure virtual |
Returns the handler that should be activated.
null
.
|
pure virtual |
Returns the handler service from which this activation was requested. This is used to ensure that an activation can only be retracted from the same service which issued it.
null
.
|
static |
The depth at which the root exists.
Definition at line 50 of file berryIHandlerActivation.h.