ImagingTools Core SDK
CRoleMetaInfoCreatorComp.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 <idoc/CStandardDocumentMetaInfo.h>
7
8// ImtCore includes
9#include <imtbase/CObjectMetaInfoCreatorCompBase.h>
10
11
12namespace imtauth
13{
14
15
19class CRoleMetaInfoCreatorComp: public imtbase::CObjectMetaInfoCreatorCompBase
20{
21public:
22 typedef imtbase::CObjectMetaInfoCreatorCompBase BaseClass;
23
24 I_BEGIN_COMPONENT(CRoleMetaInfoCreatorComp);
25 I_END_COMPONENT;
26
27protected:
28 // reimplemented (imtbase::IMetaInfoCreator)
29 virtual bool CreateMetaInfo(const istd::IChangeable* dataPtr, const QByteArray& typeId, idoc::MetaInfoPtr& metaInfoPtr) const override;
30
31private:
32 class MetaInfo: public idoc::CStandardDocumentMetaInfo
33 {
34 public:
35 typedef idoc::CStandardDocumentMetaInfo BaseClass;
36
37 // reimplemented (idoc::IDocumentMetaInfo)
38 virtual QString GetMetaInfoName(int metaInfoType) const override;
39 };
40};
41
42
43} // namespace imtauth
44
45