Kanzi  3.9.6
Kanzi Engine API
kanzi::ActivityElementImpl< TBaseClass, TDerivedClass > Class Template Reference

ActivityElement implementation class. More...

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

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

Public Member Functions

NodegetNode () override
 Gets the underlying Node object. More...
 
const NodegetNode () const override
 Gets the underlying Node object. 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...
 
virtual void deserialize (string_view data)
 Deserializes the activity element from a byte buffer. 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...
 
virtual string serialize ()
 Serializes the activity element to a byte buffer. 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...
 

Protected Member Functions

 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::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...
 
virtual void notifyChildrenNodeTreeAvailable ()
 Notifies child activity elements that node info tree is available. 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...
 
virtual void registerInParentActivityElement ()=0
 Derived classes implement this function to register themselves in the parent during the construction of the activity graph. 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...
 
virtual void unregisterInParentActivityElement ()=0
 Derived classes implement this function to unregister themselves from the parent during the destruction of the activity graph. More...
 
void updateActivityBrowserProperties ()
 Triggers the Activity Browser to update the properties of the Activity Element. More...
 

Additional Inherited Members

- 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 Attributes inherited from kanzi::ActivityElement
static PropertyType< bool > AttachedProperty
 

Detailed Description

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

ActivityElement implementation class.

See also
ActivityElement.

Constructor & Destructor Documentation

◆ ActivityElementImpl()

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

Constructor.

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

◆ ~ActivityElementImpl()

template<typename TBaseClass, typename TDerivedClass>
kanzi::ActivityElementImpl< TBaseClass, TDerivedClass >::~ActivityElementImpl ( )
overrideprotecteddefault

Destructor.

Member Function Documentation

◆ getNode() [1/2]

◆ getNode() [2/2]

◆ initialize()

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

Initializes the activity element.

◆ onAttached()

template<typename TBaseClass , typename TDerivedClass >
void kanzi::ActivityElementImpl< TBaseClass, TDerivedClass >::onAttached ( )
overrideprotected

◆ onAttachedOverride()

◆ onDetached()

◆ onNodePropertyChanged()


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