IInformationProvider.h
Go to the documentation of this file.
1 #ifndef istd_IInformationProvider_included
2 #define istd_IInformationProvider_included
3 
4 
5 // Qt includes
6 #include <QtCore/QString>
7 #include <QtCore/QDateTime>
8 
9 // ACF includes
10 #include <istd/IChangeable.h>
11 
12 
13 namespace istd
14 {
15 
16 
20 class IInformationProvider: virtual public IChangeable
21 {
22 public:
27  {
48  };
49 
51 
56  {
57  ITF_DEBUG = 0x1,
58  ITF_SYSTEM = 0x2,
59  ITF_USER = 0x4
60  };
61 
66  virtual QDateTime GetInformationTimeStamp() const = 0;
67 
72  virtual InformationCategory GetInformationCategory() const = 0;
73 
78  virtual int GetInformationId() const = 0;
79 
84  virtual QString GetInformationDescription() const = 0;
85 
90  virtual QString GetInformationSource() const = 0;
91 
96  virtual int GetInformationFlags() const = 0;
97 };
98 
99 
100 } // namespace istd
101 
102 
103 #endif // !istd_IInformationProvider_included
104 
105 
Information about critical error - unnormal state of system, should never be returned.
virtual QString GetInformationDescription() const =0
Get the text description of the information.
virtual int GetInformationId() const =0
Get binary ID of the information using to automatical identification of this information type...
Information about error, processing could not be done correctly.
virtual int GetInformationFlags() const =0
Get flags of the information.
Information is unimportant, for example can be used for diagnostic.
virtual InformationCategory GetInformationCategory() const =0
Get category of the information.
Common interface for data model objects, which can be changed.
Definition: IChangeable.h:24
virtual QDateTime GetInformationTimeStamp() const =0
Get optional time stamp of the information.
InformationCategory
Category of information.
InformationTypeFlags
Additionally information flags.
Common interface for class providing some basic information object.
I_DECLARE_ENUM(InformationCategory, IC_NONE, IC_INFO, IC_WARNING, IC_ERROR, IC_CRITICAL)
virtual QString GetInformationSource() const =0
Get the source of the information.
Information about warning, processing could be done.

© 2007-2017 Witold Gantzke and Kirill Lepskiy