ActivationListenerBase

Base class to receive a response to a result activation request. More...

#include <unity/scopes/ActivationListenerBase.h>

Inheritance diagram for unity::scopes::ActivationListenerBase:
Inheritance graph
[legend]

Public Member Functions

virtual void activated (ActivationResponse const &response)
 Called once by the scopes runtime with the activation response. More...
 
virtual void finished (CompletionDetails const &details) override
 Called once by the scopes runtime after the final result for a request was sent. More...
 
- Public Member Functions inherited from unity::scopes::ListenerBase
virtual void info (OperationInfo const &op_info)
 Called by the scopes runtime each time a scope reports additional information about the reply to a query. More...
 

Detailed Description

Base class to receive a response to a result activation request.

Member Function Documentation

void unity::scopes::ActivationListenerBase::activated ( ActivationResponse const &  response)
virtual

Called once by the scopes runtime with the activation response.

The default implementation does nothing.

Parameters
responseThe response to the activation request, returned by a scope from ActivationQueryBase::activate().
void unity::scopes::ActivationListenerBase::finished ( CompletionDetails const &  details)
overridevirtual

Called once by the scopes runtime after the final result for a request was sent.

Calls to finished() are made by an arbitrary thread.

Exceptions thrown from finished() are ignored.

Parameters
detailsContains details about the completion status of a query as well as any additional information regarding the operation of the request.

Implements unity::scopes::ListenerBase.