CComposedInformationProviderComp.h
Go to the documentation of this file.
1 #ifndef iinsp_CComposedInformationProviderComp_included
2 #define iinsp_CComposedInformationProviderComp_included
3 
4 
5 // ACF includes
7 #include <icomp/CComponentBase.h>
9 
10 
11 namespace iinsp
12 {
13 
14 
21  public icomp::CComponentBase,
22  virtual public istd::IInformationProvider
23 {
24 public:
26 
27  I_BEGIN_COMPONENT(CComposedInformationProviderComp);
28  I_REGISTER_INTERFACE(IInformationProvider);
29  I_ASSIGN(m_defaultSourceAttrPtr, "DefaultSource", "Default source of information", false, "");
30  I_ASSIGN(m_defaultDescriptionAttrPtr, "DefaultDescription", "Default description for the information", false, "");
31  I_ASSIGN_MULTI_0(m_slaveInformationProvidersCompPtr, "InformationProviders", "List of underlaying information providers", true);
32  I_ASSIGN_TO(m_slaveInformationProviderModelsCompPtr, m_slaveInformationProvidersCompPtr, false);
33  I_END_COMPONENT;
34 
36 
37  // reimplemented (iinsp::IInformationProvider)
38  virtual QDateTime GetInformationTimeStamp() const;
39  virtual InformationCategory GetInformationCategory() const;
40  virtual int GetInformationId() const;
41  virtual QString GetInformationDescription() const;
42  virtual QString GetInformationSource() const;
43  virtual int GetInformationFlags() const;
44 
45 protected:
46  // reimplemented (icomp::CComponentBase)
47  virtual void OnComponentCreated();
48  virtual void OnComponentDestroyed();
49 
50 private:
51  I_ATTR(QString, m_defaultSourceAttrPtr);
52  I_TEXTATTR(m_defaultDescriptionAttrPtr);
53  I_MULTIREF(istd::IInformationProvider, m_slaveInformationProvidersCompPtr);
54  I_MULTIREF(imod::IModel, m_slaveInformationProviderModelsCompPtr);
55 
56  imod::CModelUpdateBridge m_updateBridge;
57 };
58 
59 
60 } // namespace iinsp
61 
62 
63 #endif // !iinsp_CComposedInformationProviderComp_included
64 
65 
virtual InformationCategory GetInformationCategory() const
virtual int GetInformationFlags() const
virtual QString GetInformationDescription() const
virtual QString GetInformationSource() const
General information provider returning always stored state.
virtual QDateTime GetInformationTimeStamp() const

© 2007-2017 Witold Gantzke and Kirill Lepskiy