Public Types | Public Member Functions | Protected Member Functions | List of all members
iauth::CRightsBasedEnablerComp Class Reference

State component implementation based on underlaying rights provider. More...

#include <CRightsBasedEnablerComp.h>

Inheritance diagram for iauth::CRightsBasedEnablerComp:
icomp::CComponentBase iprm::IEnableableParam imod::TSingleModelObserverBase< iauth::IRightsProvider > icomp::IComponent iser::ISerializable imod::CSingleModelObserverBase istd::IPolymorphic istd::IChangeable imod::IObserver istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
< iauth::IRightsProvider

Public Member Functions

 I_ASSIGN_TO (m_rightsProviderModelCompPtr, m_rightsProviderCompPtr, true)
 CRightsBasedEnablerComp ()
virtual bool IsEnabled () const
virtual bool IsEnablingAllowed () const
virtual bool SetEnabled (bool isEnabled=true)
virtual bool Serialize (iser::IArchive &archive)
- Public Member Functions inherited from icomp::IComponent
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const =0
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")=0
virtual const IComponentContextGetComponentContext () const =0
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)=0

Protected Member Functions

virtual void OnComponentCreated ()
virtual void OnComponentDestroyed ()
virtual void OnUpdate (int updateFlags, istd::IPolymorphic *updateParamsPtr)
- Protected Member Functions inherited from imod::TSingleModelObserverBase< iauth::IRightsProvider >
virtual iauth::IRightsProviderCastFromModel (imod::IModel *modelPtr) const
 TSingleModelObserverBase ()
iauth::IRightsProviderGetObjectPtr () const
bool AttachOrSetObject (iauth::IRightsProvider *objectPtr)
virtual bool OnAttached (imod::IModel *modelPtr)
virtual bool OnDetached (imod::IModel *modelPtr)
- Protected Member Functions inherited from imod::IObserver
virtual bool IsModelAttached (const IModel *modelPtr=NULL) const =0
virtual void BeforeUpdate (IModel *modelPtr, int updateFlags, istd::IPolymorphic *updateParamsPtr)=0
virtual void AfterUpdate (IModel *modelPtr, int updateFlags, istd::IPolymorphic *updateParamsPtr)=0

Additional Inherited Members

- Protected Types inherited from imod::TSingleModelObserverBase< iauth::IRightsProvider >
typedef CSingleModelObserverBase BaseClass
typedef iauth::IRightsProvider ModelType

Detailed Description

State component implementation based on underlaying rights provider.

Definition at line 24 of file CRightsBasedEnablerComp.h.

Member Typedef Documentation

Definition at line 30 of file CRightsBasedEnablerComp.h.

Definition at line 31 of file CRightsBasedEnablerComp.h.

Constructor & Destructor Documentation

iauth::CRightsBasedEnablerComp::CRightsBasedEnablerComp ( )

Member Function Documentation

iauth::CRightsBasedEnablerComp::I_ASSIGN_TO ( m_rightsProviderModelCompPtr  ,
m_rightsProviderCompPtr  ,
virtual bool iauth::CRightsBasedEnablerComp::IsEnabled ( ) const
virtual bool iauth::CRightsBasedEnablerComp::IsEnablingAllowed ( ) const
virtual void iauth::CRightsBasedEnablerComp::OnComponentCreated ( )
virtual void iauth::CRightsBasedEnablerComp::OnComponentDestroyed ( )
virtual void iauth::CRightsBasedEnablerComp::OnUpdate ( int  updateFlags,
istd::IPolymorphic updateParamsPtr 
virtual bool iauth::CRightsBasedEnablerComp::Serialize ( iser::IArchive archive)
virtual bool iauth::CRightsBasedEnablerComp::SetEnabled ( bool  isEnabled = true)

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

© 2007-2011 Witold Gantzke and Kirill Lepskiy