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  virtual bool ResetData(CompatibilityMode mode = CM_WITHOUT_REFS);
44 
45 private:
46  QDateTime m_timeStamp;
47  InformationCategory m_category;
48  int m_id;
49  QString m_description;
50  QString m_source;
51  int m_flags;
52 
53  I_ATTR(QString, m_defaultSourceAttrPtr);
54 };
55 
56 
57 } // namespace iinsp
58 
59 
60 #endif // !iinsp_CInformationProviderCacheComp_included
61 
62 
virtual int GetInformationId() const
virtual QString GetInformationSource() const
virtual bool ResetData(CompatibilityMode mode=CM_WITHOUT_REFS)
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-2017 Witold Gantzke and Kirill Lepskiy