TSatUtility Class Reference
This class includes small aid fuctions
-
Since
-
S60 3.1
Public Member Functions
|
IMPORT_C
TInt
|
AsciiToBCD
(const
TDesC8
&,
TDes8
&)
|
IMPORT_C
TInt
|
BCDToAscii
(const
TPtrC8
,
TDes8
&)
|
IMPORT_C void
|
Convert7BitToUnicode16
(const
TDesC8
&,
TDes16
&)
|
IMPORT_C void
|
ConvertAlphaFieldsToUnicode
(const
TDesC8
&,
TDes
&)
|
IMPORT_C
TUint8
|
ConvertToSemiOctet
(const
TInt
)
|
IMPORT_C
TInt
|
ConvertUnicode16To7Bit
(const
TDesC16
&,
TDes8
&)
|
IMPORT_C
TInt
|
Copy16to8LE
(const
TDesC16
&,
TDes8
&)
|
IMPORT_C
TInt
|
Copy8to16LE
(const
TDesC8
&,
TDes16
&)
|
IMPORT_C
TInt
|
CopyTwo8toOne16LE
(const
TDesC8
&,
TUint16
&, const
TInt
)
|
IMPORT_C
TSmsDcs
|
DecodeCbsDcs
(const
TUint8
)
|
IMPORT_C void
|
FillDurationStructure
(
CBerTlv
&,
RSat::TDuration
&)
|
IMPORT_C void
|
FillIconStructure
(
CBerTlv
&,
RSat::TIconId
&, const
TInt
)
|
IMPORT_C
TInt
|
Packed7to8Unpacked
(const
TPtrC8
,
TDes8
&)
|
IMPORT_C void
|
RemoveWildAndExpansionDigit
(const
TPtrC8
,
TDes8
&)
|
IMPORT_C void
|
SetAlphaId
(const
TPtrC8
,
TDes
&)
|
IMPORT_C void
|
SetText
(
CTlv
&,
TDes
&)
|
IMPORT_C void
|
TonAndNpi
(
TInt
,
RSat::TTypeOfNumber
*,
RSat::TNumberingPlan
*)
|
IMPORT_C void
|
UCSToPacked7
(const
TPtrC
,
TDes8
&)
|
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 &)
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
ConvertAlphaFieldsToUnicode(const TDesC8 &, TDes &)
IMPORT_C void
|
ConvertAlphaFieldsToUnicode
|
(
|
const
TDesC8
&
|
aSource,
|
|
TDes
&
|
aTarget
|
|
)
|
[static]
|
Convert Alpha field text string to a Unicode text string.
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.
ConvertUnicode16To7Bit(const TDesC16 &, TDes8 &)
IMPORT_C
TInt
|
ConvertUnicode16To7Bit
|
(
|
const
TDesC16
&
|
aInput,
|
|
TDes8
&
|
aOutput
|
|
)
|
[static]
|
Converts unicode16 string to 7 bit character mode
Copy16to8LE(const TDesC16 &, TDes8 &)
Copy from 16 bit descriptor to 8 bit descriptor with little endian. Function uses Append method.
Copy8to16LE(const TDesC8 &, TDes16 &)
Copy from 8 bit descriptor to 16 bit descriptor with little endian. Function uses Append method.
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.
DecodeCbsDcs(const TUint8)
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 &)
Fill in a TDuration structure
FillIconStructure(CBerTlv &, RSat::TIconId &, const TInt)
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
TonAndNpi(TInt, RSat::TTypeOfNumber *, RSat::TNumberingPlan *)
Map TON and NPI to
RSat
TON and NPI values
UCSToPacked7(const TPtrC, TDes8 &)
IMPORT_C void
|
UCSToPacked7
|
(
|
const
TPtrC
|
aInput,
|
|
TDes8
&
|
aOutput
|
|
)
|
[static]
|
Converts UCS2 string to 7-bit packed format
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.