Kanzi  3.9.5
Kanzi Engine API
kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass > Class Template Reference

Implementation class for DataDrivenExclusiveActivityHostConcept and ExclusiveActivityHostConcept. More...

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

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

Public Member Functions

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

Static Public Member Functions

static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 Returns PropertyType editor info of properties of Data-Driven Exclusive Activity Host. More...
 
- Static Public Member Functions inherited from kanzi::ActivityElement
static string getFirstElement (string_view activationSequence)
 Gets the first element of the activation sequence. More...
 
static string getRestToForward (string_view activationSequence)
 Gets the remainder of the activation sequence. More...
 
template<typename Type >
static bool isActivityElement (const Type &object)
 Returns whether an object is an ActivityElement. More...
 
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. More...
 
static bool isActivityHostMetaclass (const Metaclass *metaclass)
 Checks whether the given Metaclass is an ActivityHostConcept metaclass or contains it as a mixin metaclass. More...
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 
- Static Public Member Functions inherited from kanzi::ExclusiveActivityHostConcept
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 Returns PropertyType editor info of exclusive activity concept. More...
 
- Static Public Member Functions inherited from kanzi::DataDrivenExclusiveActivityHostConcept
static string getNameForIndex (int index)
 Returns a unique name for the data Activity at the given index in the Data Source List. More...
 
static PropertyTypeEditorInfoSharedPtr makeEditorInfo ()
 Returns PropertyType editor info of DataDrivenExclusiveActivityHostConcept. More...
 

Protected Member Functions

 DataDrivenExclusiveActivityHostImpl (Domain *domain, string_view name)
 Constructor. More...
 
optional< ActivityHostConcept::ActivityInfogetActivityInfo (string_view name) const override
 ExclusiveActivityHostBaseImpl::getActivityInfo implementation. More...
 
void onAttachedOverride () override
 Overrides the onAttached method. More...
 
void onDetached () override
 Node::onDetached implementation. More...
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation. More...
 
NodeSharedPtr onPrefabLoaded (PrefabTemplateSharedPtr prefabTemplate, string_view activityName) override
 ExclusiveActivityHostConcept::onPrefabLoaded implementation. More...
 
- Protected Member Functions inherited from kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >
void activate (const ActivityHostConcept::ActivityInfo &activity)
 Requests the ExclusiveActivityHost to activate an Activity node. More...
 
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. More...
 
void deactivate ()
 Requests the ExclusiveActivityHost to deactivate the currently active Activity node. More...
 
 ExclusiveActivityHostBaseImpl (Domain *domain, string_view name)
 Constructor. More...
 
vector< string > getActivatingNames () override
 ActivityHostConcept::getActivatingNames implementation. More...
 
string getActiveOrActivatingName () const
 Gets the currently active or activating Activity node. More...
 
vector< NodeWeakPtrgetActiveOrAttachedActivating () override
 ActivityHostConceptImpl::getActiveOrAttachedActivating implementation. More...
 
const vector< ExclusiveActivityHostConcept::ActivityInExclusiveHostInfo > & getActivitiesInfo () const override
 ExclusiveActivityHostConcept::getActivitiesInfo implementation. More...
 
optional< ActivityHostConcept::ActivityInfogetActivityInfo (string_view name) const override
 ActivityHostConceptImpl::getActivityInfo implementation. More...
 
vector< NodeWeakPtrgetAttachedActivityNodes () override
 ActivityHostConceptImpl::getAttachedActivityNodes implementation. More...
 
NodegetNode () override
 ExclusiveActivityHostConcept::getNode implementation. More...
 
const NodegetNode () const override
 ExclusiveActivityHostConcept::getNode implementation. More...
 
void initialize ()
 Initializes this exclusive activity host. More...
 
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. More...
 
void onActivateActivityOverride (string_view activationPath) override
 ActivityHostConcept::onActivateActivityOverride implementation. More...
 
void onActivityActivated (NodeSharedPtr activity, string_view prefabPath) override
 ExclusiveActivityHostConcept::onActivityActivated implementation. More...
 
void onActivityDeactivated (NodeSharedPtr activity) override
 ExclusiveActivityHostConcept::onActivityDeactivated implementation. More...
 
