SysVersionInfo Class Reference
Extended Version Info API provides extended version information i.e. firmware, operator etc version information.
Usage:
Get the version information:
// iFs contains open file server session
TBuf< KSysVersionInfoTextLength > info;
User::LeaveIfError( SysVersionInfo::GetVersionInfo(
SysVersionInfo::EFWVersion, info, iFs ) );
// Now info contains firmware version information
SysVersionInfo::TSymbianOSVersion osVersion;
User::LeaveIfError( SysVersionInfo::GetVersionInfo( osVersion, iFs ) );
// Now osVersion contains the Symbian OS version information
SysVersionInfo::TProductVersion productVersion;
User::LeaveIfError( SysVersionInfo::GetVersionInfo( productVersion, iFs ) );
// Now productVersion contains the product version information
sysversioninfo.lib
- Since
- S60 3.2
Nested Classes and Structures
Constructor & Destructor Documentation
SysVersionInfo()
SysVersionInfo | ( | ) | [private] |
Member Functions Documentation
GetVersionInfo(const TVersionInfoType, TDes &)
This method gets the requested version information as string. The maximum length for the string is KSysVersionInfoTextLength if it has not been explicitly specified by the requested TVersionInfoType definition.
KErrTooBig is returned if the requested version info does not fit into given descriptor. The part that fits is copied to the given descriptor.
Parameters
const TVersionInfoType aType | A version information type specified by TVersionInfoType. |
TDes & aValue | Stores version information. |
GetVersionInfo(const TVersionInfoType, TDes &, RFs &)
This method gets the requested version information as string. The maximum length for the string is KSysVersionInfoTextLength if it has not been explicitly specified by the requested TVersionInfoType definition. The method avoids overhead of creating new file server session.
KErrTooBig is returned if the requested version info does not fit into given descriptor. The part that fits is copied to the given descriptor.
Parameters
const TVersionInfoType aType | A version information type specified by TVersionInfoType. |
TDes & aValue | Stores version information. |
RFs & aFs | Open file server session. |
GetVersionInfo(TVersionBase &)
This method gets the requested version information.
Parameters
TVersionBase & aVersion | On return, contains the version information. |
GetVersionInfo(TVersionBase &, RFs &)
This method gets the requested version information and avoids overhead of creating new file server session.
Parameters
TVersionBase & aVersion | On return, contains the version information. |
RFs & aFs | Open file server session. |
Member Enumerations Documentation
Enum TVersionInfoType
Enumeration TVersionInfoType defines values to be used for the aType parameter in GetVersionInfo method.
- Since
- S60 3.2
Enumerators
EFWVersion = 0 |
To get the firmware version that is composed of the version info of multiple images (core + variants images).
|
EOPVersion |
To get the customer software version. This identifies the user friendly version of e.g. operator/country/regional variant image.
|
EModelVersion |
To get the model version.
|
EProductCode |
To get the product code.
|
Enum TVersionType
Used internally to detect type of version info
Enumerators
ESymbianOSVersion = 0 | |
EProductVersion | |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.