CSmsCommand Class Reference

class CSmsCommand : public CSmsPDU

SMS-COMMAND PDU - MS to SC

Inherits from

Public Member Functions
CSmsCommand ()
~CSmsCommand ()
IMPORT_C void AddInformationElementL ( CSmsInformationElement::TSmsInformationElementIdentifier , TDesC8 &)
IMPORT_C TPtrC8 CommandData ()
IMPORT_C TInt CommandType ()
IMPORT_C CSmsCommand * DuplicateL ()
IMPORT_C CSmsInformationElement & InformationElement ( TInt )
IMPORT_C TBool InformationElementIndex ( CSmsInformationElement::TSmsInformationElementIdentifier , TInt &)
CSmsInformationElement *& InformationElementPtr ( TInt )
IMPORT_C TInt MaxCommandDataLength ()
IMPORT_C TInt MessageNumber ()
IMPORT_C TInt MessageReference ()
IMPORT_C TInt NumInformationElements ()
IMPORT_C void RemoveInformationElement ( TInt )
IMPORT_C void SetCommandDataL (const TDesC8 &)
IMPORT_C void SetCommandType ( TSmsCommandType::TSmsCommandTypeValue )
IMPORT_C void SetMessageNumber ( TInt )
IMPORT_C void SetMessageReference ( TInt )
IMPORT_C void SetStatusReportRequest ( TBool )
IMPORT_C TBool StatusReportRequest ()
Protected Member Functions
void ConstructL ( CCnvCharacterSetConverter &, RFs &)
void DecodeL ( TGsmuLex8 &)
void DoSetStatusReportRequest ( TBool )
TUint8 * EncodeL ( TUint8 *)
TUint8 * EncodeL ( TUint8 *, const TEncodeParams *)
void ExternalizeMessagePDUL ( RWriteStream &)
void InternalizeMessagePDUL ( RReadStream &)
const TSmsProtocolIdentifier * ProtocolIdentifier ()
const CSmsAddress * ToFromAddressPtr ()
Inherited Functions
CBase::CBase()
CBase::Delete(CBase *)
CBase::Extension_(TUint,TAny *&,TAny *)
CBase::operator new(TUint)
CBase::operator new(TUint,TAny *)
CBase::operator new(TUint,TLeave)
CBase::operator new(TUint,TLeave,TUint)
CBase::operator new(TUint,TUint)
CBase::~CBase()
CSmsPDU::Alphabet()const
CSmsPDU::ApplicationPortAddressing(TInt &,TInt &,TBool *)const
CSmsPDU::Bits7To4()const
CSmsPDU::CSmsPDU(TSmsPDUType)
CSmsPDU::Class(TSmsDataCodingScheme::TSmsClass &)const
CSmsPDU::ConcatenatedMessagePDUIndex()const
CSmsPDU::ConcatenatedMessageReference()const
CSmsPDU::DataCodingScheme()const
CSmsPDU::DataCodingSchemePresent()const
CSmsPDU::EncodeMessagePDUL(TGsmSms &)const
CSmsPDU::EncodeMessagePDUL(TGsmSms &,const TEncodeParams *)const
CSmsPDU::ExternalizeL(RWriteStream &)const
CSmsPDU::IndicationState()const
CSmsPDU::IndicationType()const
CSmsPDU::NationalLanguageEncoding()const
CSmsPDU::NewL(RReadStream &,CCnvCharacterSetConverter &,RFs &)
CSmsPDU::NewL(TSmsPDUType,CCnvCharacterSetConverter &,RFs &,TBool)
CSmsPDU::NewL(const TGsmSms &,CCnvCharacterSetConverter &,RFs &,TBool,TBool)
CSmsPDU::NumConcatenatedMessagePDUs()const
CSmsPDU::PIDType()const
CSmsPDU::ParameterIndicator()const
CSmsPDU::ParsedServiceCenterAddress(TGsmSmsTelNumber &)const
CSmsPDU::ParsedToFromAddress(TGsmSmsTelNumber &)const
CSmsPDU::ProtocolIdentifierPresent()const
CSmsPDU::ServiceCenterAddress()const
CSmsPDU::SetAlphabet(TSmsDataCodingScheme::TSmsAlphabet)
CSmsPDU::SetApplicationPortAddressingL(TBool,TInt,TInt,TBool)
CSmsPDU::SetBits7To4(TSmsDataCodingScheme::TSmsDCSBits7To4)
CSmsPDU::SetClass(TBool,TSmsDataCodingScheme::TSmsClass)
CSmsPDU::SetConcatenatedMessagePDUIndex(TInt)
CSmsPDU::SetConcatenatedMessageReference(TInt)
CSmsPDU::SetDataCodingSchemePresent(TBool)
CSmsPDU::SetIndicationState(TSmsDataCodingScheme::TSmsIndicationState)
CSmsPDU::SetIndicationType(TSmsDataCodingScheme::TSmsIndicationType)
CSmsPDU::SetNationalLanguageEncodingL(TSmsEncoding)
CSmsPDU::SetNumConcatenatedMessagePDUs(TInt)
CSmsPDU::SetPIDType(TSmsProtocolIdentifier::TSmsPIDType)
CSmsPDU::SetParsedServiceCenterAddressL(const TGsmSmsTelNumber &)
CSmsPDU::SetParsedToFromAddressL(const TGsmSmsTelNumber &)
CSmsPDU::SetProtocolIdentifierPresent(TBool)
CSmsPDU::SetServiceCenterAddressL(const TDesC &)
CSmsPDU::SetShortMessageType(TSmsProtocolIdentifier::TSmsShortMessageType)
CSmsPDU::SetTelematicDeviceIndicator(TSmsProtocolIdentifier::TSmsTelematicDeviceIndicator)
CSmsPDU::SetTelematicDeviceType(TSmsProtocolIdentifier::TSmsTelematicDeviceType)
CSmsPDU::SetTextCompressed(TBool)
CSmsPDU::SetTextConcatenatedL(TBool,TBool)
CSmsPDU::SetToFromAddressL(const TDesC &)
CSmsPDU::SetUserDataPresent(TBool)
CSmsPDU::ShortMessageType()const
CSmsPDU::TelematicDeviceIndicator()const
CSmsPDU::TelematicDeviceType()const
CSmsPDU::TextCompressed()const
CSmsPDU::TextConcatenated(TBool *)const
CSmsPDU::ToFromAddress()const
CSmsPDU::Type()const
CSmsPDU::UpdateConcatenationDataL(TInt,TInt,TInt)
CSmsPDU::UpdateEmailHeaderDataL(TInt &)
CSmsPDU::UpdateSMSCCtrlParameterL(const TUint8)
CSmsPDU::UpdateTPSRRL(TSmsFirstOctet)
CSmsPDU::UserData()
CSmsPDU::UserData()const
CSmsPDU::UserDataPresent()const
CSmsPDU::UserDataPtr()const
Inherited Enumerations
CSmsPDU:TSmsPDUType
Private Attributes
CSmsCommandData * iCommandData
TSmsCommandType iCommandType
CSmsAddress * iDestinationAddress
TSmsFirstOctet iFirstOctet
TSmsOctet iMessageNumber
TSmsOctet iMessageReference
TSmsProtocolIdentifier iProtocolIdentifier
Inherited Attributes
CSmsPDU::iServiceCenterAddress