void onAttachedOverride () override
 ActivityElement::onAttachedOverride implementation. More...
 
void onDetached () override
 Node::onDetached implementation. More...
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation. More...
 
void resolveFocusWithPolicy (Node &activityNode) override
 ActivityHostConcept::resolveFocusWithPolicy implementation. More...
 
virtual ~ExclusiveActivityHostBaseImpl ()=default
 Destructor. More...
 
- Protected Member Functions inherited from kanzi::ActivityHostConceptImpl< TBaseClass, TDerivedClass >
 ActivityHostConceptImpl (Domain *domain, string_view name)
 Constructor. More...
 
void clearCurrentActivationTarget () const
 Clears current activation target. More...
 
void initialize ()
 Initializes this Activity Host Concept. More...
 
void registerInParentActivityElement () final
 ActivityElement::registerInParentActivityElement implementation. More...
 
void resolveFocusOnActivated (Node &activityNode)
 Performs the necessary operations to fix the application focus when an Activity has activated in this Activity Host. More...
 
void unregisterInParentActivityElement () final
 ActivityElement::unregisterInParentActivityElement implementation. More...
 
virtual ~ActivityHostConceptImpl ()=default
 Destructor. More...
 
- Protected Member Functions inherited from kanzi::ActivityElementImpl< TBaseClass, TDerivedClass >
 ActivityElementImpl (Domain *domain, string_view name)
 Constructor. More...
 
void initialize ()
 Initializes the activity element. More...
 
void onAttached () override
 Node::onAttached implementation. More...
 
void onDetached () override
 Node::onDetached implementation. More...
 
void onNodePropertyChanged (AbstractPropertyType propertyType, PropertyNotificationReason reason) override
 Node::onNodePropertyChanged implementation. More...
 
 ~ActivityElementImpl () override=default
 Destructor. More...
 
- 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. More...
 
string getPathInParent ()
 Gets the activation path of this activity element relative to its parent. More...
 
void initialize ()
 Initializes the activity element. More...
 
bool isRootActivityElement () const
 Returns whether an ActivityElement is the root Activity Host node of the Screen node. More...
 
void onForceTrigger (const ActivityBrowserController::ForceTriggerMessageArguments &args)
 Message handler for ActivityBrowserController::ForceTriggerMessage. More...
 
void onNodeInfoTreeAvailable (const ActivityBrowserController::NodeInfoTreeAvailableArguments &)
 Message handler for ActivityBrowserController::NodeInfoTreeAvailableMessage. More...
 
void registerChildHost (string_view hostPath)
 Registers a child host in this activity element. More...
 
void setActivityID (optional< ActivityBrowserController::ActivityID > activityID)
 Sets the unique ID that is used by the implementation of the Activity Browser. More...
 
void unregisterChildHost (string_view hostName)
 Unregisters a child host from this activity element. More...
 
void updateActivityBrowserProperties ()
 Triggers the Activity Browser to update the properties of the Activity Element. More...
 

Additional Inherited Members

- Public Types inherited from kanzi::ActivityHostConcept
enum  ActivationStatus { ActivationStatus::PreparingForActivation, ActivationStatus::ParallelAnimation, ActivationStatus::ExclusiveAnimation }
 Specifies possible stages for internal tracking of activation of an Activity. More...
 
using ActivityInfoContainer = vector< ActivityInfo >
 
enum  DeactivationStatus { DeactivationStatus::ExclusiveAnimation, DeactivationStatus::ParallelAnimation, DeactivationStatus::WaitingForRelease }
 Specifies possible stages for internal tracking of deactivation of an Activity. More...
 
