ADTF  3.15.1
qt_ui_service< SERVICEBASECLASS >

implemenation template which implements an IWindow interface and creates windows on a IQtXSystem while initializing. More...

Inheritance diagram for qt_ui_service< SERVICEBASECLASS >:
[legend]

Public Member Functions

 qt_ui_service ()
 default CTOR This will register the common property "title" to the services IConfiguration
 
 ~qt_ui_service ()=default
 DTOR.
 
tResult ServiceInit () override
 Override ServiceInit method of the service to create a window. More...
 
tResult ServiceShutdown () override
 Override ServiceShutdown method of the service to destroy a window. More...
 

Private Attributes

adtf::ucom::object_ptr< adtf::ui::ant::IQtXSystemm_pXSystem
 The XSystem reference.
 

Additional Inherited Members

- Protected Member Functions inherited from cQtWindow
virtual QWidget * CreateView ()=0
 Callback you have to implement and return a newly QWidget which will be embed to the oParentWidget of the Create. More...
 
virtual void ReleaseView ()=0
 Callback you have to implement to cleanup while destroying of the parents window. More...
 
tResult Create (const char *strWindowID, QWidget &oParentWidget) override
 Callback which in called within the applications main th thread to create a window. More...
 
tResult Destroy (QWidget &) override
 Callback which in called within the applications main th thread to deliver a destroy message to the windows implementation. More...
 
tResult OnIdle () override
 Callback for actions within a idle thread. More...
 
tResult OnTimer () override
 Callback for actions within a steady timer. More...
 
- Protected Attributes inherited from cQtWindow
adtf::base::property_variable< adtf::util::cString > m_strTitle
 title property variable will be set while window creating
 

Detailed Description

template<typename SERVICEBASECLASS>
class adtf::ui::ant::qt_ui_service< SERVICEBASECLASS >

implemenation template which implements an IWindow interface and creates windows on a IQtXSystem while initializing.

Template Parameters
SERVICEBASECLASSa adtf::system::cADTFService implementation. The Init and Shutdown method will be override.

Definition at line 33 of file qt_ui_service.h.

Member Function Documentation

◆ ServiceInit()

tResult ServiceInit ( )
inlineoverride

Override ServiceInit method of the service to create a window.

Returns
Standard Return Code. Returning an error will result in breaking intializing of system.

Definition at line 54 of file qt_ui_service.h.

References _runtime, IRuntime::GetObject(), qt_ui_service< SERVICEBASECLASS >::m_pXSystem, cQtWindow::m_strTitle, and RETURN_IF_FAILED.

◆ ServiceShutdown()

tResult ServiceShutdown ( )
inlineoverride

Override ServiceShutdown method of the service to destroy a window.

Returns
Standard Return Code. Error code will only be logged. Breaking shutdown is not possible.

Definition at line 70 of file qt_ui_service.h.

References qt_ui_service< SERVICEBASECLASS >::m_pXSystem, and RETURN_IF_POINTER_NULL.