eVaf
version_rc.h
Go to the documentation of this file.
1 
20 #ifndef __VERSION_RC_H
21 #define __VERSION_RC_H
22 
23 #include <QtCore/qglobal.h>
24 
28 #ifndef VER_PRODUCT_VERSION
29 # define VER_PRODUCT_VERSION 0,1,1
30 #endif
31 
35 #ifndef VER_PRODUCT_VERSION_STR
36 # define VER_PRODUCT_VERSION_STR "0.1.1\0"
37 #endif
38 
42 #ifndef VER_PRODUCT_NAME_STR
43 # define VER_PRODUCT_NAME_STR "eVaf\0"
44 #endif
45 
49 #ifndef VER_PRODUCT_DATE_STR
50 # define VER_PRODUCT_DATE_STR "N/A\0"
51 #endif
52 
56 #ifndef VER_LEGAL_COPYRIGHT_STR
57 # define VER_LEGAL_COPYRIGHT_STR "(C) 2011-2012 Enar Vaikene\0"
58 #endif
59 
63 #ifndef VER_COMPANY_NAME_STR
64 # define VER_COMPANY_NAME_STR "eVaf\0"
65 #endif
66 
71 #define MT_GENERIC 0
72 #define MT_GENERIC_STR "generic\0"
73 
81 {
92  uint const type;
93 
99  char const * const name;
100 
104  uint const version[4];
105 
109  char const * const versionStr;
110 
116  char const * const description;
117 
123  char const * const prodName;
124 
131  uint const prodVersion[3];
132 
136  char const * const prodVersionStr;
137 
144  char const * const prodDateStr;
145 
149  char const * const copyright;
150 
154  char const * const company;
155 
156 };
157 
158 #ifndef C_EXTERN_C
159 # ifdef __cplusplus
160 # define C_EXTERN_C extern "C"
161 # else
162 # define C_EXTERN_C
163 # endif
164 #endif
165 
180 
201 #define VER_EXPORT_VERSION_INFO() \
202  C_EXTERN_C Q_DECL_EXPORT void moduleQueryVersionInfo(ModuleVersionInfo ** ptr) \
203  { \
204  static ModuleVersionInfo ver = { VER_MODULE_TYPE, \
205  VER_MODULE_NAME_STR, \
206  { VER_FILE_VERSION }, \
207  VER_FILE_VERSION_STR, \
208  VER_FILE_DESCRIPTION_STR, \
209  VER_PRODUCT_NAME_STR, \
210  { VER_PRODUCT_VERSION }, \
211  VER_PRODUCT_VERSION_STR, \
212  VER_PRODUCT_DATE_STR, \
213  VER_LEGAL_COPYRIGHT_STR, \
214  VER_COMPANY_NAME_STR \
215  }; \
216  *ptr = &ver; \
217  }
218 
219 #endif // version_rc.h
char const *const versionStr
Human-readable version number of the module.
Definition: version_rc.h:109
char const *const prodName
Name of the product.
Definition: version_rc.h:123
char const *const name
Name of the module.
Definition: version_rc.h:99
Version info structure for modules.
Definition: version_rc.h:80
uint const version[4]
4-digit version number of the module in the format major,minor,release,build
Definition: version_rc.h:104
uint const type
Type of the module.
Definition: version_rc.h:92
uint const prodVersion[3]
3-digit product version number in the format major,minor,release
Definition: version_rc.h:131
char const *const prodDateStr
Human-readable release date of the product.
Definition: version_rc.h:144
char const *const copyright
Legal copyright.
Definition: version_rc.h:149
char const *const company
Name of the company.
Definition: version_rc.h:154
char const *const prodVersionStr
Human-readable product version number of the product.
Definition: version_rc.h:136
char const *const description
Description of the module.
Definition: version_rc.h:116
void(* ModuleQueryVersionInfoFunction)(ModuleVersionInfo **ptr)
Function prototype that returns version information from a module.
Definition: version_rc.h:179