TSatUtility Class Reference

class TSatUtility
This class includes small aid fuctions
Since
S60 3.1

Member Functions Documentation

AsciiToBCD(const TDesC8 &, TDes8 &)

IMPORT_C TInt AsciiToBCD ( const TDesC8 & aInput,
TDes8 & aOutput
) [static]

Converts Ascii string to Binary Coded Decimal

Parameters

const TDesC8 & aInput is source
TDes8 & aOutput converted 8-bit string

BCDToAscii(const TPtrC8, TDes8 &)

IMPORT_C TInt BCDToAscii ( const TPtrC8 aInput,
TDes8 & aOutput
) [static]

Converts Binary Coded Decimal to ASCII

Parameters

const TPtrC8 aInput is source
TDes8 & aOutput converted 8-bit string

Convert7BitToUnicode16(const TDesC8 &, TDes16 &)

IMPORT_C void Convert7BitToUnicode16 ( const TDesC8 & aInput,
TDes16 & aOutput
) [static]

Browse a text in Unicode format, and for some specific characters replace with the correct byte value

Parameters

const TDesC8 & aInput
TDes16 & aOutput

ConvertAlphaFieldsToUnicode(const TDesC8 &, TDes &)

IMPORT_C void ConvertAlphaFieldsToUnicode ( const TDesC8 & aSource,
TDes & aTarget
) [static]

Convert Alpha field text string to a Unicode text string.

Parameters

const TDesC8 & aSource text string
TDes & aTarget

ConvertToSemiOctet(const TInt)

IMPORT_C TUint8 ConvertToSemiOctet ( const TInt aTime ) [static]

Convert integer to BCD format. If number is more than 100 only last two digits is converted.

Parameters

const TInt aTime time

ConvertUnicode16To7Bit(const TDesC16 &, TDes8 &)

IMPORT_C TInt ConvertUnicode16To7Bit ( const TDesC16 & aInput,
TDes8 & aOutput
) [static]

Converts unicode16 string to 7 bit character mode

Parameters

const TDesC16 & aInput
TDes8 & aOutput

Copy16to8LE(const TDesC16 &, TDes8 &)

IMPORT_C TInt Copy16to8LE ( const TDesC16 & aSource,
TDes8 & aTarget
) [static]

Copy from 16 bit descriptor to 8 bit descriptor with little endian. Function uses Append method.

Parameters

const TDesC16 & aSource
TDes8 & aTarget

Copy8to16LE(const TDesC8 &, TDes16 &)

IMPORT_C TInt Copy8to16LE ( const TDesC8 & aSource,
TDes16 & aTarget
) [static]

Copy from 8 bit descriptor to 16 bit descriptor with little endian. Function uses Append method.

Parameters

const TDesC8 & aSource
TDes16 & aTarget

CopyTwo8toOne16LE(const TDesC8 &, TUint16 &, const TInt)

IMPORT_C TInt CopyTwo8toOne16LE ( const TDesC8 & aSource,
TUint16 & aTarget,
const TInt aIndex
) [static]

Gets 8 bit byte and copy it to the 16 bit byte with right endian.

Parameters

const TDesC8 & aSource
TUint16 & aTarget
const TInt aIndex

DecodeCbsDcs(const TUint8)

IMPORT_C TSmsDcs DecodeCbsDcs ( const TUint8 aDcs ) [static]

Finds whether the data coding scheme, coded in CBS format, is 7-bit, 8-bit or 16-bit

Parameters

const TUint8 aDcs Input data coding scheme

FillDurationStructure(CBerTlv &, RSat::TDuration &)

IMPORT_C void FillDurationStructure ( CBerTlv & aBerTlv,
RSat::TDuration & aTDuration
) [static]

Fill in a TDuration structure

Parameters

CBerTlv & aBerTlv tlv containing duration data
RSat::TDuration & aTDuration duration structure

FillIconStructure(CBerTlv &, RSat::TIconId &, const TInt)

IMPORT_C void FillIconStructure ( CBerTlv & aBerTlv,
RSat::TIconId & aTIconId,
const TInt aItemNmb = 0
) [static]

Fill in a TIconId structure

Parameters

CBerTlv & aBerTlv data containing icon address data
RSat::TIconId & aTIconId icon id structure
const TInt aItemNmb = 0 item number

Packed7to8Unpacked(const TPtrC8, TDes8 &)

IMPORT_C TInt Packed7to8Unpacked ( const TPtrC8 aSource,
TDes8 & aTarget
) [static]

Converts 7-bit packed string to 8-bit unpacked format

Parameters

const TPtrC8 aSource
TDes8 & aTarget converted 8-bit unpacked string

RemoveWildAndExpansionDigit(const TPtrC8, TDes8 &)

IMPORT_C void RemoveWildAndExpansionDigit ( const TPtrC8 aInput,
TDes8 & aOutput
) [static]

Remove Wild 'w' and Expansion digit '.' from EFadn string.

Parameters

const TPtrC8 aInput is source
TDes8 & aOutput converted 8-bit string

SetAlphaId(const TPtrC8, TDes &)

IMPORT_C void SetAlphaId ( const TPtrC8 aRawData,
TDes & aAlphaId
) [static]

Set Alpha identifier as a Unicode text string and according to the alphabet used

Parameters

const TPtrC8 aRawData input data that was extracted with ETLV_AlphaIdentifier
TDes & aAlphaId output

SetText(CTlv &, TDes &)

IMPORT_C void SetText ( CTlv & aTextTlv,
TDes & aUnicodeOutput
) [static]

Set Text string as a Unicode text string

Parameters

CTlv & aTextTlv
TDes & aUnicodeOutput

TonAndNpi(TInt, RSat::TTypeOfNumber *, RSat::TNumberingPlan *)

IMPORT_C void TonAndNpi ( TInt aTonAndNpi,
RSat::TTypeOfNumber * aTon,
RSat::TNumberingPlan * aNpi
) [static]

Map TON and NPI to RSat TON and NPI values

Parameters

TInt aTonAndNpi
RSat::TTypeOfNumber * aTon
RSat::TNumberingPlan * aNpi

UCSToPacked7(const TPtrC, TDes8 &)

IMPORT_C void UCSToPacked7 ( const TPtrC aInput,
TDes8 & aOutput
) [static]

Converts UCS2 string to 7-bit packed format

Parameters

const TPtrC aInput
TDes8 & aOutput