Constructor & Destructor Documentation

CSmsCommand()

CSmsCommand ( )

~CSmsCommand()

~CSmsCommand ( )

Destructor.

Member Functions Documentation

AddInformationElementL(CSmsInformationElement::TSmsInformationElementIdentifier, TDesC8 &)

IMPORT_C void AddInformationElementL ( CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier,
TDesC8 & aData
)

Adds an Information Element.

capability
None

Parameters

CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier Information Element Identifier to add
TDesC8 & aData The Information Element data

CommandData()

IMPORT_C TPtrC8 CommandData ( ) const

Gets the Command Data.

capability
None

CommandType()

IMPORT_C TInt CommandType ( ) const

Gets the Command Type.

capability
None

ConstructL(CCnvCharacterSetConverter &, RFs &)

void ConstructL ( CCnvCharacterSetConverter & aCharacterSetConverter,
RFs & aFs
) [protected, virtual]

Parameters

CCnvCharacterSetConverter & aCharacterSetConverter
RFs & aFs

DecodeL(TGsmuLex8 &)

void DecodeL ( TGsmuLex8 & aPdu ) [protected, virtual]

Parameters

TGsmuLex8 & aPdu

DoSetStatusReportRequest(TBool)

void DoSetStatusReportRequest ( TBool aRequest ) [protected]

Parameters

TBool aRequest

DuplicateL()

IMPORT_C CSmsCommand * DuplicateL ( ) const

Duplicates this CSmsCommand object.

EncodeL(TUint8 *)

TUint8 * EncodeL ( TUint8 * aPtr ) const [protected, virtual]

