SysUtil Class Reference

class SysUtil
SysUtil provides various system utility methods, as follows:
  • Functions for applications to retrieve SW and language package versions strings for display purposes

  • Functions to check whether there is free space on a disk drive before file creation or writing.

  • Functions to retrieve Device Type information (e.g. phone model) for display purposes.

Version, Attribute strings and free space thresholds are provisioned by the device creator into the ROM. For details on this see the 'SGL.TS0017.324 BAFL How-To FAQ Document' in the OS Developer Library.

Member Functions Documentation

DiskSpaceBelowCriticalLevelL(RFs *, TInt64, TInt)

IMPORT_C TBoolDiskSpaceBelowCriticalLevelL(RFs *aFs,
TInt64aBytesToWrite,
TIntaDrive
)[static]

Parameters

RFs * aFs
TInt64 aBytesToWrite
TInt aDrive

DiskSpaceBelowCriticalLevel_OldL(RFs *, TInt, TInt)

IMPORT_C TBoolDiskSpaceBelowCriticalLevel_OldL(RFs *aFs,
TIntaBytesToWrite,
TIntaDrive
)[private, static]

Parameters

RFs * aFs
TInt aBytesToWrite
TInt aDrive

FFSSpaceBelowCriticalLevelL(RFs *, TInt64)

IMPORT_C TBoolFFSSpaceBelowCriticalLevelL(RFs *aFs,
TInt64aBytesToWrite = 0
)[static]

Parameters

RFs * aFs
TInt64 aBytesToWrite = 0

FFSSpaceBelowCriticalLevel_OldL(RFs *, TInt)

IMPORT_C TBoolFFSSpaceBelowCriticalLevel_OldL(RFs *aFs,
TIntaBytesToWrite = 0
)[private, static]

Parameters

RFs * aFs
TInt aBytesToWrite = 0

GetDeviceTypeInfoL()

IMPORT_C CDeviceTypeInformation *GetDeviceTypeInfoL()[static]

GetFFSDriveLetter(RFs &)

IMPORT_C TIntGetFFSDriveLetter(RFs &aFs)[static]

Parameters

RFs & aFs

GetLangSWVersion(TDes &)

IMPORT_C TIntGetLangSWVersion(TDes &aValue)[static]

Parameters

TDes & aValue

GetLangVersion(TDes &)

IMPORT_C TIntGetLangVersion(TDes &aValue)[static]

Parameters

TDes & aValue

GetMMCDriveLetter(RFs &)

IMPORT_C TIntGetMMCDriveLetter(RFs &aFs)[static]

Parameters

RFs & aFs

GetPRInformation(TDes &)

IMPORT_C TIntGetPRInformation(TDes &aValue)[static]

Parameters

TDes & aValue

GetSWVersion(TDes &)

IMPORT_C TIntGetSWVersion(TDes &aValue)[static]

Parameters

TDes & aValue

MMCSpaceBelowCriticalLevelL(RFs *, TInt64)

IMPORT_C TBoolMMCSpaceBelowCriticalLevelL(RFs *aFs,
TInt64aBytesToWrite = 0
)[static]

Parameters

RFs * aFs
TInt64 aBytesToWrite = 0

MMCSpaceBelowCriticalLevel_OldL(RFs *, TInt)

IMPORT_C TBoolMMCSpaceBelowCriticalLevel_OldL(RFs *aFs,
TIntaBytesToWrite = 0
)[private, static]

Parameters

RFs * aFs
TInt aBytesToWrite = 0