ImagingTools Core SDK
CRemoteCommandsControllerComp.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// ImtCore includes
6#include <imtclientgql/TClientRequestManagerCompWrap.h>
7#include <GeneratedFiles/imtbasesdl/SDL/1.0/CPP/Commands.h>
8
9
10namespace imtclientgql
11{
12
13
14class CRemoteCommandsControllerComp:
15 public TClientRequestManagerCompWrap<
16 sdl::imtbase::Commands::CGraphQlHandlerCompBase>
17{
18public:
19 typedef TClientRequestManagerCompWrap<
20 sdl::imtbase::Commands::CGraphQlHandlerCompBase> BaseClass;
21
22 I_BEGIN_COMPONENT(CRemoteCommandsControllerComp);
23 I_ASSIGN_MULTI_0(m_typeIdsAttrPtr, "TypeIds", "Type ID-s", true);
24 I_END_COMPONENT;
25
26protected:
27 // reimplemented (sdl::imtbase::Commands::CGraphQlHandlerCompBase)
28 virtual bool IsRequestSupported(const imtgql::CGqlRequest& gqlRequest) const override;
29 virtual sdl::imtbase::Commands::CGuiElementContainer OnGetCommands(
30 const sdl::imtbase::Commands::CGetCommandsGqlRequest& getCommandsRequest,
31 const imtgql::CGqlRequest& gqlRequest,
32 QString& errorMessage) const override;
33
34protected:
35 I_MULTIATTR(QByteArray, m_typeIdsAttrPtr);
36};
37
38
39} // namespace imtclientgql
40
41