Public Types | Public Member Functions | List of all members
idoc::CDocumentManagerListenerComp Class Reference

#include <CDocumentManagerListenerComp.h>

Inheritance diagram for idoc::CDocumentManagerListenerComp:
icomp::CComponentBase imod::TSingleModelObserverBase< idoc::IDocumentManager > imod::IModelSelection icomp::IComponent imod::CSingleModelObserverBase istd::IChangeable istd::IPolymorphic imod::IObserver istd::IPolymorphic istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
typedef
imod::TSingleModelObserverBase
< idoc::IDocumentManager
BaseClass2
 
- Public Types inherited from imod::TSingleModelObserverBase< idoc::IDocumentManager >
typedef CSingleModelObserverBase BaseClass
 
typedef idoc::IDocumentManager ModelType
 
- Public Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 
- Public Types inherited from istd::IChangeable
enum  ChangeFlags {
  CF_ACF_INTERNAL = 1 << 0, CF_MODEL = 1 << 1, CF_ABORTED = 1 << 2, CF_DELEGATED = 1 << 3,
  CF_NO_UNDO = 1 << 5
}
 
enum  SupportedOperations {
  SO_NONE = 0, SO_OBSERVE = 1, SO_COPY = 2, SO_CLONE = 4,
  SO_COMPARE = 8
}
 Flags for supported operations. More...
 
enum  CompatibilityMode { CM_STRICT, CM_WITHOUT_REFS, CM_WITH_REFS, CM_CONVERT }
 Control how relationship betweeen objects are interpreted. More...
 

Public Member Functions

 CDocumentManagerListenerComp ()
 
virtual imod::IModelGetSelectedModel () const
 Get selected model. More...
 
virtual void SetSelectedModel (imod::IModel *modelPtr)
 Set selected model. More...
 
virtual void OnUpdate (int updateFlags, istd::IPolymorphic *updateParamsPtr)
 
- Public Member Functions inherited from icomp::CComponentBase
 CComponentBase ()
 Create component and assign it to specific context. More...
 
virtual const ICompositeComponentGetParentComponent (bool ownerOnly=false) const
 Get parent of this component. More...
 
virtual void * GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="")
 Get access to specified component interface. More...
 
virtual const IComponentContextGetComponentContext () const
 Get access to component context describing all application-specified component information loaded from components registry. More...
 
virtual void SetComponentContext (const icomp::IComponentContext *contextPtr, const ICompositeComponent *parentPtr, bool isParentOwner)
 Set component context of this component. More...
 
- Public Member Functions inherited from istd::IPolymorphic
virtual ~IPolymorphic ()
 
- Public Member Functions inherited from imod::TSingleModelObserverBase< idoc::IDocumentManager >
 TSingleModelObserverBase ()
 
idoc::IDocumentManagerGetObjectPtr () const
 
bool AttachOrSetObject (idoc::IDocumentManager *objectPtr)
 Attach to model of object or set object pointer, if no connection is possible. More...
 
virtual bool OnAttached (imod::IModel *modelPtr)
 This call back function will be called, if an observable object is about to be attached. More...
 
virtual bool OnDetached (imod::IModel *modelPtr)
 This call back function will be called, if an observable object is about to be detached. More...
 
- Public Member Functions inherited from imod::CSingleModelObserverBase
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetModelPtr () const
 Get access to observed model. More...
 
void EnsureModelDetached ()
 Make sure this observer is detached. More...
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const
 Check if specified model is attached. More...
 
virtual void BeforeUpdate (imod::IModel *modelPtr, int updateFlags, istd::IPolymorphic *updateParamsPtr)
 This function will be called before update of the observer contents occures. More...
 
virtual void AfterUpdate (imod::IModel *modelPtr, int updateFlags, istd::IPolymorphic *updateParamsPtr)
 This function will be called after update of the observer contents occures. More...
 
- Public Member Functions inherited from istd::IChangeable
virtual void BeginChanges (int changeFlags, istd::IPolymorphic *changeParamsPtr=NULL)
 Starts the change transaction. More...
 
virtual void EndChanges (int changeFlags, istd::IPolymorphic *changeParamsPtr=NULL)
 Ends the change transaction. More...
 
virtual int GetSupportedOperations () const
 Get set of flags for supported operations. More...
 
virtual bool CopyFrom (const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
 Copy this object from another one. More...
 
virtual bool IsEqual (const IChangeable &object) const
 Compare this object with another object. More...
 
virtual IChangeableCloneMe (CompatibilityMode mode=CM_WITHOUT_REFS) const
 Make a copy of this object. More...
 

Additional Inherited Members

- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< idoc::IDocumentManager >
virtual idoc::IDocumentManagerCastFromModel (imod::IModel *modelPtr) const
 
- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value. More...
 
- Protected Member Functions inherited from istd::IChangeable
virtual void OnBeginChanges (int changeFlags, istd::IPolymorphic *changeParamsPtr)
 Callback function for begin change event. More...
 
virtual void OnEndChanges (int changeFlags, istd::IPolymorphic *changeParamsPtr)
 Callback function for end change event. More...
 
- Static Protected Member Functions inherited from icomp::CComponentBase
static const
icomp::IRealComponentStaticInfo
InitStaticInfo (IComponent *componentPtr)
 
static QByteArray GetComponentId (const icomp::IComponentContext *componentContextPtr, const QByteArray &contextId=QByteArray())
 

Detailed Description

Deprecated:

Definition at line 19 of file CDocumentManagerListenerComp.h.

Member Typedef Documentation

Definition at line 25 of file CDocumentManagerListenerComp.h.

Definition at line 26 of file CDocumentManagerListenerComp.h.

Constructor & Destructor Documentation

idoc::CDocumentManagerListenerComp::CDocumentManagerListenerComp ( )

Member Function Documentation

virtual imod::IModel* idoc::CDocumentManagerListenerComp::GetSelectedModel ( ) const
virtual

Get selected model.

Implements imod::IModelSelection.

virtual void idoc::CDocumentManagerListenerComp::OnUpdate ( int  updateFlags,
istd::IPolymorphic updateParamsPtr 
)
virtual

Reimplemented from imod::CSingleModelObserverBase.

virtual void idoc::CDocumentManagerListenerComp::SetSelectedModel ( imod::IModel modelPtr)
virtual

Set selected model.

Implements imod::IModelSelection.


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

© 2007-2011 Witold Gantzke and Kirill Lepskiy