ImagingTools Core SDK
CSchedulerParamsComp.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 <icomp/CComponentBase.h>
7#include <ifile/IFileNameParam.h>
8
9// ImtCore includes
10#include <imtapp/CSchedulerParams.h>
11
12
13namespace imtapp
14{
15
16
17class CSchedulerParamsComp:
18 public icomp::CComponentBase,
19 virtual public CSchedulerParams
20{
21public:
22 typedef icomp::CComponentBase BaseClass;
23 typedef CSchedulerParams BaseClass2;
24
25 I_BEGIN_COMPONENT(CSchedulerParamsComp);
26 I_REGISTER_INTERFACE(ISchedulerParams);
27 I_REGISTER_INTERFACE(iser::IObject);
28 I_REGISTER_INTERFACE(iser::ISerializable);
29 I_REGISTER_INTERFACE(istd::IChangeable);
30 I_ASSIGN(m_startTimeAttrPtr, "StartTime", "The time at which backup will start", true, "dd-MM-yyyy HH:mm");
31 I_ASSIGN(m_intervalAttrPtr, "Interval", "Interval (in seconds)", true, 0);
32 I_END_COMPONENT;
33
34protected:
35 // reimplemented (icomp::CComponentBase)
36 virtual void OnComponentCreated() override;
37
38private:
39 I_ATTR(QString, m_startTimeAttrPtr);
40 I_ATTR(int, m_intervalAttrPtr);
41};
42
43
44} // namespace imtapp
45
46
Desktop Application Framework Module.