TSmsDataCodingScheme Class Reference

class TSmsDataCodingScheme : public TSmsOctet

TP-DCS Data Coding Scheme defined in 3GPP TS 23.038.

The data coding scheme is not always present in an GSM SMS PDU ( CSmsPDU ). It is always present for a SUBMIT ( CSmsSubmit ) and a DELIVER ( CSmsDeliver ), and is sometimes present for a DELIVER REPORT ( CSmsDeliverReport ), a SUBMIT REPORT ( CSmsSubmitReport ) or a STATUS REPORT ( CSmsStatusReport ), depending on the parameter indicator ( TSmsParameterIndicator ).

Inherits from

Public Member Functions
TSmsDataCodingScheme ()
TSmsAlphabet Alphabet ()
TSmsDCSBits7To4 Bits7To4 ()
TBool Class ( TSmsClass &)
TSmsIndicationState IndicationState ()
TSmsIndicationType IndicationType ()
void SetAlphabet ( TSmsAlphabet )
void SetBits7To4 ( TSmsDCSBits7To4 )
void SetClass ( TBool , TSmsClass )
void SetIndicationState ( TSmsIndicationState )
void SetIndicationType ( TSmsIndicationType )
void SetTextCompressed ( TBool )
TBool TextCompressed ()
Inherited Functions
TSmsOctet::DecodeL(TGsmuLex8 &)
TSmsOctet::EncodeL(TUint8 *)const
TSmsOctet::ExternalizeL(RWriteStream &)const
TSmsOctet::FillSemiOctets(TInt)
TSmsOctet::InternalizeL(RReadStream &)
TSmsOctet::SemiOctetsToNum()const
TSmsOctet::TSmsOctet(TInt)
TSmsOctet::TSmsOctet(TUint8)
TSmsOctet::operator TInt()const
TSmsOctet::operator=(TInt)
Public Member Enumerations
enum TAutomaticDeletionGroup { ESmsDCSAutomaticDeletion  = 0x40, ESmsDCSAutomaticDeletionMask  = 0xC0 }
enum TSmsAlphabet { ESmsAlphabet7Bit  = 0x00, ESmsAlphabet8Bit  = 0x04, ESmsAlphabetUCS2  = 0x08, ESmsAlphabetReserved  = 0x0C, ESmsAlphabetMask  = 0x0C }
enum TSmsClass { ESmsClass0  = 0x00, ESmsClass1  = 0x01, ESmsClass2  = 0x02, ESmsClass3  = 0x03, ESmsClassMask  = 0x03 }
enum TSmsDCSBits7To4 {
ESmsDCSTextUncompressedWithNoClassInfo  = 0x00, ESmsDCSTextUncompressedWithClassInfo  = 0x10, ESmsDCSTextCompressedWithNoClassInfo  = 0x20, ESmsDCSTextCompressedWithClassInfo  = 0x30, ESmsDCSAutoDelNoClassInfoUncompressedText  = 0x40, ESmsDCSAutoDelClassInfoUncompressedText  = 0x50, ESmsDCSAutoDelNoClassInfoCompressedText  = 0x60, ESmsDCSAutoDelClassInfoTextCompressedText  = 0x70, ESmsDCSReserved1  = 0x40, ESmsDCSReserved2  = 0x50, ESmsDCSReserved3  = 0x60, ESmsDCSReserved4  = 0x70, ESmsDCSReserved5  = 0x80, ESmsDCSReserved6  = 0x90, ESmsDCSReserved7  = 0xA0, ESmsDCSReserved8  = 0xB0, ESmsDCSMessageWaitingIndicationDiscardMessage  = 0xC0, ESmsDCSMessageWaitingIndication7Bit  = 0xD0, ESmsDCSMessageWaitingIndicationUCS2  = 0xE0, ESmsDCSTextUncompressed7BitOr8Bit  = 0xF0, ESmsDCSBits7To4Mask  = 0xF0
}
enum TSmsIndicationState { ESmsIndicationInactive  = 0x00, ESmsIndicationActive  = 0x08, ESmsIndicationStateMask  = 0x08 }
enum TSmsIndicationType { ESmsVoicemailMessageWaiting  = 0x00, ESmsFaxMessageWaiting  = 0x01, ESmsElectronicMailMessageWaiting  = 0x02, ESmsFaxOtherMessageWaiting  = 0x03, ESmsIndicationTypeMask  = 0x03 }
Inherited Attributes
TSmsOctet::iValue

Constructor & Destructor Documentation

TSmsDataCodingScheme()

TSmsDataCodingScheme ( )

Member Functions Documentation

Alphabet()

TSmsAlphabet Alphabet ( ) const

Bits7To4()

TSmsDCSBits7To4 Bits7To4 ( ) const [inline]

Gets bits 7 - 4 of the Data Coding Scheme.

Class(TSmsClass &)

TBool Class ( TSmsClass & aClass ) const

Parameters

TSmsClass & aClass

IndicationState()

TSmsIndicationState IndicationState ( ) const

IndicationType()

TSmsIndicationType IndicationType ( ) const

