ICF 3.1.1.10
Technical documentation of ICF Libraries
ICompositeComponent.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#pragma once
7
8
9// ICF includes
10#include <icomp/IComponent.h>
11
12
13namespace icomp
14{
15
16
22class ICompositeComponent: virtual public IComponent
23{
24public:
28 virtual IComponent* GetSubcomponent(const QByteArray& componentId) const = 0;
29
34 virtual const IComponentContext* GetSubcomponentContext(const QByteArray& componentId) const = 0;
35
39 virtual std::unique_ptr<IComponent> CreateSubcomponent(const QByteArray& componentId) const = 0;
40
45 virtual void OnSubcomponentDeleted(const IComponent* subcomponentPtr) = 0;
46};
47
48
49} // namespace icomp
50
51
Provide session context of component.
Main component interface.
Definition IComponent.h:35
Composite component interface.
virtual std::unique_ptr< IComponent > 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.
virtual const IComponentContext * GetSubcomponentContext(const QByteArray &componentId) const =0
Get access to context of subcomponent using its ID.
virtual IComponent * GetSubcomponent(const QByteArray &componentId) const =0
Get access to subcomponent using its ID.
Package with interfaces and class used for components concept.

© Witold Gantzke and Kirill Lepskiy