Symbian
 Developer Library

DEVELOPER LIBRARY

[Index] [Glossary] [Previous] [Next]



Location: e32std.h
Link against: euser.lib

Class TVersion

TVersion

Support

Supported from 5.0

Description

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.

Defined in TVersion:
Name(), TVersion(), TVersion(), iBuild, iMajor, iMinor


Construction and destruction


TVersion()

TVersion();

Description

Default constructor.

Sets the major, minor and build numbers to zero.


TVersion()

TVersion(TInt aMajor,TInt aMinor,TInt aBuild);

Description

Constructs the object with the specified major version number, the minor version number and the build number.

Parameters

TInt aMajor

The major version number. This must be a number in the range 0 to 127.

TInt aMinor

The minor version number. This must be a number in the range 0 to 99.

TInt aBuild

The build number. This must be a number in the range 0 to 32,767.

Notes:

[Top]


Build character representation of version


Name()

TVersionName Name();

Description

Gets a descriptor buffer containing the formatted character representation of the version information.

The general format of the representation is: xxx.yy(zzzzz)

where:

Return value

TVersionName

A buffer descriptor containing the formatted character representation.

Notes:

[Top]


Data members


iBuild

TInt16 iBuild

Description

The major version number.


iMajor

TInt8 iMajor

Description

The minor version number.


iMinor

TInt8 iMinor

Description

The build number.