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,
23  virtual public istd::IInformationProvider
24 {
25 public:
27 
28  I_BEGIN_COMPONENT(CComposedInformationProviderComp);
29  I_REGISTER_INTERFACE(IInformationProvider);
30  I_ASSIGN(m_defaultSourceAttrPtr, "DefaultSource", "Default source of information", false, "");
31  I_ASSIGN(m_defaultDescriptionAttrPtr, "DefaultDescription", "Default description for the information", false, "");
32  I_ASSIGN_MULTI_0(m_slaveInformationProvidersCompPtr, "InformationProviders", "List of underlaying information providers", true);
33  I_ASSIGN_TO(m_slaveInformationProviderModelsCompPtr, m_slaveInformationProvidersCompPtr, false);
34  I_END_COMPONENT;
35 
36  // reimplemented (iinsp::IInformationProvider)
37  virtual QDateTime GetInformationTimeStamp() const;
38  virtual InformationCategory GetInformationCategory() const;
39  virtual int GetInformationId() const;
40  virtual QString GetInformationDescription() const;
41  virtual QString GetInformationSource() const;
42  virtual int GetInformationFlags() const;
43 
44 protected:
45  // reimplemented (icomp::CComponentBase)
46  virtual void OnComponentCreated();
47  virtual void OnComponentDestroyed();
48 
49 private:
50  I_ATTR(QString, m_defaultSourceAttrPtr);
51  I_ATTR(QString, m_defaultDescriptionAttrPtr);
52  I_MULTIREF(istd::IInformationProvider, m_slaveInformationProvidersCompPtr);
53  I_MULTIREF(imod::IModel, m_slaveInformationProviderModelsCompPtr);
54 
55 };
56 
57 
58 } // namespace iinsp
59 
60 
61 #endif // !iinsp_CComposedInformationProviderComp_included
62 
63 
virtual InformationCategory GetInformationCategory() const
I_ASSIGN_TO(m_slaveInformationProviderModelsCompPtr, m_slaveInformationProvidersCompPtr, false)
virtual int GetInformationFlags() const
virtual QString GetInformationDescription() const
virtual QString GetInformationSource() const
General information provider returning always stored state.
virtual QDateTime GetInformationTimeStamp() const

© 2007-2011 Witold Gantzke and Kirill Lepskiy