32 template <
typename SERVICEBASECLASS>
44 m_strTitle.SetDescription(
"Window title which will be used at runtime within Qt5 ADTF XSystem UI Service.");
45 SERVICEBASECLASS::RegisterPropertyVariable(
"title",
m_strTitle);
58 if (strTitle.IsEmpty())
60 strTitle = SERVICEBASECLASS::GetOID();
94 template<
typename SERVICEBASECLASS>
104 m_strTitle.SetDescription(
"Window title which will be used at runtime within Qt5 ADTF XSystem UI Service.");
105 SERVICEBASECLASS::RegisterPropertyVariable(
"title",
m_strTitle);
118 if ((*m_strTitle).IsEmpty())
123 const uint32_t ui32Flags =
m_bWindowStateEnabled ? IQtXSystem::eWindowCreationFlags::WCF_HasWindowState :
124 IQtXSystem::eWindowCreationFlags::WCF_None;
126 return m_pXSystem->CreateWindow(*
this, ui32Flags);
146 return SERVICEBASECLASS::GetOID();
210 template<
typename SERVICEBASECLASS,
typename QTWINDOWBASECLASS = sp
ider::cQtWindow>
212 public QTWINDOWBASECLASS
220 QTWINDOWBASECLASS::m_strTitle.SetDescription(
221 "Window title which will be used at runtime within Qt5 ADTF XSystem UI Service.");
222 SERVICEBASECLASS::RegisterPropertyVariable(
"title", QTWINDOWBASECLASS::m_strTitle);
235 if ((*QTWINDOWBASECLASS::m_strTitle).IsEmpty())
237 QTWINDOWBASECLASS::m_strTitle = SERVICEBASECLASS::GetOID();
240 const uint32_t ui32Flags = QTWINDOWBASECLASS::IsWindowStateEnabled() ?
241 IQtXSystem::eWindowCreationFlags::WCF_HasWindowState :
242 IQtXSystem::eWindowCreationFlags::WCF_None;
244 return m_pXSystem->CreateWindow(*
this, ui32Flags);
264 return SERVICEBASECLASS::GetOID();
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.
#define RETURN_IF_FAILED(s)
Return if expression is failed, which requires the calling function's return type to be tResult.
#define RETURN_IF_POINTER_NULL(_ptr)
Return ERR_POINTER if _ptr is nullptr, which requires the calling function's return type to be tResul...
A common result class usable as return value throughout.
ucom Interface to a objects configuration.
virtual tResult GetObject(iobject_ptr< IObject > &pObject, const char *strNameOID) const =0
Get registered object from object registry.
Object pointer implementation used for reference counting on objects of type IObject.
Basic IWindow implementation.
adtf::base::property_variable< adtf::util::cString > m_strTitle
title property variable will be set while window creating
Implemenation template which implements an IWindow interface and creates a window on the adtf::ui::ri...
tResult ServiceShutdown() override
Override ServiceShutdown method of the service to destroy a window.
adtf::ucom::object_ptr< adtf::ui::ant::IQtXSystem > m_pXSystem
The XSystem reference.
~qt_ui_service()=default
DTOR.
tResult ServiceInit() override
Override ServiceInit method of the service to create a window.
qt_ui_service()
default CTOR This will register the common property "title" to the services IConfiguration
Window state callback interface.
Implementation template which implements a IQtXSystem::IWindow and a IQtXSystem::IWindowState interfa...
tResult ServiceShutdown() override
Override ServiceShutdown method of the service to destroy a window.
void OnSaveState([[maybe_unused]] const QString &strStateFolder) const override
Callback function to save the internal window state to the given folder strStateFolder.
adtf::ucom::object_ptr< adtf::ui::riddler::IQtXSystem > m_pXSystem
The XSystem reference.
bool m_bWindowStateEnabled
State for enabled window state.
QString GetStateIdentifier() const override
Get the State Identifier for the Window State callbacks "OnLoadState" and "OnSaveState".
void OnLoadState([[maybe_unused]] const QString &strStateFolder) override
Callback function to load the internal window state from the given folder strStateFolder.
~qt_ui_service() override=default
DTOR.
void EnableWindowState()
Enables the Window state callbacks.
tResult ServiceInit() override
Override ServiceInit method of the service to create a window.
qt_ui_service()
default CTOR This will register the common property "title" to the services IConfiguration
Implementation template which implements a service that derives from.
tResult ServiceShutdown() override
Override ServiceShutdown method of the service to destroy a window.
adtf::ucom::object_ptr< adtf::ui::spider::IQtXSystem > m_pXSystem
The XSystem reference.
QString GetStateIdentifier() const
Get the State Identifier for the Window State callbacks "OnLoadState" and "OnSaveState".
~qt_ui_service() override=default
DTOR.
QString GetHelpLink() const
Returns a filesystem help link to the windows documentation page.
tResult ServiceInit() override
Override ServiceInit method of the service to create a window.
qt_ui_service()
default CTOR This will register the common property "title" to the services IConfiguration
Copyright © Audi Electronics Venture GmbH.
void maybe_unused(T &&)
Mimics C++17 attribute maybe_unused to silence compiler warnings on potentially unused enitities.
string_base< cStackString > cString
cString implementation for a stack string which works on stack if string is lower than A_UTILS_DEFAUL...
std::string get_help_link(base::ant::IConfiguration &oConfig)
Get the link to the corresponding help/documentation set by hollow::set_help_link.
qt_ui_service< adtf::system::ant::cADTFService, spider::cQtWindow > cQtUIService
UI Service basic implementation for cADTFService.
Namespace for entire ADTF SDK.
adtf::ucom::IRuntime * _runtime
Global Runtime Pointer to reference to the current runtime.
Copyright © Audi Electronics Venture GmbH.
Copyright © Audi Electronics Venture GmbH.