ImagingTools Core SDK
CBackupSettingsRepresentationControllerComp.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 <imtserverapp/TJsonRepresentationControllerCompWrap.h>
7#include <GeneratedFiles/imtbasesdl/SDL/1.0/CPP/Settings.h>
8
9
10namespace imtserverapp
11{
12
13
14class CBackupSettingsRepresentationControllerComp: public imtserverapp::TJsonRepresentationControllerCompWrap<sdl::imtbase::ImtBaseTypes::CBackupSettings::V1_0>
15{
16public:
17 typedef imtserverapp::TJsonRepresentationControllerCompWrap<sdl::imtbase::ImtBaseTypes::CBackupSettings::V1_0> BaseClass;
18
19 I_BEGIN_COMPONENT(CBackupSettingsRepresentationControllerComp)
20 I_ASSIGN(m_dateFormatAttrPtr, "DateFormat", "Date format", false, "dd-MM-yyyy HH:mm");
21 I_END_COMPONENT;
22
23protected:
24 // reimplemented (imtserverapp::TJsonRepresentationControllerCompWrap<sdl::imtbase::ImtBaseTypes::CSchedulerParam::V1_0>)
25 virtual QByteArray GetTypeId() const override;
26 virtual bool IsModelSupported(const istd::IChangeable &dataModel) const override;
27 virtual bool GetSdlRepresentationFromDataModel(
28 sdl::imtbase::ImtBaseTypes::CBackupSettings::V1_0& sdlRepresentation,
29 const istd::IChangeable& dataModel,
30 const iprm::IParamsSet* paramsPtr = nullptr) const override;
31 virtual bool GetDataModelFromSdlRepresentation(
32 istd::IChangeable& dataModel,
33 const sdl::imtbase::ImtBaseTypes::CBackupSettings::V1_0& sdlRepresentation) const override;
34
35private:
36 I_ATTR(QString, m_dateFormatAttrPtr);
37};
38
39
40} // namespace imtserverapp
41
42