ImagingTools Core SDK
CGqlRemoteRepresentationControllerComp.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// Qt includes
5#include <QtCore/QJsonObject>
6
7// ACF includes
8#include <ibase/IApplicationInfo.h>
9
10// ImtCore includes
11#include <imtclientgql/CGqlRemoteRepresentationControllerCompBase.h>
12
13
14namespace imtclientgql
15{
16
17
18class CGqlRemoteRepresentationControllerComp:
19 public CGqlRemoteRepresentationControllerCompBase
20{
21public:
22 typedef CGqlRemoteRepresentationControllerCompBase BaseClass;
23
24 I_BEGIN_COMPONENT(CGqlRemoteRepresentationControllerComp)
25 I_ASSIGN(m_productIdAttrPtr, "ProductId", "Product ID", false, "");
26 I_ASSIGN(m_applicationInfoCompPtr, "ApplicationInfo", "Application info", false, "");
27 I_END_COMPONENT;
28
29protected:
30 // reimplemented (imtservergql::CGqlRepresentationDataControllerComp)
31 virtual QJsonObject CreateInternalResponse(const imtgql::CGqlRequest& gqlRequest, QString& errorMessage) const override;
32
33private:
34 I_ATTR(QByteArray, m_productIdAttrPtr);
35 I_REF(ibase::IApplicationInfo, m_applicationInfoCompPtr);
36};
37
38
39} // namespace imtclientgql
40
41