ImagingTools Core SDK
CGetStyleDataControllerComp.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// Qt includes
6#include <QtCore/QJsonObject>
7
8// ACF includes
9#include <iprm/ISelectionParam.h>
10
11// ImtCore includes
12#include <imtservergql/CGqlRequestHandlerCompBase.h>
13
14
15namespace imtguigql
16{
17
18
19class CGetStyleDataControllerComp: public imtservergql::CGqlRequestHandlerCompBase
20{
21public:
22 typedef imtservergql::CGqlRequestHandlerCompBase BaseClass;
23
24 I_BEGIN_COMPONENT(CGetStyleDataControllerComp);
25 I_ASSIGN(m_selectionParamCompPtr, "SelectionParam", "Selection param for the get current design schema", false, "SelectionParam");
26 I_ASSIGN(m_prefixFileNameAttrPtr, "Prefix", "Prefix of the files", false, "");
27 I_END_COMPONENT;
28
29protected:
30 // reimplemented (imtservergql::CGqlRepresentationControllerCompBase)
31 virtual QJsonObject CreateInternalResponse(const imtgql::CGqlRequest& gqlRequest, QString& errorMessage) const override;
32
33private:
34 I_REF(iprm::ISelectionParam, m_selectionParamCompPtr);
35 I_TEXTATTR(m_prefixFileNameAttrPtr);
36};
37
38
39} // namespace imtguigql
40
41