Implementation class for ActivityHostConcept. More...
#include <kanzi/ui/node/concept/activity/activity_host_concept_impl.hpp>
Public Member Functions | |
| 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::ActivityElementImpl< TBaseClass, TDerivedClass > | |
| Node * | getNode () override |
| Gets the underlying Node object. More... | |
| const Node * | getNode () const override |
| Gets the underlying Node object. More... | |
Public Member Functions inherited from kanzi::ActivityElement | |
| Node * | findChildHost (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... | |
| ActivityHistoryManager * | getHistoryManager () const |
| Gets the history manager of this activity element. More... | |
| ActivityElement * | getParentElement () |
| 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 void | onActivateActivityOverride (string_view activationPath)=0 |
| Derived classes implement this method to react to ActivateActivity message. More... | |
| virtual void | setActivationModifier (string_view activityName, BindingTokenWeakPtr weakModifier)=0 |
| Sets a property modifier to apply activation to a child Activity Node of an Activity Host. More... | |
| virtual | ~ActivityHostConcept ()=default |
| Destructor. More... | |
Protected Member Functions | |
| ActivityHostConceptImpl (Domain *domain, string_view name) | |
| Constructor. More... | |
| virtual vector< NodeWeakPtr > | getActiveOrAttachedActivating ()=0 |
| Returns all nodes of already attached Activity nodes except deactivating ones. More... | |
| virtual optional< ActivityHostConcept::ActivityInfo > | getActivityInfo (string_view name) const =0 |
| Gets the information for child Activity node with the given name. More... | |
| virtual vector< NodeWeakPtr > | getAttachedActivityNodes ()=0 |
| Returns all nodes of already attached Activity nodes. More... | |
| void | initialize () |
| Initializes this Activity Host Concept. More... | |
| void | registerInParentActivityElement () final |
| ActivityElement::registerInParentActivityElement implementation. 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... | |
| virtual void | onAttachedOverride () |
| Overrides the onAttached method. 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::ActivityID > | getActivityID () 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... | |
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 PropertyTypeEditorInfoSharedPtr | makeEditorInfo () |
Static Public Attributes inherited from kanzi::ActivityElement | |
| static PropertyType< bool > | AttachedProperty |
Static Public Attributes inherited from kanzi::ActivityHostConcept | |
| static MessageType< ActivationMessageArguments > | ActivateActivityMessage |
| You can send ActivateActivity to the Activity Host to activate an Activity. More... | |
| static MessageType< ActivationMessageArguments > | DeactivateActivityMessage |
| You can send DeactivateActivity to the Activity Host to deactivate an Activity. More... | |
| static MessageType< ActivityPrefabMessageArguments > | ActivityPrefabAttachedMessage |
| An Activity Host sends this message when it attaches the prefab of the Activity that is activated. More... | |
| static MessageType< ActivityPrefabMessageArguments > | ActivityPrefabDetachedMessage |
| An Activity Host sends this message when it attaches the prefab of the Activity that is activated. More... | |
| static MessageType< RegisterActivityElementInternalMessageArguments > | RegisterHostInternalMessage |
| 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< UnregisterActivityElementInternalMessageArguments > | UnregisterHostInternalMessage |
| Internal message sent by an Activity Host to its parent Activity or Activity Host to unregister the Activity Host from the parent. More... | |
| static MessageType< ActivityHostConceptInternalArguments > | RestoreFocusInternalMessage |
| Internal message sent by an Activity Host to its ancestor parent Activity Hosts to trigger the focus resolving. More... | |
Implementation class for ActivityHostConcept.
|
protectedvirtualdefault |
Destructor.
|
explicitprotected |
Constructor.
| domain | The domain the new node belongs to. |
| name | The name of the node. |
|
overridevirtual |
ActivityElement::notifyChildrenNodeTreeAvailable implementation.
Notifies also the Activity nodes that are already attached to an Activity Host node.
Reimplemented from kanzi::ActivityElement.
|
overridevirtual |
ActivityElement::serialize implementation.
Reimplemented from kanzi::ActivityElement.
|
overridevirtual |
ActivityElement::deserialize implementation.
Reimplemented from kanzi::ActivityElement.
Reimplemented in kanzi::ExclusiveActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostImpl< ContentLayout2D, ExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostImpl< ContentLayout3D, ExclusiveActivityHost3D >, kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, and kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >.
|
finalprotectedvirtual |
ActivityElement::registerInParentActivityElement implementation.
Implements kanzi::ActivityElement.
|
finalprotectedvirtual |
ActivityElement::unregisterInParentActivityElement implementation.
Implements kanzi::ActivityElement.
|
protected |
Initializes this Activity Host Concept.
|
protectedpure virtual |
Returns all nodes of already attached Activity nodes except deactivating ones.
Implemented in kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, and kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >.
|
protectedpure virtual |
Returns all nodes of already attached Activity nodes.
Implemented in kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, and kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >.
|
protectedpure virtual |
Gets the information for child Activity node with the given name.
Implemented in kanzi::ExclusiveActivityHostBaseImpl< TBaseClass, TDerivedClass >, kanzi::ParallelActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout2D, ExclusiveActivityHost2D >, kanzi::ExclusiveActivityHostBaseImpl< ContentLayout3D, ExclusiveActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout3D, ParallelActivityHost3D >, kanzi::ParallelActivityHostImpl< ContentLayout2D, ParallelActivityHost2D >, kanzi::DataDrivenExclusiveActivityHostImpl< TBaseClass, TDerivedClass >, kanzi::DataDrivenExclusiveActivityHostImpl< ContentLayout2D, DataDrivenExclusiveActivityHost2D >, and kanzi::DataDrivenExclusiveActivityHostImpl< ContentLayout3D, DataDrivenExclusiveActivityHost3D >.