ICF 3.0.5.47
Technical documentation of ICF Libraries
iloggui::CMessageBoxComp Class Reference

Message container displaying messages as log list. More...

#include <CMessageBoxComp.h>

Inheritance diagram for iloggui::CMessageBoxComp:
Collaboration diagram for iloggui::CMessageBoxComp:

Public Types

typedef icomp::CComponentBase BaseClass
 
- Public Types inherited from ilog::IMessageConsumer
typedef std::shared_ptr< const istd::IInformationProviderMessagePtr
 

Signals

void EmitAddMessage ()
 

Public Member Functions

 CMessageBoxComp ()
 
bool IsMessageSupported (int messageCategory=-1, int messageId=-1, const QByteArray *senderIdPtr=nullptr) const override
 Check if some messge is supported.
 
void AddMessage (const MessagePtr &messagePtr) override
 Adds a message item to the container.
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context.
 
 CComponentBase (const CComponentBase &)=delete
 
CComponentBaseoperator= (const CComponentBase &)=delete
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component.
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface.
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry.
 
virtual void SetComponentContext (const IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component.
 
- Public Member Functions inherited from icomp::IComponent
- Public Member Functions inherited from ilog::IMessageConsumer

Protected Slots

virtual void OnAddMessage ()
 

Protected Member Functions

QIcon GetCategoryIcon (int category) const
 Get icons corresponding to specified information category.
 
void OnComponentCreated () override
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active.
 
virtual void OnComponentDestroyed ()
 
virtual const IRealComponentStaticInfoGetComponentStaticInfo () const =0
 Get access to static info of this component.
 

Additional Inherited Members

- Static Protected Member Functions inherited from icomp::CComponentBase
static const IRealComponentStaticInfoInitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Message container displaying messages as log list.

Definition at line 29 of file CMessageBoxComp.h.

Member Typedef Documentation

◆ BaseClass

Constructor & Destructor Documentation

◆ CMessageBoxComp()

iloggui::CMessageBoxComp::CMessageBoxComp ( )

Member Function Documentation

◆ AddMessage()

void iloggui::CMessageBoxComp::AddMessage ( const MessagePtr & messagePtr)
overridevirtual

Adds a message item to the container.

Implements ilog::IMessageConsumer.

◆ EmitAddMessage

void iloggui::CMessageBoxComp::EmitAddMessage ( )
signal

◆ GetCategoryIcon()

QIcon iloggui::CMessageBoxComp::GetCategoryIcon ( int category) const
protected

Get icons corresponding to specified information category.

◆ IsMessageSupported()

bool iloggui::CMessageBoxComp::IsMessageSupported ( int messageCategory = -1,
int messageId = -1,
const QByteArray * senderIdPtr = nullptr ) const
overridevirtual

Check if some messge is supported.

Parameters
messageCategorycategory of message or -1 if undefined,
See also
istd::IInformationProvider::InformationCategory.
Parameters
messageIdID of message as defined in istd::IInformationProvider or -1 if undefined.
senderIdoptional ID identifying the sender object.

Implements ilog::IMessageConsumer.

◆ OnAddMessage

virtual void iloggui::CMessageBoxComp::OnAddMessage ( )
protectedvirtualslot

◆ OnComponentCreated()

void iloggui::CMessageBoxComp::OnComponentCreated ( )
overrideprotectedvirtual

Reimplemented from icomp::CComponentBase.


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

© Witold Gantzke and Kirill Lepskiy