Kanzi 3.9.10
kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass > Class Template Reference

Implementation class for ExclusiveActivityHost. More...

#include <kanzi/ui/node/concept/activity/exclusive_activity_host_impl.hpp>

Inheritance diagram for kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >:
[legend]

Public Member Functions

void deserialize (string_view data) override
 ActivityElement::deserialize implementation.
 
const vector< ExclusiveActivityHostConcept::ActivityInExclusiveHostInfo > & getActivitiesInfo () const override
 ValueControlledExclusiveActivityHostConcept::getActivitiesInfo implementation.
 
PropertyDataType getControllerInputType () const override
 ValueControlledExclusiveActivityHostConcept::getControllerInputType implementation.
 
const NodegetNode () const override
 ValueControlledExclusiveActivityHostConcept::getNode const implementation.
 
NodegetNode () override
 ValueControlledExclusiveActivityHostConcept::getNode const implementation.
 
- Public Member Functions inherited from kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >
void onFinishedExclusiveDeactivatingAnimationInternal (const ActivityConcept::StatusChangedInternalMessageArguments &args)
 Message handler for FinishedExclusiveDeactivatingAnimationInternal message.
 
void onFinishedParallelActivatingAnimationInternal (const ActivityConcept::StatusChangedInternalMessageArguments &args)
 Message handler for FinishedParallelActivatingAnimationInternal message.
 
void onFinishedParallelDeactivatingAnimationInternal (const ActivityConcept::StatusChangedInternalMessageArguments &args)
 Message handler for FinishedParallelDeactivatingAnimationInternal message.
 
NodeSharedPtr onPrefabLoaded (PrefabTemplateSharedPtr prefabTemplate, string_view activityName) override
 ExclusiveActivityHostConcept::onPrefabLoaded implementation.
 
void setActivationModifier (string_view activityName, BindingTokenWeakPtr weakModifier) override
 ActivityHostConcept::setActivationModifier implementation.
 
- Public Member Functions inherited from kanzi::ActivityHostConceptImpl< TBaseClass, TDerivedClass >
void notifyChildrenNodeTreeAvailable () override
 ActivityElement::notifyChildrenNodeTreeAvailable implementation.
 
string serialize () override
 ActivityElement::serialize implementation.
 
- Public Member Functions inherited from kanzi::ActivityElement
vector< NodeSharedPtr >::const_iterator beginChildHosts () const
 Returns the begin iterator to the registered child Activity Host.
 
vector< NodeSharedPtr >::const_iterator endChildHosts () const
 Returns the end iterator to the registered child Activity Host.
 
NodefindChildHost (string_view hostName)
 Finds a child Activity Host by name.
 
vector< string > getCommands () const
 Gets the list of commands handled by code behind of this activity element.
 
ActivityHistoryManagergetHistoryManager () const
 Gets the history manager of this activity element.
 
ActivityElementgetParentElement ()
 Gets the parent ActivityElement type node.
 
bool isLeafActivityNode () const
 Returns whether an ActivityElement has a child Activity Host.
 
void setCodeBehind (CodeBehindSharedPtr codeBehind)
 Attaches a code behind object.
 
void setCodeBehind (const Metaclass *metaclass)
 Instantiates and attaches a code behind object by specifying its metaclass.
 
virtual ~ActivityElement ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::ActivityHostConcept
virtual ~ActivityHostConcept ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::ExclusiveActivityHostConcept
virtual ~ExclusiveActivityHostConcept ()=default
 Destructor.
 
- Public Member Functions inherited from kanzi::ValueControlledExclusiveActivityHostConcept
virtual ~ValueControlledExclusiveActivityHostConcept ()=default
 Destructor.
 

Static Public Member Functions

static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::ActivityElement
static string getFirstElement (string_view activationSequence)
 Gets the first element of the activation sequence.
 
static string getRestToForward (string_view activationSequence)
 Gets the remainder of the activation sequence.
 
