ImagingTools Core SDK
IRepresentationDataProvider.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// ACF includes
5#include <istd/IPolymorphic.h>
6#include <imtbase/CTreeItemModel.h>
7
8// QtCore includes
9#include <imtrest/imtrest.h>
10
11
12namespace imtrest
13{
14
15
20class IRepresentationDataProvider: virtual public istd::IPolymorphic
21{
22public:
23 enum Format
24 {
25 RF_JSON,
26 RF_XML
27 };
28
29 virtual bool GetRepresentationData(
30 Format format,
31 QByteArray& representationData,
32 const QList<QByteArray>& query,
33 const imtrest::QueryParams& params) = 0;
34 virtual bool SetRepresentationData(
35 Format format,
36 QByteArray& representationData,
37 const QByteArray& commandId = "") = 0;
38};
39
40
41} // namespace imtauthgui
42
43