Unity Scopes API
|
Base class to receive a response to a result activation request. More...
#include <unity/scopes/ActivationListenerBase.h>
Public Member Functions | |
virtual void | activated (ActivationResponse const &response) |
Called once by the scopes run time with the activation response. More... | |
virtual void | finished (Reason r, std::string const &error_message) override |
Called once by the scopes run time after receiving an activation response. More... | |
Additional Inherited Members | |
![]() | |
enum | Reason { Finished, Cancelled, Error } |
Indicates the cause of a call to finished(). More... | |
Base class to receive a response to a result activation request.
|
virtual |
Called once by the scopes run time with the activation response.
The default implementation does nothing.
response | The response to the activation request, returned by a scope from ActivationQueryBase::activate(). |
|
overridevirtual |
Called once by the scopes run time after receiving an activation response.
Default implementation does nothing.
Calls to finished() are made by an arbitrary thread.
Exceptions thrown from finished() are ignored.
r | Indicates the cause for the call to finished(). |
error_message | If r is set to Reason::Error, error_message contains further details. Otherwise, error_message is the empty string. |
Implements unity::scopes::ListenerBase.