API published in: S60 2nd Ed
Link against: sysutil.lib
Required Capabilities
None
#include <sysutil.h>
SysUtil API provides functions for applications to retrieve SW and language package versions and check whether there is free space on a disk drive.
Static Public Member Functions |
|
static IMPORT_C TInt | GetSWVersion (TDes &aValue) |
Obtains the software version string. |
|
static IMPORT_C TInt | GetLangSWVersion (TDes &aValue) |
Returns software version which the currently installed language package is compatible with. |
|
static IMPORT_C TInt | GetLangVersion (TDes &aValue) |
Obtains the version of the currently installed language package. |
|
static IMPORT_C TBool | FFSSpaceBelowCriticalLevelL (RFs *aFs, TInt aBytesToWrite=0) |
Checks if free FFS (internal flash file system) storage space is or will fall below critical level. |
|
static IMPORT_C TBool | MMCSpaceBelowCriticalLevelL (RFs *aFs, TInt aBytesToWrite=0) |
Checks if free MMC storage space is or will fall below critical level. |
|
static IMPORT_C TBool | DiskSpaceBelowCriticalLevelL (RFs *aFs, TInt aBytesToWrite, TInt aDrive) |
Checks if free disk drive storage space is or will fall below critical level. |
|
Checks if free disk drive storage space is or will fall below critical level. Static configuration values stored in Central Repository are used to determine a critical level for each drive. Usage example: TInt dataSize = 500; if ( SysUtil::DiskSpaceBelowCriticalLevelL( &iFsSession, dataSize, EDriveC ) ) { // Can not write the data, there's not enough free space on disk. ... } else { // It's ok to actually write the data. ... }
|
|
Checks if free FFS (internal flash file system) storage space is or will fall below critical level. Static configuration value stored in Central Repository is used to determine the critical level for the FFS drive.
|
|
Returns software version which the currently installed language package is compatible with.
|
|
Obtains the version of the currently installed language package.
|
|
Obtains the software version string. Usage example: TBuf<KSysUtilVersionTextLength> version; if ( SysUtil::GetSWVersion( version ) == KErrNone ) { // Use the version string. ... }
|
|
Checks if free MMC storage space is or will fall below critical level. Static configuration value stored in Central Repository is used to determine the critical level for the MMC drive. PathInfo API is used to determine the drive letter for the MMC drive.
|