ACF $AcfVersion:0$
Public Member Functions | List of all members
icomp::ICompositeComponent Class Referenceabstract

Composite component interface. More...

#include <ICompositeComponent.h>

Inheritance diagram for icomp::ICompositeComponent:
icomp::IComponent istd::IPolymorphic icomp::CCompositeComponent icomp::TSimComponentWrap< Base > icomp::TSimComponentsFactory< Base >

Public Member Functions

virtual IComponentSharedPtr GetSubcomponent (const QByteArray &componentId) const =0
 Get access to subcomponent using its ID.
 
virtual IComponentContextSharedPtr GetSubcomponentContext (const QByteArray &componentId) const =0
 Get access to context of subcomponent using its ID.
 
virtual IComponentUniquePtr CreateSubcomponent (const QByteArray &componentId) const =0
 Create instance of subcomponent using its ID.
 
virtual void OnSubcomponentDeleted (const IComponent *subcomponentPtr)=0
 Called if subcomponent is removed from memory.
 
- Public Member Functions inherited from icomp::IComponent
virtual const icomp::IComponentGetParentComponent (bool ownerOnly=false) const =0
 Get parent of this component.
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
 Get access to specified component interface.
 
virtual IComponentContextSharedPtr GetComponentContext () const =0
 Get access to component context describing all application-specified component information loaded from components registry.
 
virtual void SetComponentContext (const IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner)=0
 Set component context of this component.
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 

Detailed Description

Composite component interface.

Composite component extends component funtionality providing manangement and access to subcomponents. Please note, that subId for icomp::IComponent::GetInterface will be associated with subcomponent for composed components.

Definition at line 19 of file ICompositeComponent.h.

Member Function Documentation

◆ CreateSubcomponent()

virtual IComponentUniquePtr icomp::ICompositeComponent::CreateSubcomponent ( const QByteArray &  componentId) const
pure virtual

◆ GetSubcomponent()

virtual IComponentSharedPtr icomp::ICompositeComponent::GetSubcomponent ( const QByteArray &  componentId) const
pure virtual

◆ GetSubcomponentContext()

virtual IComponentContextSharedPtr icomp::ICompositeComponent::GetSubcomponentContext ( const QByteArray &  componentId) const
pure virtual

Get access to context of subcomponent using its ID.

Please note, that this does'n create component instance.

Implemented in icomp::CCompositeComponent, icomp::TSimComponentsFactory< Base >, and icomp::TSimComponentWrap< Base >.

◆ OnSubcomponentDeleted()

virtual void icomp::ICompositeComponent::OnSubcomponentDeleted ( const IComponent subcomponentPtr)
pure virtual

Called if subcomponent is removed from memory.

Parameters
subcomponentPtrpointer to component beeing removed. It cannot be NULL.

Implemented in icomp::CCompositeComponent, icomp::TSimComponentsFactory< Base >, and icomp::TSimComponentWrap< Base >.

Referenced by icomp::TComponentWrap< Component >::~TComponentWrap().


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