ADTF Qt5
Loading...
Searching...
No Matches
adtf::ui::ant::qt_ui_service< SERVICEBASECLASS > Class Template Reference

#include <qt_ui_service.h>

Inherits SERVICEBASECLASS, and adtf::ui::ant::cQtWindow.

Public Member Functions

 qt_ui_service ()
 
 ~qt_ui_service ()=default
 DTOR.
 
tResult ServiceInit () override
 
tResult ServiceShutdown () override
 

Additional Inherited Members

- Protected Member Functions inherited from adtf::ui::ant::cQtWindow
 cQtWindow ()=default
 default CTOR
 
virtual ~cQtWindow ()=default
 default DTOR
 
virtual QWidget * CreateView ()=0
 
virtual void ReleaseView ()=0
 
tResult Create (const char *strWindowID, QWidget &oParentWidget) override
 Callback which in called within the applications main th thread to create a window.
 
tResult Destroy (QWidget &) override
 Callback which in called within the applications main th thread to deliver a destroy message to the windows implementation.
 
tResult OnIdle () override
 
tResult OnTimer () override
 
- Protected Attributes inherited from adtf::ui::ant::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 a window on the adtf::ui::riddler::IQtXSystem while initializing.

Template Parameters
SERVICEBASECLASSa adtf::system::ant::cADTFService implementation. The ServiceInit and ServiceShutdown method will be override.

Constructor & Destructor Documentation

◆ qt_ui_service()

template<typename SERVICEBASECLASS>
adtf::ui::ant::qt_ui_service< SERVICEBASECLASS >::qt_ui_service ( )
inline

default CTOR This will register the common property "title" to the services IConfiguration

Member Function Documentation

◆ ServiceInit()

template<typename SERVICEBASECLASS>
tResult adtf::ui::ant::qt_ui_service< SERVICEBASECLASS >::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.

◆ ServiceShutdown()

template<typename SERVICEBASECLASS>
tResult adtf::ui::ant::qt_ui_service< SERVICEBASECLASS >::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.

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