- Public Types inherited from kanzi::ExclusiveActivityHostConcept
enum  ExclusiveActivityHostFocusingPolicy { ExclusiveActivityHostFocusingPolicy::WhenHostHasFocus, ExclusiveActivityHostFocusingPolicy::AlwaysFocus, ExclusiveActivityHostFocusingPolicy::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< bool > AttachedProperty
 
- Static Public Attributes inherited from kanzi::ActivityHostConcept
static MessageType< ActivationMessageArgumentsActivateActivityMessage
 You can send ActivateActivity to the Activity Host to activate an Activity. More...
 
static MessageType< ActivationMessageArgumentsDeactivateActivityMessage
 You can send DeactivateActivity to the Activity Host to deactivate an Activity. More...
 
static MessageType< ActivityPrefabMessageArgumentsActivityPrefabAttachedMessage
 An Activity Host sends this message when it attaches the prefab of the Activity that is activated. More...
 
static MessageType< ActivityPrefabMessageArgumentsActivityPrefabDetachedMessage
 An Activity Host sends this message when it attaches the prefab of the Activity that is activated. More...
 
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. More...
 
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. More...
 
- 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. More...
 
static MessageType< ImplicitActivityChangeRequestMessageArgumentsNavigatePreviousMessage
 In an Exclusive Activity Host requests the activation of the previous Activity node in that Exclusive Activity Host node. More...
 
static PropertyType< string > ExclusiveActivityHostContentProperty
 Describes the content of an Exclusive Activity Host node. More...
 
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. More...
 
static PropertyType< string > ActivationPathProperty
 The activation path containing the branch of the Activity tree that is requested to be activated. More...
 
static PropertyType< ExclusiveActivityHostFocusingPolicyFocusOnActivatingActivityProperty
 Sets the policy that an Exclusive Activity Host uses to decide whether it tries to set focus to an activating Activity. More...
 
- Static Public Attributes inherited from kanzi::DataDrivenExclusiveActivityHostConcept
static constexpr const char * s_activeDataActivityName
 Public name which Kanzi uses to refer to the currently and exclusively active data Activity of a Data-Driven Exclusive Activity Host. More...
 
static constexpr int s_defaultActiveActivityIndex
 The default value of the DataDrivenExclusiveActivityHostConcept::ActiveActivityIndexProperty. More...
 
static PropertyType< ResourceSharedPtrActivitySourceProperty
 Sets the DataObject that provides the data for the Activities of a Data-Driven Exclusive Activity Host. More...
 
static PropertyType< string > ActivityTemplateProperty
 Sets the prefab template that a Data-Driven Exclusive Activity Host uses for the Activities that it creates. More...
 
static PropertyType< int > ActiveActivityIndexProperty
 The index of the active Activity in the Data-Driven Exclusive Activity Host. More...
 
- 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. More...
 
bool m_deserializing
 Indicates that this Activity Host is performing property deserialization. More...
 
bool m_hostHadFocus
 Indicates that the Activity Host had focus before it started to activate new activation target Activity. More...
 

Detailed Description

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

Implementation class for DataDrivenExclusiveActivityHostConcept and ExclusiveActivityHostConcept.

Since
Kanzi 3.9.0

Constructor & Destructor Documentation

◆ DataDrivenExclusiveActivityHostImpl()

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

Constructor.

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

Member Function Documentation

◆ makeEditorInfo()

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

Returns PropertyType editor info of properties of Data-Driven Exclusive Activity Host.

◆ getNode() [1/2]

template<typename TBaseClass , typename TDerivedClass >
Node * kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::getNode ( )
overridevirtual

◆ getNode() [2/2]

template<typename TBaseClass , typename TDerivedClass >
const Node * kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::getNode ( ) const
overridevirtual

◆ initialize()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::initialize ( )

Initialize with internal activities factory.

◆ getActivityInfo()

template<typename TBaseClass , typename TDerivedClass >
optional< ActivityHostConcept::ActivityInfo > kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::getActivityInfo ( string_view  name) const
overrideprotectedvirtual

ExclusiveActivityHostBaseImpl::getActivityInfo implementation.

Additional handling for the Data Source List item names.

Implements kanzi::ActivityHostConceptImpl< TBaseClass, TDerivedClass >.

◆ onNodePropertyChanged()

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

Node::onNodePropertyChanged implementation.

◆ onAttachedOverride()

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

Overrides the onAttached method.

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

◆ onDetached()

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

Node::onDetached implementation.

◆ onPrefabLoaded()

template<typename TBaseClass , typename TDerivedClass >
NodeSharedPtr kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >::onPrefabLoaded ( PrefabTemplateSharedPtr  prefabTemplate,
string_view  activityName 
)
overrideprotectedvirtual

ExclusiveActivityHostConcept::onPrefabLoaded implementation.

Additional preparation for the Activity nodes from the Data Source.

Implements kanzi::ExclusiveActivityHostConcept.


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