Unity Scopes API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
unity::scopes::ActivationQueryBase Class Reference

Base class for an activation request that is executed inside a scope. More...

#include <unity/scopes/ActivationQueryBase.h>

Inheritance diagram for unity::scopes::ActivationQueryBase:

Public Member Functions

virtual void cancelled () override
 Called when the originator of the activation request cancelled it.
 
virtual ActivationResponse activate ()
 Return response to the activation request. More...
 
- Public Member Functions inherited from unity::scopes::QueryBase
bool valid () const
 Check whether this query is still valid. More...
 

Detailed Description

Base class for an activation request that is executed inside a scope.

The default implementation responds with ActivationResponse(ActivationResponse::Status::NotHandled). Reimplement this class and return an instance in ScopeBase::activate method for custom activation handling.

Member Function Documentation

ActivationResponse unity::scopes::ActivationQueryBase::activate ( )
virtual

Return response to the activation request.

The response is received by the originator of the request. Default implementation returns ActivationResponse(ActivationResponse::Status::NotHandled.

Returns
The response to the activation request.

The documentation for this class was generated from the following files: