VersionInfo Class Reference

#include <versioninfo.h>

Link against: platformver.lib

class VersionInfo
Public Member Functions
IMPORT_C TIntGetVersion(TVersionBase &)
IMPORT_C TIntGetVersion(TVersionBase &, RFs &)

Detailed Description

Class holds system version information. Version Info API provides an interface for quering system version information.

Usage:

Get platform version information:
 // iFs contains open file server session

 VersionInfo::TPlatformVersion platformVersion;
 // Select the overload of VersionInfo::GetVersion() that suits best for 
 // the current client.
 User::LeaveIfError( VersionInfo::GetVersion( platformVersion, iFs ) );

 // Now platformVersion contains platform version information.
Since
S60 3.2

Member Function Documentation

GetVersion ( TVersionBase & )

IMPORT_C TIntGetVersion(TVersionBase &aVersion)[static]

This method gets the version information.

Since
S60 3.2

See also: TVersionBase

ParameterDescription
aVersionStores the version information

Returns: System wide error code

GetVersion ( TVersionBase &, RFs & )

IMPORT_C TIntGetVersion(TVersionBase &aVersion,
RFs &aFs
)[static]

This method gets the version information. Given file server session avoids the overhead of new file server connection.

Since
S60 3.2

See also: TVersionBase

ParameterDescription
aVersionStores the version information
aFsAn opened file server session

Returns: System wide error code