Public Types | Public Member Functions | Protected Member Functions | List of all members
iqtdoc::CSingletonDocApplicationComp Class Reference

Singleton application component. More...

#include <CSingletonDocApplicationComp.h>

Inheritance diagram for iqtdoc::CSingletonDocApplicationComp:
icomp::CComponentBase imod::TSingleModelObserverBase< ibase::IRuntimeStatusProvider > ibase::IApplication icomp::IComponent imod::CSingleModelObserverBase istd::IPolymorphic istd::IPolymorphic imod::IObserver istd::IPolymorphic

Public Types

typedef icomp::CComponentBase BaseClass
 
typedef
imod::TSingleModelObserverBase
< ibase::IRuntimeStatusProvider
BaseClass2
 

Public Member Functions

 CSingletonDocApplicationComp ()
 
virtual bool InitializeApplication (int argc, char **argv)
 Initialize the application object. More...
 
virtual int Execute (int argc, char **argv)
 Start execution loop of the application. More...
 
virtual QString GetHelpText () const
 Get information about the possible command line arguments of this application. More...
 
virtual QStringList GetApplicationArguments () const
 Get the command line arguments of this application. More...
 
- 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 ()
 

Protected Member Functions

virtual void OnUpdate (const istd::IChangeable::ChangeSet &changeSet)
 Called on update of observed model. More...
 
virtual void OnComponentCreated ()
 
virtual void OnComponentDestroyed ()
 
- Protected Member Functions inherited from icomp::CComponentBase
bool IsComponentActive () const
 Check if component is active. More...
 
virtual const
icomp::IRealComponentStaticInfo
GetComponentStaticInfo () const =0
 Get access to static info of this component. More...
 
- Protected Member Functions inherited from imod::TSingleModelObserverBase< ibase::IRuntimeStatusProvider >
virtual
ibase::IRuntimeStatusProvider
CastFromModel (imod::IModel *modelPtr) const
 
 TSingleModelObserverBase ()
 
ibase::IRuntimeStatusProviderGetObservedObject () const
 Get instance of observed object. More...
 
ibase::IRuntimeStatusProviderGetObjectPtr () const
 Get instance of observed object. More...
 
bool AttachOrSetObject (ibase::IRuntimeStatusProvider *objectPtr)
 Attach to model of object or set object pointer, if no connection is possible. More...
 
virtual bool OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask)
 This call back function will be called, if an observable object is about to be attached. More...
 
virtual bool OnModelDetached (imod::IModel *modelPtr)
 This call back function will be called, if an observable object is about to be detached. More...
 
- Protected Member Functions inherited from imod::CSingleModelObserverBase
void SetModelPtr (imod::IModel *modelPtr)
 Set internal model pointer to specified value. More...
 
 CSingleModelObserverBase ()
 
virtual ~CSingleModelObserverBase ()
 
imod::IModelGetObservedModel () const
 Get access to observed model. More...
 
imod::IModelGetModelPtr () const
 Get access to observed model. More...
 
void EnsureModelDetached ()
 Make sure this observer is detached. More...
 
void SetObservedIds (const istd::IChangeable::ChangeSet &changeMask)
 Set list of ID's beeing observed. More...
 
virtual bool IsModelAttached (const imod::IModel *modelPtr=NULL) const
 Check if specified model is attached. More...
 
virtual void BeforeUpdate (imod::IModel *modelPtr)
 This function will be called before update of the observer contents occures. More...
 
virtual void AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet)
 This function will be called after update of the observer contents occures. More...
 

Additional Inherited Members

- Protected Types inherited from imod::TSingleModelObserverBase< ibase::IRuntimeStatusProvider >
typedef CSingleModelObserverBase BaseClass
 
typedef
ibase::IRuntimeStatusProvider 
ModelType
 
- Protected Types inherited from imod::CSingleModelObserverBase
typedef imod::IModel ModelType
 
- 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())
 
- Static Protected Attributes inherited from imod::CSingleModelObserverBase
static const
istd::IChangeable::ChangeSet 
s_undoChanges
 

Detailed Description

Singleton application component.

This component wraps a "real" application component implementation and allows only a single execution of the application instance.

Definition at line 29 of file CSingletonDocApplicationComp.h.

Member Typedef Documentation

Definition at line 37 of file CSingletonDocApplicationComp.h.

Definition at line 38 of file CSingletonDocApplicationComp.h.

Constructor & Destructor Documentation

iqtdoc::CSingletonDocApplicationComp::CSingletonDocApplicationComp ( )

Member Function Documentation

virtual int iqtdoc::CSingletonDocApplicationComp::Execute ( int  argc,
char **  argv 
)
virtual

Start execution loop of the application.

Implements ibase::IApplication.

virtual QStringList iqtdoc::CSingletonDocApplicationComp::GetApplicationArguments ( ) const
virtual

Get the command line arguments of this application.

Implements ibase::IApplication.

virtual QString iqtdoc::CSingletonDocApplicationComp::GetHelpText ( ) const
virtual

Get information about the possible command line arguments of this application.

Implements ibase::IApplication.

virtual bool iqtdoc::CSingletonDocApplicationComp::InitializeApplication ( int  argc,
char **  argv 
)
virtual

Initialize the application object.

Implements ibase::IApplication.

virtual void iqtdoc::CSingletonDocApplicationComp::OnComponentCreated ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.

virtual void iqtdoc::CSingletonDocApplicationComp::OnComponentDestroyed ( )
protectedvirtual

Reimplemented from icomp::CComponentBase.

virtual void iqtdoc::CSingletonDocApplicationComp::OnUpdate ( const istd::IChangeable::ChangeSet changeSet)
protectedvirtual

Called on update of observed model.

This method is designed to be overload by derrived classes.

Reimplemented from imod::CSingleModelObserverBase.


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

© 2007-2017 Witold Gantzke and Kirill Lepskiy