ImagingTools Core SDK
CRoleChangeGeneratorComp.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/CDocumentChangeGeneratorCompBase.h>
7
8
9namespace imtauth
10{
11
12
13class CRoleChangeGeneratorComp: public imtbase::CDocumentChangeGeneratorCompBase
14{
15public:
16 typedef imtbase::CDocumentChangeGeneratorCompBase BaseClass;
17
18 I_BEGIN_COMPONENT(CRoleChangeGeneratorComp);
19 I_END_COMPONENT;
20
21protected:
22 QString GetRoleName(const QByteArray& roleId) const;
23
24 // reimplemented (imtbase::CDocumentChangeGeneratorCompBase)
25 virtual bool CompareDocuments(
26 const istd::IChangeable& oldDocument,
27 const istd::IChangeable& newDocument,
28 imtbase::CObjectCollection& documentChangeCollection,
29 QString& errorMessage) override;
30 virtual QString CreateCustomOperationDescription(const imtbase::COperationDescription& operationDescription, const QByteArray& languageId = QByteArray()) const override;
31};
32
33
34} // namespace imtauth
35
36