ImagingTools Core SDK
CJobExecutionMessage.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 <ilog/CMessage.h>
7
8// imthype includes
9#include <imthype/IJobExecutionLog.h>
10
11
12namespace imthype
13{
14
15
22class CJobExecutionMessage: virtual public ilog::CMessage
23{
24public:
25 typedef ilog::CMessage BaseClass;
26
27 enum MessageId
28 {
29 MI_JOB_EXECUTION_EVENT = 200000000
30 };
31
35 istd::IInformationProvider::InformationCategory category,
36 const QString& text,
37 const QString& source = QString(),
38 int flags = 0,
39 const QDateTime* timeStampPtr = nullptr);
40
41 IJobExecutionLog::ExecutionEventType GetEventType() const;
42
43 // reimplemented (iser::ISerializable)
44 virtual bool Serialize(iser::IArchive& archive) override;
45
46 // reimplemented (iser::IObject)
47 virtual QByteArray GetFactoryId() const override;
48
49 // reimplemented (istd::IChangeable)
50 virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS) override;
51 virtual istd::IChangeableUniquePtr CloneMe(CompatibilityMode mode = CM_WITHOUT_REFS) const override;
52
53public:
54 static QByteArray GetTypeId();
55
56private:
58};
59
60
61} // namespace imthype
62
63