Parameters

TUint8 * aPtr

EncodeL(TUint8 *, const TEncodeParams *)

TUint8 * EncodeL ( TUint8 * aPtr,
const TEncodeParams * aEncodeParams
) const [protected, virtual]

Parameters

TUint8 * aPtr
const TEncodeParams * aEncodeParams

ExternalizeMessagePDUL(RWriteStream &)

void ExternalizeMessagePDUL ( RWriteStream & aStream ) const [protected, virtual]

Parameters

RWriteStream & aStream

InformationElement(TInt)

IMPORT_C CSmsInformationElement & InformationElement ( TInt aIndex ) const

Gets an Information Element.

capability
None

Parameters

TInt aIndex The Information Element Index within the PDU

InformationElementIndex(CSmsInformationElement::TSmsInformationElementIdentifier, TInt &)

IMPORT_C TBool InformationElementIndex ( CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier,
TInt & aIndex
) const

Gets index of a specified Information Element.

capability
None

Parameters

CSmsInformationElement::TSmsInformationElementIdentifier aIdentifier Information Element Identifier to match
TInt & aIndex On return, index of the Information Element matching aIdentifier

InformationElementPtr(TInt)

CSmsInformationElement *& InformationElementPtr ( TInt aIndex ) const

Gets a pointer to the Information Element located at aIndex.

capability
None

Parameters

TInt aIndex The Information Element Index within the PDU

InternalizeMessagePDUL(RReadStream &)

void InternalizeMessagePDUL ( RReadStream & aStream ) [protected, virtual]

Parameters

RReadStream & aStream

MaxCommandDataLength()

IMPORT_C TInt MaxCommandDataLength ( ) const

Gets the Maximum Data Length of the Command.

capability
None

MessageNumber()

IMPORT_C TInt MessageNumber ( ) const

Gets the Message Number.

capability
None

MessageReference()

IMPORT_C TInt MessageReference ( ) const

Gets the Message Reference.

capability
None

NumInformationElements()

IMPORT_C TInt NumInformationElements ( ) const

Gets the number of Information Elements in the User Data.

capability
None

ProtocolIdentifier()

const TSmsProtocolIdentifier * ProtocolIdentifier ( ) const [protected, virtual]

RemoveInformationElement(TInt)

IMPORT_C void RemoveInformationElement ( TInt aIndex )

Removes an Information Element.

capability
None

Parameters

TInt aIndex Index of the Information Element to be removed

SetCommandDataL(const TDesC8 &)

IMPORT_C void SetCommandDataL ( const TDesC8 & aData )

Sets the Command Data.

capability
None

Parameters

const TDesC8 & aData The Command Data

SetCommandType(TSmsCommandType::TSmsCommandTypeValue)

IMPORT_C void SetCommandType ( TSmsCommandType::TSmsCommandTypeValue aCommandType )

Sets the Command Type.

capability
None

Parameters

TSmsCommandType::TSmsCommandTypeValue aCommandType Command Type

SetMessageNumber(TInt)

IMPORT_C void SetMessageNumber ( TInt aMessageNumber )

Sets the Message Number.

capability
None

Parameters

TInt aMessageNumber Message Number

SetMessageReference(TInt)

IMPORT_C void SetMessageReference ( TInt aMessageReference )

Sets the Message Reference.

capability
None

Parameters

TInt aMessageReference Message Reference

SetStatusReportRequest(TBool)

IMPORT_C void SetStatusReportRequest ( TBool aRequest )

Sets Status Report Request flag.

capability
None

Parameters

TBool aRequest Set to True to Request Status Report

StatusReportRequest()

IMPORT_C TBool StatusReportRequest ( ) const

Gets Status Report Request flag.

capability
None

ToFromAddressPtr()

const CSmsAddress * ToFromAddressPtr ( ) const [protected, virtual]

Member Data Documentation

CSmsCommandData * iCommandData

CSmsCommandData * iCommandData [private]

TSmsCommandType iCommandType

TSmsCommandType iCommandType [private]

CSmsAddress * iDestinationAddress

CSmsAddress * iDestinationAddress [private]

TSmsFirstOctet iFirstOctet

TSmsFirstOctet iFirstOctet [private]

TSmsOctet iMessageNumber

TSmsOctet iMessageNumber [private]

TSmsOctet iMessageReference

TSmsOctet iMessageReference [private]

TSmsProtocolIdentifier iProtocolIdentifier

TSmsProtocolIdentifier iProtocolIdentifier [private]