|
ACF $AcfVersion:0$
|
Singleton application component. More...
#include <CSingletonDocApplicationComp.h>
Public Types | |
| typedef icomp::CComponentBase | BaseClass |
| typedef imod::TSingleModelObserverBase< ibase::IRuntimeStatusProvider > | BaseClass2 |
Public Member Functions | |
| CSingletonDocApplicationComp () | |
| virtual bool | InitializeApplication (int argc, char **argv) override |
| Initialize the application object. | |
| virtual int | Execute (int argc, char **argv) override |
| Start execution loop of the application. | |
| virtual QString | GetHelpText () const override |
| Get information about the possible command line arguments of this application. | |
| virtual QStringList | GetApplicationArguments () const override |
| Get the command line arguments of this application. | |
Public Member Functions inherited from icomp::CComponentBase | |
| CComponentBase () | |
| Create component and assign it to specific context. | |
| virtual const icomp::IComponent * | GetParentComponent (bool ownerOnly=false) const override |
| Get parent of this component. | |
| virtual void * | GetInterface (const istd::CClassInfo &interfaceType, const QByteArray &subId="") override |
| Get access to specified component interface. | |
| virtual IComponentContextSharedPtr | GetComponentContext () const override |
| Get access to component context describing all application-specified component information loaded from components registry. | |
| virtual void | SetComponentContext (const IComponentContextSharedPtr &contextPtr, const icomp::IComponent *parentPtr, bool isParentOwner) override |
| Set component context of this component. | |
Public Member Functions inherited from istd::IPolymorphic | |
| virtual | ~IPolymorphic () |
Protected Member Functions | |
| virtual void | OnUpdate (const istd::IChangeable::ChangeSet &changeSet) override |
| Called on update of observed model. | |
| virtual void | OnComponentCreated () override |
| virtual void | OnComponentDestroyed () override |
Protected Member Functions inherited from icomp::CComponentBase | |
| bool | IsComponentActive () const |
| Check if component is active. | |
| virtual const icomp::IRealComponentStaticInfo & | GetComponentStaticInfo () const =0 |
| Get access to static info of this component. | |
Protected Member Functions inherited from imod::TSingleModelObserverBase< ibase::IRuntimeStatusProvider > | |
| virtual ibase::IRuntimeStatusProvider * | CastFromModel (imod::IModel *modelPtr) const |
| TSingleModelObserverBase () | |
| ibase::IRuntimeStatusProvider * | GetObservedObject () const |
| Get instance of observed object. | |
| ibase::IRuntimeStatusProvider * | GetObjectPtr () const |
| Get instance of observed object. | |
| bool | AttachOrSetObject (ibase::IRuntimeStatusProvider *objectPtr) |
| Attach to model of object or set object pointer, if no connection is possible. | |
| virtual bool | OnModelAttached (imod::IModel *modelPtr, istd::IChangeable::ChangeSet &changeMask) override |
| Callback invoked when an observable model is about to be attached to this observer. | |
| virtual bool | OnModelDetached (imod::IModel *modelPtr) override |
| Callback invoked when an observable model is about to be detached from this observer. | |
Protected Member Functions inherited from imod::CSingleModelObserverBase | |
| void | SetModelPtr (imod::IModel *modelPtr) |
| Set internal model pointer to specified value. | |
| CSingleModelObserverBase () | |
| virtual | ~CSingleModelObserverBase () |
| imod::IModel * | GetObservedModel () const |
| Get access to observed model. | |
| imod::IModel * | GetModelPtr () const |
| Get access to observed model. | |
| void | EnsureModelDetached () |
| Make sure this observer is detached. | |
| void | SetObservedIds (const istd::IChangeable::ChangeSet &changeMask) |
| Set list of ID's beeing observed. | |
| virtual bool | IsModelAttached (const imod::IModel *modelPtr=NULL) const override |
| Checks if the specified model is currently attached to this observer. | |
| virtual void | BeforeUpdate (imod::IModel *modelPtr) override |
| Callback invoked before an update of the observer's content occurs. | |
| virtual void | AfterUpdate (imod::IModel *modelPtr, const istd::IChangeable::ChangeSet &changeSet) override |
| Callback invoked after an update of the observer's content occurs. | |
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 |
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.
Definition at line 37 of file CSingletonDocApplicationComp.h.
| typedef imod::TSingleModelObserverBase<ibase::IRuntimeStatusProvider> iqtdoc::CSingletonDocApplicationComp::BaseClass2 |
Definition at line 38 of file CSingletonDocApplicationComp.h.
| iqtdoc::CSingletonDocApplicationComp::CSingletonDocApplicationComp | ( | ) |
|
overridevirtual |
Start execution loop of the application.
Implements ibase::IApplication.
|
overridevirtual |
Get the command line arguments of this application.
Implements ibase::IApplication.
|
overridevirtual |
Get information about the possible command line arguments of this application.
Implements ibase::IApplication.
|
overridevirtual |
Initialize the application object.
Implements ibase::IApplication.
|
overrideprotectedvirtual |
Reimplemented from icomp::CComponentBase.
|
overrideprotectedvirtual |
Reimplemented from icomp::CComponentBase.
|
overrideprotectedvirtual |
Called on update of observed model.
This method is designed to be overload by derrived classes.
Reimplemented from imod::CSingleModelObserverBase.