ACF $AcfVersion:0$
IInformationProvider.h
Go to the documentation of this file.
1// SPDX-License-Identifier: LGPL-2.1-or-later OR GPL-2.0-or-later OR GPL-3.0-or-later OR LicenseRef-ACF-Commercial
2#pragma once
3
4
5// Qt includes
6#include <QtCore/QString>
7#include <QtCore/QDateTime>
8
9// ACF includes
10#include <istd/IChangeable.h>
11
12
13namespace istd
14{
15
16
21class IInformationProvider: virtual public IChangeable
22{
23public:
50
52
57 {
58 ITF_DEBUG = 0x1,
60 ITF_USER = 0x4
61 };
62
67 virtual QDateTime GetInformationTimeStamp() const = 0;
68
74
79 virtual int GetInformationId() const = 0;
80
85 virtual QString GetInformationDescription() const = 0;
86
91 virtual QString GetInformationSource() const = 0;
92
97 virtual int GetInformationFlags() const = 0;
98};
99
100
101} // namespace istd
102
103
104
105
Common interface for data model objects, which can be changed.
Definition IChangeable.h:28
Common interface for class providing some basic information object.
InformationCategory
Category of information.
@ IC_ERROR
Information about error, processing could not be done correctly.
@ IC_CRITICAL
Information about critical error - unnormal state of system, should never be returned.
@ IC_INFO
Normal information level.
@ IC_NONE
Information is unimportant, for example can be used for diagnostic.
@ IC_WARNING
Information about warning, processing could be done.
virtual int GetInformationFlags() const =0
Get flags of the information.
virtual QString GetInformationDescription() const =0
Get the text description of the information.
virtual QDateTime GetInformationTimeStamp() const =0
Get optional time stamp of the information.
virtual QString GetInformationSource() const =0
Get the source of the information.
InformationTypeFlags
Additionally information flags.
I_DECLARE_ENUM(InformationCategory, IC_NONE, IC_INFO, IC_WARNING, IC_ERROR, IC_CRITICAL)
virtual int GetInformationId() const =0
Get binary ID of the information using to automatical identification of this information type.
virtual InformationCategory GetInformationCategory() const =0
Get category of the information.
Standard library.
Definition IComponent.h:17