ICF 3.0.5.47
Technical documentation of ICF Libraries
IInformationProvider.h
Go to the documentation of this file.
1/********************************************************************************
2** This file is part of the ICF Framework. Copyright (C) Witold Gantzke & Kirill Lepskiy
3** ICF Framework may be used under the terms of the LGPL License v. 2.1 by the Free Software Foundation.
4********************************************************************************/
5
6#ifndef istd_IInformationProvider_included
7#define istd_IInformationProvider_included
8
9
10// Qt includes
11#include <QtCore/QString>
12#include <QtCore/QDateTime>
13
14// ICF includes
15#include <istd/IChangeable.h>
16
17
18namespace istd
19{
20
21
25class IInformationProvider: virtual public IChangeable
26{
27public:
58
60
65 {
66 ITF_DEBUG = 0x1,
68 ITF_USER = 0x4
69 };
70
75 virtual QDateTime GetInformationTimeStamp() const = 0;
76
82
87 virtual int GetInformationId() const = 0;
88
93 virtual QString GetInformationDescription() const = 0;
94
99 virtual QString GetInformationSource() const = 0;
100
105 virtual int GetInformationFlags() const = 0;
106};
107
108
109} // namespace istd
110
111
112#endif // !istd_IInformationProvider_included
113
114
Common interface for data model objects, which can be changed.
Definition IChangeable.h:32
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, can be also interpreted as OK.
@ 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

© Witold Gantzke and Kirill Lepskiy