CSmsReplyAddressOperations Class Reference

#include <gsmuieoperations.h>

class CSmsReplyAddressOperations : public CSmsCtrlOperation, public CSmsCtrlOperation
Protected Attributes
CCnvCharacterSetConverter &iCharacterSetConverter
RFs &iFs
Public Member Functions
CSmsReplyAddressOperations(CSmsInformationElement::TSmsInformationElementIdentifier, CSmsMessage &, CCnvCharacterSetConverter &, RFs &)
~CSmsReplyAddressOperations()
IMPORT_C voidAddParsedReplyAddressL(const TGsmSmsTelNumber &)
IMPORT_C voidAddReplyAddressL(const TDesC &)
IMPORT_C TBoolContainsReplyAddressIEL()
IMPORT_C TIntGetParsedReplyAddressL(TGsmSmsTelNumber &)
IMPORT_C HBufC *GetReplyAddressL()
CSmsReplyAddressOperations *NewL(CSmsInformationElement::TSmsInformationElementIdentifier, CSmsMessage &, CCnvCharacterSetConverter &, RFs &)
IMPORT_C voidRemoveReplyAddressL()
Protected Member Functions
virtual voidValidateOperationL()
voidoperator=(const CSmsReplyAddressOperations &)
TBool operator==(const CSmsReplyAddressOperations &)
Inherited Attributes
CSmsIEOperation::iMessage
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()
CSmsCtrlOperation::CSmsCtrlOperation(CSmsInformationElement::TSmsInformationElementIdentifier,CSmsMessage &)
CSmsCtrlOperation::operator=(const CSmsCtrlOperation &)
CSmsCtrlOperation::operator==(const CSmsCtrlOperation &)
CSmsCtrlOperation::~CSmsCtrlOperation()
CSmsIEOperation::CSmsIEOperation(CSmsInformationElement::TSmsInformationElementIdentifier,CSmsMessage &)
CSmsIEOperation::Id()const
CSmsIEOperation::MessageTypeSupported()const
CSmsIEOperation::operator=(const CSmsIEOperation &)
CSmsIEOperation::operator==(const CSmsIEOperation &)
CSmsIEOperation::~CSmsIEOperation()

Detailed Description

Clients use this class to configure a CSmsMessage with a reply address per 23.040 v6.5.0 section 9.2.3.24.10.1.17.

Member Attribute Documentation

iCharacterSetConverter

CCnvCharacterSetConverter &iCharacterSetConverter[protected]

iFs

RFs &iFs[protected]

Constructor & Destructor Documentation

CSmsReplyAddressOperations ( CSmsInformationElement::TSmsInformationElementIdentifier, CSmsMessage &, CCnvCharacterSetConverter &, RFs & )

CSmsReplyAddressOperations(CSmsInformationElement::TSmsInformationElementIdentifieraId,
CSmsMessage &aMessage,
CCnvCharacterSetConverter &iCharacterSetConverter,
RFs &iFs
)

~CSmsReplyAddressOperations ( )

~CSmsReplyAddressOperations()[inline]

Member Function Documentation

AddParsedReplyAddressL ( const TGsmSmsTelNumber & )

IMPORT_C voidAddParsedReplyAddressL(const TGsmSmsTelNumber &aParsedAddress)const

Adds a reply address information element.

Leave Codes
KErrNotSupportedIf the message version or type does not support a reply addresses.
KErrAlreadyExistsIf the message already contains a reply address.
Capability
None

AddReplyAddressL ( const TDesC & )

IMPORT_C voidAddReplyAddressL(const TDesC &aAddress)const

Adds a reply address information element.

Parameters
aAddressThe international number to be used in the reply address.
Leave Codes
KErrNotSupportedIf the message version or type does not support a reply addresses.
KErrAlreadyExistsIf the message already contains a reply address.
Capability
None

ContainsReplyAddressIEL ( )

IMPORT_C TBoolContainsReplyAddressIEL()const

Identifies whether a reply address has already been added to this CSmsMessage using the CSmsReplyAddressOperations interface.

Return Value
True if the reply address has already been added using this interface.
Leave Codes
KErrNotSupportedIf the message version or type does not support this query.
Capability
None

GetParsedReplyAddressL ( TGsmSmsTelNumber & )

IMPORT_C TIntGetParsedReplyAddressL(TGsmSmsTelNumber &aParsedAddress)const

Returns the reply address in ETSI format.

Return Value
True, if the CSmsMessage contains a reply address. False, otherwise
Leave Codes
KErrNotSupportedIf the message version or type does not support this query.
KErrCorruptIf the reply address is corrupt
Capability
None

GetReplyAddressL ( )

IMPORT_C HBufC *GetReplyAddressL()const

Returns the reply address as an international number

Return Value
The reply address as an international number.
Leave Codes
KErrNotSupportedIf the message version or type does not support this query.
KErrNotFoundIf the message does not contain a reply address information element.
KErrCorruptIf the reply address is corrupt
Capability
None

NewL ( CSmsInformationElement::TSmsInformationElementIdentifier, CSmsMessage &, CCnvCharacterSetConverter &, RFs & )

CSmsReplyAddressOperations *NewL(CSmsInformationElement::TSmsInformationElementIdentifieraId,
CSmsMessage &aMessage,
CCnvCharacterSetConverter &aCharacterSetConverter,
RFs &aFs
)[static]

This is used by the CSmsMessage to create a CSmsIEOperation. Each instance is owned by the CSmsMessage which created it. Therefore only the CSmsMessage (GSMU component) is allowed to create and delete CSmsIEOperations.

Parameters
aIdThe ID for the CSmsInformationElement for whom an operation class needs to be created.
aMessageThe CSmsMessage that this operations class belongs to.
aCharacterSetConverterA reference to a character set converter, needed by some derived operation classes.
aFsA reference to the file server, needed by some derived operations classes.

RemoveReplyAddressL ( )

IMPORT_C voidRemoveReplyAddressL()const

Removes the reply address information element.

Leave Codes
KErrNotSupportedIf the message version or type does not support this query.
Capability
None

ValidateOperationL ( )

voidValidateOperationL()const [protected, virtual]

Identifies whether the message type or version supports this operation

If the message type or version does not support this operation.
Leave Codes

operator= ( const CSmsReplyAddressOperations & )

voidoperator=(const CSmsReplyAddressOperations &)[protected]

Prevent clients from using the assignment operator by including it in the class definition but making it protected and not exporting it.

Capability
None

operator== ( const CSmsReplyAddressOperations & )

TBool operator==(const CSmsReplyAddressOperations &)[protected]

Prevent clients from using the equality operator by including it in the class definition but making it protected and not exporting it.

Capability
None