SetAlphabet(TSmsAlphabet)

void SetAlphabet ( TSmsAlphabet aAlphabet )

Parameters

TSmsAlphabet aAlphabet

SetBits7To4(TSmsDCSBits7To4)

void SetBits7To4 ( TSmsDCSBits7To4 aBits7To4 ) [inline]

Sets bits 7 - 4 of the Data Coding Scheme.

Parameters

TSmsDCSBits7To4 aBits7To4 Bits 7 - 4 of the Data Coding Scheme

SetClass(TBool, TSmsClass)

void SetClass ( TBool aClassDefined,
TSmsClass aClass
)

Parameters

TBool aClassDefined
TSmsClass aClass

SetIndicationState(TSmsIndicationState)

void SetIndicationState ( TSmsIndicationState aState )

Parameters

TSmsIndicationState aState

SetIndicationType(TSmsIndicationType)

void SetIndicationType ( TSmsIndicationType aType )

Parameters

TSmsIndicationType aType

SetTextCompressed(TBool)

void SetTextCompressed ( TBool aCompressed )

Parameters

TBool aCompressed

TextCompressed()

TBool TextCompressed ( ) const

Member Enumerations Documentation

Enum TAutomaticDeletionGroup

Message Marked for Automatic Deletion

Enumerators

ESmsDCSAutomaticDeletion = 0x40
ESmsDCSAutomaticDeletionMask = 0xC0

Enum TSmsAlphabet

Alphabet bit flags.

Enumerators

ESmsAlphabet7Bit = 0x00

GSM 7 bit default alphabet.

ESmsAlphabet8Bit = 0x04

8-bit data.

ESmsAlphabetUCS2 = 0x08

UCS2.

ESmsAlphabetReserved = 0x0C

Reserved.

ESmsAlphabetMask = 0x0C

Mask for these bit flags.

Enum TSmsClass

Message Class bit flags.

Enumerators

ESmsClass0 = 0x00

Class 0.

ESmsClass1 = 0x01

Class 1.

ESmsClass2 = 0x02

Class 2.

ESmsClass3 = 0x03

Class 3.

ESmsClassMask = 0x03

Mask for these bit flags.

Enum TSmsDCSBits7To4

Flags for bits 7-4, which determine the meaning of the lower order bits.

Enumerators

ESmsDCSTextUncompressedWithNoClassInfo = 0x00

Text is uncompressed, no class information.

ESmsDCSTextUncompressedWithClassInfo = 0x10

Text is uncompressed, class information present.

ESmsDCSTextCompressedWithNoClassInfo = 0x20

Text is compressed, no class information.

ESmsDCSTextCompressedWithClassInfo = 0x30

Text is compressed, class information present.

ESmsDCSAutoDelNoClassInfoUncompressedText = 0x40

Auto Deletion, Text is uncompressed, no class information.

ESmsDCSAutoDelClassInfoUncompressedText = 0x50

Auto Deletion, Text is uncompressed, class information present.

ESmsDCSAutoDelNoClassInfoCompressedText = 0x60

Auto Deletion, Text is compressed, no class information.

ESmsDCSAutoDelClassInfoTextCompressedText = 0x70

Auto Deletion, Text is compressed, class information present.

ESmsDCSReserved1 = 0x40

Reserved.

ESmsDCSReserved2 = 0x50

Reserved.

ESmsDCSReserved3 = 0x60

Reserved.

ESmsDCSReserved4 = 0x70

Reserved.

ESmsDCSReserved5 = 0x80

Reserved.

ESmsDCSReserved6 = 0x90

Reserved.

ESmsDCSReserved7 = 0xA0

Reserved.

ESmsDCSReserved8 = 0xB0

Reserved.

ESmsDCSMessageWaitingIndicationDiscardMessage = 0xC0

Message Waiting Indication Group: Discard Message.

ESmsDCSMessageWaitingIndication7Bit = 0xD0

Message Waiting Indication Group (7 bit).

ESmsDCSMessageWaitingIndicationUCS2 = 0xE0

Message Waiting Indication Group (UCS2).

ESmsDCSTextUncompressed7BitOr8Bit = 0xF0

Text uncompressed, 7 bit or 8 bit.

ESmsDCSBits7To4Mask = 0xF0

Masks bits 7 to 4.

Enum TSmsIndicationState

Indication Sense bit flags.

Enumerators

ESmsIndicationInactive = 0x00

Indication inactive.

ESmsIndicationActive = 0x08

Indication active.

ESmsIndicationStateMask = 0x08

Mask for these bit flags.

Enum TSmsIndicationType

Indication Type bit flags.

Enumerators

ESmsVoicemailMessageWaiting = 0x00

Voicemail Message Waiting.

ESmsFaxMessageWaiting = 0x01

Fax Message Waiting.

ESmsElectronicMailMessageWaiting = 0x02

Electronic Mail Message Waiting.

ESmsFaxOtherMessageWaiting = 0x03

Other Message Waiting.

ESmsIndicationTypeMask = 0x03

Mask for these bit flags.