template<typename Type >
static bool isActivityElement (const Type &object)
 Returns whether an object is an ActivityElement.
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::ActivityHostConcept
template<typename Type >
static bool isActivityHost (const Type &object)
 Determines if an object is an ActivityHost.
 
static bool isActivityHostMetaclass (const Metaclass *metaclass)
 Checks whether the given Metaclass is an ActivityHostConcept metaclass or contains it as a mixin metaclass.
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::ExclusiveActivityHostConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 Returns PropertyType editor info of exclusive activity concept.
 
- Static Public Member Functions inherited from kanzi::ValueControlledExclusiveActivityHostConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 Provides the editor information to Kanzi Studio.
 

Protected Member Functions

void addBindingRuntime (AbstractBindingRuntimeSharedPtr entry) final
 ExclusiveActivityHostConcept::addBindingRuntime implementation;.
 
 ExclusiveActivityHostImpl (Domain *domain, string_view name)
 Constructor.
 
string getInputProviderPath () const override
 ValueControlledExclusiveActivityHostConcept::getInputProviderPath implementation.
 
void onAttachedOverride () override
 Overrides onAttached method.
 
void onDetached () override
 Node::onDetached implementation.
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation.
 
- Protected Member Functions inherited from kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >
void activate (const ActivityHostConcept::ActivityInfo &activity)
 Requests the ExclusiveActivityHost to activate an Activity node.
 
void activate (const ActivityHostConcept::ActivityInfo &activity, string_view activationPath)
 Requests the ExclusiveActivityHost to activate an Activity node, and to forward the activation path to activate the children of the Activity node, if the Activity node is already active or activating.
 
void deactivate ()
 Requests the ExclusiveActivityHost to deactivate the currently active Activity node.
 
 ExclusiveActivityHostBaseImpl (Domain *domain, string_view name)
 Constructor.
 
vector< string > getActivatingNames () override
 ActivityHostConcept::getActivatingNames implementation.
 
string getActiveOrActivatingName () const
 Gets the currently active or activating Activity node.
 
vector< NodeWeakPtrgetActiveOrAttachedActivating () override
 ActivityHostConceptImpl::getActiveOrAttachedActivating implementation.
 
optional< ActivityHostConcept::ActivityInfogetActivityInfo (string_view name) const override
 ActivityHostConceptImpl::getActivityInfo implementation.
 
vector< NodeWeakPtrgetAttachedActivityNodes () override
 ActivityHostConceptImpl::getAttachedActivityNodes implementation.
 
void initialize ()
 Initializes this exclusive activity host.
 
template<typename Iterator >
string nextToActivate (Iterator iterBegin, Iterator iterEnd, string_view current, bool looping) const
 Calculates which Activity node is going to be activated if the current active Activity node deactivates.
 
void onActivateActivityOverride (string_view activationPath, bool resetHistory) override
 ActivityHostConcept::onActivateActivityOverride implementation.
 
void onActivityActivated (NodeSharedPtr activity, string_view prefabPath) override
 ExclusiveActivityHostConcept::onActivityActivated implementation.
 
void onActivityDeactivated (NodeSharedPtr activity) override
 ExclusiveActivityHostConcept::onActivityDeactivated implementation.
 
void onDetached () override
 Node::onDetached implementation.
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation.
 
void resolveFocusWithPolicy (Node &activityNode) override
 ActivityHostConcept::resolveFocusWithPolicy implementation.
 
virtual ~ExclusiveActivityHostBaseImpl ()=default
 Destructor.
 
- Protected Member Functions inherited from kanzi::ActivityHostConceptImpl< TBaseClass, TDerivedClass >
 ActivityHostConceptImpl (Domain *domain, string_view name)
 Constructor.
 
void clearCurrentActivationTarget () const
 Clears current activation target.
 
void initialize ()
 Initializes this Activity Host Concept.
 
void registerInParentActivityElement () final
 ActivityElement::registerInParentActivityElement implementation.
 
void resolveFocusOnActivated (Node &activityNode)
 Performs the necessary operations to fix the application focus when an Activity has activated in this Activity Host.
 
