CApplicationSettingsProviderComp.h
Go to the documentation of this file.
1 #ifndef iqt_CApplicationSettingsProviderComp_included
2 #define iqt_CApplicationSettingsProviderComp_included
3 
4 
5 // ACF includes
6 #include <icomp/CComponentBase.h>
9 
10 
11 namespace iqt
12 {
13 
14 
21  public icomp::CComponentBase,
22  virtual public iqt::ISettingsProvider
23 {
24 public:
26 
27  I_BEGIN_COMPONENT(CApplicationSettingsProviderComp);
28  I_REGISTER_INTERFACE(iqt::ISettingsProvider);
29  I_ASSIGN(m_applicationInfoCompPtr, "ApplicationInfo", "Application info", true, "ApplicationInfo");
30  I_END_COMPONENT;
31 
32  // reimplemented (iqt::ISettingsProvider)
33  virtual QSettings& GetSettings() const;
34 
35 protected:
36  // reimplemented (icomp::CComponentBase)
37  virtual void OnComponentCreated();
38 
39 private:
40  I_REF(ibase::IApplicationInfo, m_applicationInfoCompPtr);
41 
42  istd::TDelPtr<QSettings> m_settingsPtr;
43 };
44 
45 
46 } // namespace iqt
47 
48 
49 #endif // !iqt_CApplicationSettingsProviderComp_included
50 
51 
Base class for component implementation.
virtual QSettings & GetSettings() const
Get the instance of the Qt settings.
An application settings provider component.
This interface provides some information about the application.
Interface for access the application settings object.

© 2007-2017 Witold Gantzke and Kirill Lepskiy