CInformationProviderCacheComp.h
Go to the documentation of this file.
1 #ifndef iinsp_CInformationProviderCacheComp_included
2 #define iinsp_CInformationProviderCacheComp_included
3 
4 
5 // ACF includes
7 #include "icomp/CComponentBase.h"
8 
9 
10 namespace iinsp
11 {
12 
13 
20  public icomp::CComponentBase,
21  virtual public istd::IInformationProvider
22 {
23 public:
25 
26  I_BEGIN_COMPONENT(CInformationProviderCacheComp);
27  I_REGISTER_INTERFACE(IInformationProvider);
28  I_ASSIGN(m_defaultSourceAttrPtr, "DefaultSource", "Default source of information. Will be used if no information source was set", false, "Unknown");
29  I_END_COMPONENT;
30 
32 
33  // reimplemented (iinsp::IInformationProvider)
34  virtual QDateTime GetInformationTimeStamp() const;
35  virtual InformationCategory GetInformationCategory() const;
36  virtual int GetInformationId() const;
37  virtual QString GetInformationDescription() const;
38  virtual QString GetInformationSource() const;
39  virtual int GetInformationFlags() const;
40 
41  // reimplemented (istd::IChangeable)
42  virtual bool CopyFrom(const IChangeable& object, CompatibilityMode mode = CM_WITHOUT_REFS);
43 
44 private:
45  QDateTime m_timeStamp;
46  InformationCategory m_category;
47  int m_id;
48  QString m_description;
49  QString m_source;
50  int m_flags;
51 
52  I_ATTR(QString, m_defaultSourceAttrPtr);
53 };
54 
55 
56 } // namespace iinsp
57 
58 
59 #endif // !iinsp_CInformationProviderCacheComp_included
60 
61 
virtual int GetInformationId() const
virtual QString GetInformationSource() const
virtual bool CopyFrom(const IChangeable &object, CompatibilityMode mode=CM_WITHOUT_REFS)
virtual InformationCategory GetInformationCategory() const
virtual int GetInformationFlags() const
virtual QDateTime GetInformationTimeStamp() const
virtual QString GetInformationDescription() const
General information provider returning always stored state.

© 2007-2011 Witold Gantzke and Kirill Lepskiy