Symbian Developer Library

SYMBIAN OS V6.1 EDITION FOR C++

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



Location: e32std.h
Link against: euser.lib

Class TVersion

TVersion

Support

Supported from 5.0

Description

Encapsulates 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(), iBuild, iMajor, iMinor


Construction and destruction


TVersion()

TVersion();

Description

Constructs an uninitialised TVersion — default constructor. It is necessary because there are also non-default constructors in this class.


TVersion()

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

Description

Constructs a TVersion with the major version number, the minor version number and the build number.

Parameters

TInt aMajor

The major version number

TInt aMinor

The minor version number

TInt aBuild

The build number

[Top]


Build character representation of version


Name()

TVersionName Name();

Description

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

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

where:

Return value

TVersionName

A TBuf<TInt> descriptor containing the formatted character representation.

[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