void unregisterInParentActivityElement () final
 ActivityElement::unregisterInParentActivityElement implementation.
 
virtual ~ActivityHostConceptImpl ()=default
 Destructor.
 
- Protected Member Functions inherited from kanzi::ActivityElementImpl< TBaseClass, TDerivedClass >
 ActivityElementImpl (Domain *domain, string_view name)
 Constructor.
 
void initialize ()
 Initializes the activity element.
 
void onAttached () override
 Node::onAttached implementation.
 
void onDetached () override
 Node::onDetached implementation.
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation.
 
 ~ActivityElementImpl () override=default
 Destructor.
 
- Protected Member Functions inherited from kanzi::ActivityElement
optional< ActivityBrowserController::ActivityIDgetActivityID () const
 Gets the unique ID that is used by the implementation of the Activity Browser.
 
string getPathInParent ()
 Gets the activation path of this activity element relative to its parent.
 
void initialize ()
 Initializes the activity element.
 
bool isRootActivityElement () const
 Returns whether an ActivityElement is the root Activity Host node of the Screen node.
 
void onForceTrigger (const ActivityBrowserController::ForceTriggerMessageArguments &args)
 Message handler for ActivityBrowserController::ForceTriggerMessage.
 
void onNodeInfoTreeAvailable (const ActivityBrowserController::NodeInfoTreeAvailableArguments &)
 Message handler for ActivityBrowserController::NodeInfoTreeAvailableMessage.
 
void registerChildHost (string_view hostPath)
 Registers a child host in this activity element.
 
void setActivityID (optional< ActivityBrowserController::ActivityID > activityID)
 Sets the unique ID that is used by the implementation of the Activity Browser.
 
void unregisterChildHost (string_view hostName)
 Unregisters a child host from this activity element.
 
void updateActivityBrowserProperties ()
 Triggers the Activity Browser to update the properties of the Activity Element.
 

Additional Inherited Members

- Public Types inherited from kanzi::ActivityHostConcept
enum class  ActivationStatus { PreparingForActivation , ParallelAnimation , ExclusiveAnimation }
 Specifies possible stages for internal tracking of activation of an Activity. More...
 
using ActivityInfoContainer
 
enum class  DeactivationStatus { ExclusiveAnimation , ParallelAnimation , WaitingForRelease }
 Specifies possible stages for internal tracking of deactivation of an Activity. More...
 
- Public Types inherited from kanzi::ExclusiveActivityHostConcept
enum class  ExclusiveActivityHostFocusingPolicy { WhenHostHasFocus , AlwaysFocus , NeverFocus }
 Specifies the focusing policy that Kanzi applies to an activating Activity in an Exclusive Activity Host. More...
 
- Static Public Attributes inherited from kanzi::ActivityElement
static PropertyType< boolAttachedProperty
 
static PropertyType< boolPreserveHistoryProperty
 Enables the preservation of Activity property values when that Activity becomes inactive.
 
- Static Public Attributes inherited from kanzi::ActivityHostConcept
static MessageType< ActivationMessageArgumentsActivateActivityMessage
 You can send ActivateActivity to the Activity Host to activate an Activity.
 
static MessageType< ActivationMessageArgumentsDeactivateActivityMessage
 You can send DeactivateActivity to the Activity Host to deactivate an Activity.
 
static MessageType< ActivityPrefabMessageArgumentsActivityPrefabAttachedMessage
 An Activity Host sends this message when it attaches the prefab of the Activity that is activated.
 
static MessageType< ActivityPrefabMessageArgumentsActivityPrefabDetachedMessage
 An Activity Host sends this message when it attaches the prefab of the Activity that is activated.
 
static MessageType< RegisterActivityElementInternalMessageArgumentsRegisterHostInternalMessage
 Internal message sent by an Activity Host to its parent Activity or Activity Host to register the Activity Host in the parent.
 
