CMSPUtil Class Reference

class CMSPUtil : public CBase

Inherits from

Constructor & Destructor Documentation

CMSPUtil()

CMSPUtil ( ) [protected]

Default c'tor, protected to prevent using directly.

~CMSPUtil()

~CMSPUtil ( ) [virtual]

Virtual D'tor.

Member Functions Documentation

NewL(CDesCArrayFlat *)

CMSPUtil * NewL ( CDesCArrayFlat * aArray ) [static]

Static constructor.

Parameters

CDesCArrayFlat * aArray Array of unit texts.

SolveUnitAndSize(TInt64 &)

IMPORT_C TPtrC SolveUnitAndSize ( TInt64 & aNumber )

Solves the correct unit for given data size.

Parameters

TInt64 & aNumber Amount of data to be solved, changed accordingly.

SolveUnitAndSize(TInt64 &, TInt &)

void SolveUnitAndSize ( TInt64 & aNumber,
TInt & aUnit
) [private]

Solves the correct unit for given data size, used internally.

Parameters

TInt64 & aNumber Amount of data to be solved, changed accordingly.
TInt & aUnit Unit text index in unit array.

Member Enumerations Documentation

Enum TUnitType

Type of unit.

Enumerators

EByte = 0
EKiloByte
EMegaByte
EGigaByte
ETeraByte

Member Data Documentation

CDesCArrayFlat * iUnitArray

CDesCArrayFlat * iUnitArray [private]