ADTF  3.18.2
qt_ui_filter< FILTERBASECLASS >

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

Inheritance diagram for qt_ui_filter< FILTERBASECLASS >:
[legend]

Public Member Functions

 qt_ui_filter ()
 default CTOR This will register the common property "title" to the filters IConfiguration
 
 ~qt_ui_filter ()=default
 DTOR.
 
tResult Init (typename FILTERBASECLASS::tInitStage eStage) override
 Override init method of the filter. More...
 
tResult Shutdown (typename FILTERBASECLASS::tInitStage eStage) override
 Override shutdon method of the filter. More...
 

Private Attributes

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

Additional Inherited Members

- Protected Member Functions inherited from cQtWindow
 cQtWindow ()=default
 default CTOR
 
virtual ~cQtWindow ()=default
 default DTOR
 
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 FILTERBASECLASS>
class adtf::ui::ant::qt_ui_filter< FILTERBASECLASS >

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

Template Parameters
FILTERBASECLASSa adtf::filter::ant::cFilter implementation. The Init and Shutdown method will be override.

Definition at line 33 of file qt_ui_filter.h.

Member Function Documentation

◆ Init()

tResult Init ( typename FILTERBASECLASS::tInitStage  eStage)
inlineoverride

Override init method of the filter.

The FILTERBASECLASS init method will be called. The window is created while adtf::filter::ant::cFilter::tInitStage::StagePostConnect.

Parameters
[in]eStagecurrent init stage
Returns
Standard Return Code. Returning an error will result in breaking intializing of filtergraph.

Definition at line 55 of file qt_ui_filter.h.

References _runtime, adtf::streaming::ant::get_named_graph_object_full_name(), IRuntime::GetObject(), qt_ui_filter< FILTERBASECLASS >::m_pXSystem, cQtWindow::m_strTitle, RETURN_IF_FAILED, and RETURN_NOERROR.

◆ Shutdown()

tResult Shutdown ( typename FILTERBASECLASS::tInitStage  eStage)
inlineoverride

Override shutdon method of the filter.

The filters shutdown method will be called. The window is destroyed while adtf::filter::ant::cFilter::tInitStage::StagePostConnect.

Parameters
[in]eStagecurrent shutdown stage
Returns
Standard Return Code. Error code will only be logged. Breaking shutdown is not possible.

Definition at line 76 of file qt_ui_filter.h.

References qt_ui_filter< FILTERBASECLASS >::m_pXSystem.