ICF
3.0.5.47
Technical documentation of ICF Libraries
Main Page
Topics
Namespaces
Classes
Files
File List
File Members
istd
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
18
namespace
istd
19
{
20
21
25
class
IInformationProvider
:
virtual
public
IChangeable
26
{
27
public
:
31
enum
InformationCategory
32
{
36
IC_UNKNOWN
= -1,
40
IC_NONE
,
44
IC_INFO
,
48
IC_WARNING
,
52
IC_ERROR
,
56
IC_CRITICAL
57
};
58
59
I_DECLARE_ENUM
(
InformationCategory
,
IC_NONE
,
IC_INFO
,
IC_WARNING
,
IC_ERROR
,
IC_CRITICAL
);
60
64
enum
InformationTypeFlags
65
{
66
ITF_DEBUG
= 0x1,
67
ITF_SYSTEM
= 0x2,
68
ITF_USER
= 0x4
69
};
70
75
virtual
QDateTime
GetInformationTimeStamp
()
const
= 0;
76
81
virtual
InformationCategory
GetInformationCategory
()
const
= 0;
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
IChangeable.h
istd::IChangeable
Common interface for data model objects, which can be changed.
Definition
IChangeable.h:32
istd::IInformationProvider
Common interface for class providing some basic information object.
Definition
IInformationProvider.h:26
istd::IInformationProvider::InformationCategory
InformationCategory
Category of information.
Definition
IInformationProvider.h:32
istd::IInformationProvider::IC_ERROR
@ IC_ERROR
Information about error, processing could not be done correctly.
Definition
IInformationProvider.h:52
istd::IInformationProvider::IC_UNKNOWN
@ IC_UNKNOWN
Unknown state.
Definition
IInformationProvider.h:36
istd::IInformationProvider::IC_CRITICAL
@ IC_CRITICAL
Information about critical error - unnormal state of system, should never be returned.
Definition
IInformationProvider.h:56
istd::IInformationProvider::IC_INFO
@ IC_INFO
Normal information level, can be also interpreted as OK.
Definition
IInformationProvider.h:44
istd::IInformationProvider::IC_NONE
@ IC_NONE
Information is unimportant, for example can be used for diagnostic.
Definition
IInformationProvider.h:40
istd::IInformationProvider::IC_WARNING
@ IC_WARNING
Information about warning, processing could be done.
Definition
IInformationProvider.h:48
istd::IInformationProvider::GetInformationFlags
virtual int GetInformationFlags() const =0
Get flags of the information.
istd::IInformationProvider::GetInformationDescription
virtual QString GetInformationDescription() const =0
Get the text description of the information.
istd::IInformationProvider::GetInformationTimeStamp
virtual QDateTime GetInformationTimeStamp() const =0
Get optional time stamp of the information.
istd::IInformationProvider::GetInformationSource
virtual QString GetInformationSource() const =0
Get the source of the information.
istd::IInformationProvider::InformationTypeFlags
InformationTypeFlags
Additionally information flags.
Definition
IInformationProvider.h:65
istd::IInformationProvider::ITF_USER
@ ITF_USER
Definition
IInformationProvider.h:68
istd::IInformationProvider::ITF_SYSTEM
@ ITF_SYSTEM
Definition
IInformationProvider.h:67
istd::IInformationProvider::ITF_DEBUG
@ ITF_DEBUG
Definition
IInformationProvider.h:66
istd::IInformationProvider::I_DECLARE_ENUM
I_DECLARE_ENUM(InformationCategory, IC_NONE, IC_INFO, IC_WARNING, IC_ERROR, IC_CRITICAL)
istd::IInformationProvider::GetInformationId
virtual int GetInformationId() const =0
Get binary ID of the information using to automatical identification of this information type.
istd::IInformationProvider::GetInformationCategory
virtual InformationCategory GetInformationCategory() const =0
Get category of the information.
istd
Standard library.
Definition
IComponent.h:17
© Witold Gantzke and Kirill Lepskiy