ImagingTools Core SDK
CApplicationInfoControllerComp.h
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ImtCore-Commercial
2#pragma once
3
4
5// ACF includes
6#include <ibase/IApplicationInfo.h>
7
8// ImtCore includes
9#include <GeneratedFiles/imtappsdl/SDL/1.0/CPP/Application.h>
10
11
12namespace imtservergql
13{
14
15
16class CApplicationInfoControllerComp: public sdl::imtapp::Application::CGraphQlHandlerCompBase
17{
18public:
19 using BaseClass = sdl::imtapp::Application::CGraphQlHandlerCompBase;
20 using ApplicationInfo = sdl::imtapp::Application::CApplicationInfo;
21
22 I_BEGIN_COMPONENT(CApplicationInfoControllerComp);
23 I_ASSIGN(m_applicationInfoCompPtr, "ApplicationInfo", "Application data info", true, "ApplicationInfo");
24 I_ASSIGN(m_applicationPreferencesCompPtr, "ApplicationPreferences", "Optional reference to ParamSet written to XML file containing application preferences. May overwrite default ApplicationInfo attrubutes if configured", false, "IParamsSet");
25 I_END_COMPONENT;
26
27protected:
28 // reimplemented (sdl::imtapp::Application::CGraphQlHandlerCompBase)
29 virtual ApplicationInfo OnGetApplicationInfo(
30 const sdl::imtapp::Application::CGetApplicationInfoGqlRequest& getApplicationInfoRequest,
31 const imtgql::CGqlRequest& gqlRequest,
32 QString& errorMessage) const override;
33
34protected:
35 I_REF(ibase::IApplicationInfo, m_applicationInfoCompPtr);
36 I_REF(iprm::IParamsSet, m_applicationPreferencesCompPtr);
37};
38
39
40} // namespace imtservergql
41
42