static MessageType< UnregisterActivityElementInternalMessageArgumentsUnregisterHostInternalMessage
 Internal message sent by an Activity Host to its parent Activity or Activity Host to unregister the Activity Host from the parent.
 
- Static Public Attributes inherited from kanzi::ExclusiveActivityHostConcept
static MessageType< ImplicitActivityChangeRequestMessageArgumentsNavigateNextMessage
 In an Exclusive Activity Host requests the activation of the next Activity node in that Exclusive Activity Host node.
 
static MessageType< ImplicitActivityChangeRequestMessageArgumentsNavigatePreviousMessage
 In an Exclusive Activity Host requests the activation of the previous Activity node in that Exclusive Activity Host node.
 
static PropertyType< string > ExclusiveActivityHostContentProperty
 Describes the content of an Exclusive Activity Host node.
 
static PropertyType< string > ActiveActivityProperty
 The name of the child Activity node of an Exclusive Activity Host, that is either in ActivityConcept::Status::Active or in ActivityConcept::Status::Activating state.
 
static PropertyType< string > ActivationPathProperty
 The activation path containing the branch of the Activity tree that is requested to be activated.
 
static PropertyType< ExclusiveActivityHostFocusingPolicyFocusOnActivatingActivityProperty
 Sets the policy that an Exclusive Activity Host uses to decide whether it tries to set focus to an activating Activity.
 
- Static Public Attributes inherited from kanzi::ValueControlledExclusiveActivityHostConcept
static PropertyType< string > ControllerProperty
 Sets the property type that the Exclusive Activity host uses to switch between its child Activities.
 
static PropertyType< string > DataSourceControllerPropertyPathProperty
 Sets the path in the DataSource object of an Exclusive Activity Host to a DataObject item that Exclusive Activity Host uses as the ControllerProperty.
 
- Protected Attributes inherited from kanzi::ActivityHostConceptImpl< TBaseClass, TDerivedClass >
string m_activationTarget
 The name of the Activity that is the candidate to be the activation target.
 
bool m_deserializing
 Indicates that this Activity Host is performing property deserialization.
 
bool m_hostHadFocus
 Indicates that the Activity Host had focus before it started to activate new activation target Activity.
 

Detailed Description

template<typename TBaseClass, typename TDerivedClass>
class kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >

Implementation class for ExclusiveActivityHost.

This is a helper class for exclusive activity host classes.

Constructor & Destructor Documentation

◆ ExclusiveActivityHostImpl()

template<typename TBaseClass , typename TDerivedClass >
kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::ExclusiveActivityHostImpl ( Domain * domain,
string_view name )
explicitprotected

Constructor.

Parameters
domainThe domain the new node belongs to.
nameThe name of the node.

Member Function Documentation

◆ makeEditorInfo()

template<typename TBaseClass , typename TDerivedClass >
PropertyTypeEditorInfoSharedPtr kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::makeEditorInfo ( )
static

◆ getControllerInputType()

◆ getNode() [1/2]

◆ getNode() [2/2]

◆ getActivitiesInfo()

◆ deserialize()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::deserialize ( string_view data)
overridevirtual

◆ getInputProviderPath()

template<typename TBaseClass , typename TDerivedClass >
string kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::getInputProviderPath ( ) const
overrideprotectedvirtual

◆ onAttachedOverride()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::onAttachedOverride ( )
overrideprotectedvirtual

Overrides onAttached method.

Reimplemented from kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >.

◆ onDetached()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::onDetached ( )
overrideprotected

Node::onDetached implementation.

◆ onNodePropertyChanged()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::onNodePropertyChanged ( AbstractPropertyType propertyType,
PropertyNotificationReason reason )
overrideprotected

Node::onNodePropertyChanged implementation.

To synchronize ControllerProperty with activation.

◆ addBindingRuntime()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::addBindingRuntime ( AbstractBindingRuntimeSharedPtr entry)
finalprotectedvirtual

ExclusiveActivityHostConcept::addBindingRuntime implementation;.

Implements kanzi::ValueControlledExclusiveActivityHostConcept.


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