ImagingTools Core SDK
CModelSubscriberComp.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 <istd/IChangeable.h>
7
8// ImtCore includes
9#include <imtclientgql/CSubscriberCompBase.h>
10
11
12namespace imtclientgql
13{
14
15
16class CModelSubscriberComp: public CSubscriberCompBase
17{
18public:
19 typedef CSubscriberCompBase BaseClass;
20
21 I_BEGIN_COMPONENT(CModelSubscriberComp);
22 I_ASSIGN(m_changeableModelCompPtr, "Model", "Data model to be synchronized with the changes on the server side", true, "Model");
23 I_END_COMPONENT;
24
25protected:
26 // reimplemented (imtgql::IGqlSubscriptionClient)
27 virtual void OnResponseReceived(const QByteArray& subscriptionId, const QByteArray& subscriptionData) override;
28
29private:
30 I_REF(istd::IChangeable, m_changeableModelCompPtr);
31};
32
33
34} // namespace imtclientgql
35
36