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