|
ACF $AcfVersion:0$
|
Composite component interface. More...
#include <ICompositeComponent.h>
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::IComponent * | GetParentComponent (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 () |
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.
|
pure virtual |
Create instance of subcomponent using its ID.
Implemented in icomp::CCompositeComponent, icomp::TSimComponentsFactory< Base >, and icomp::TSimComponentWrap< Base >.
Referenced by icomp::TComponentCloneWrap< BaseClass >::CloneMe(), icomp::TFactoryMember< Interface >::CreateComponent(), and icomp::TMultiFactoryMember< Interface >::CreateComponent().
|
pure virtual |
Get access to subcomponent using its ID.
Implemented in icomp::CCompositeComponent, icomp::TSimComponentsFactory< Base >, and icomp::TSimComponentWrap< Base >.
Referenced by icomp::TComponentCloneWrap< BaseClass >::CloneMe(), icomp::TMultiReferenceMember< Interface >::EnsureInitialized(), and icomp::TReferenceMember< Interface >::EnsureInitialized().
|
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 >.
|
pure virtual |
Called if subcomponent is removed from memory.
| subcomponentPtr | pointer 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().