CQtVersionInfoComp.h
Go to the documentation of this file.
1 #ifndef ibase_CQtVersionInfo_included
2 #define ibase_CQtVersionInfo_included
3 
4 
5 // ACF includes
7 
8 
9 namespace ibase
10 {
11 
12 
17 {
18 public:
20 
21  I_BEGIN_COMPONENT(CQtVersionInfoComp);
22  I_END_COMPONENT;
23 
24  enum VersionId
25  {
30  };
31 
32  // reimplemented (iser::IVersionInfo)
33  virtual VersionIds GetVersionIds() const;
34  virtual bool GetVersionNumber(int versionId, quint32& result) const;
35  virtual QString GetVersionIdDescription(int versionId) const;
36  virtual QString GetEncodedVersionName(int versionId, quint32 versionNumber) const;
37 
38 protected:
39  // reimplemented (icomp::CComponentBase)
40  virtual void OnComponentCreated();
41 
42 private:
46  static quint32 GetRuntimeVersion();
47 };
48 
49 
50 } // namespace ibase
51 
52 
53 #endif // !ibase_CQtVersionInfo_included
54 
55 
QSet< int > VersionIds
Definition: IVersionInfo.h:45
virtual bool GetVersionNumber(int versionId, quint32 &result) const
Get version of archived stream for specific versioning type.
ibase::CVersionInfoLoggerCompBase BaseClass
Generic implementation for a version component.
Version of Qt framework against the actual module was compiled.
Component representation of the Qt module version.
virtual QString GetEncodedVersionName(int versionId, quint32 versionNumber) const
Encode version number to human readable form.
virtual VersionIds GetVersionIds() const
Get list of version ID's.
virtual void OnComponentCreated()
virtual QString GetVersionIdDescription(int versionId) const
Get description of version ID.

© 2007-2017 Witold Gantzke and Kirill Lepskiy