|
Original Symbian headers
Selected EUSER, Window Server, networking, graphics and device declarations
|
Contains version information. More...
#include <e32cmn.h>
Public Member Functions | |
| IMPORT_C | TVersion () |
| Default constructor. | |
| IMPORT_C | TVersion (TInt aMajor, TInt aMinor, TInt aBuild) |
| Constructs the object with the specified major version number, the minor version number and the build number. | |
| IMPORT_C TVersionName | Name () const |
| Gets a descriptor buffer containing the formatted character representation of the version information. | |
Public Attributes | |
| TInt8 | iMajor |
| The major version number. | |
| TInt8 | iMinor |
| The minor version number. | |
| TInt16 | iBuild |
| The build number. | |
Contains version information.
A version is defined by a set of three numbers:
The class provides a constructor for setting all three numbers. It also provides a member function to build a character representation of this information in a TVersionName descriptor.
| IMPORT_C TVersion::TVersion | ( | ) |
Default constructor.
It sets the major, minor and build numbers to zero.
(generated from Symbian Developer Library)
| IMPORT_C TVersion::TVersion | ( | TInt | aMajor, |
| TInt | aMinor, | ||
| TInt | aBuild | ||
| ) |
Constructs the object with the specified major version number, the minor version number and the build number.
Note that the constructor does not check that the values passed are within the specified ranges. As the parameters are TInt types, care must be taken to ensure that values passed do not exceed the specified maxima, otherwise they will be interpreted as negative values.
| aMajor | The major version number. This must be a number in the range 0 to 127. |
| aMinor | The minor version number. This must be a number in the range 0 to 99. |
| aBuild | The build number. This must be a number in the range 0 to 32,767. |
(generated from Symbian Developer Library)
| IMPORT_C TVersionName TVersion::Name | ( | ) | const |
Gets a descriptor buffer containing the formatted character representation of the version information.
The general format of the representation is: xxx.yy(zzzzz)
where:
Note that if the object is constructed with values that exceed the permitted range, they will appear negative in their formatted character representation.
(generated from Symbian Developer Library)