UIQ Technology
Symbian OS Library

UIQ 3.1 SDK        UIQ developer portal

[Index] [Spacer] [Previous] [Next]



Location: e32cmn.h

Class TVersion

class TVersion;

Description

Contains version information.

A version is defined by a set of three numbers:

1. the major version number, ranging from 0 to 127, inclusive

2. the minor version number, ranging from 0 to 99 inclusive

3. the build number, ranging from 0 to 32767 inclusive.

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.

Members

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

See also:


Construction and destruction


TVersion()

IMPORT_C TVersion();

Description

Default constructor for version type Sets version to 0.0.0


TVersion()

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

Description

Constructor for version type.

Parameters

TInt aMajor

The build number (0-32767).

TInt aMinor

TInt aBuild

[Top]


Member functions


Name()

IMPORT_C TVersionName Name() const;

Description

Converts a version type to a text string.

The string is of the form X.YY(Z) where X is major version number, Y is minor and Z is build number.

Return value

TVersionName

The string in a TBuf class.

[Top]


Member data


iMajor

TInt8 iMajor;

Description

The major version number.


iMinor

TInt8 iMinor;

Description

The minor version number.


iBuild

TInt16 iBuild;

Description

The build number.