CSmsReplyAddressOperations Class Reference

#include "gsmuieoperations.h"

class CSmsReplyAddressOperations : public CSmsCtrlOperation

Inherits from

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
KErrNotSupported If the message version or type does not support a reply addresses.
leave
KErrAlreadyExists If 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.

leave
KErrNotSupported If the message version or type does not support a reply addresses.
leave
KErrAlreadyExists If the message already contains a reply address.
capability
None
ParameterDescription
aAddressThe international number to be used in the reply address.

ContainsReplyAddressIEL ( )

IMPORT_C TBoolContainsReplyAddressIEL()const

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

leave
KErrNotSupported If the message version or type does not support this query.
capability
None

Returns: True if the reply address has already been added using this interface.

GetParsedReplyAddressL ( TGsmSmsTelNumber & )

IMPORT_C TIntGetParsedReplyAddressL(TGsmSmsTelNumber &aParsedAddress)const

Returns the reply address in ETSI format.

leave
KErrNotSupported If the message version or type does not support this query.
leave
KErrCorrupt If the reply address is corrupt
capability
None

Returns: True, if the CSmsMessage contains a reply address. False, otherwise

GetReplyAddressL ( )

IMPORT_C HBufC *GetReplyAddressL()const

Returns the reply address as an international number

leave
KErrNotSupported If the message version or type does not support this query.
leave
KErrNotFound If the message does not contain a reply address information element.
leave
KErrCorrupt If the reply address is corrupt
capability
None

Returns: The reply address as an international number.

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

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.

ParameterDescription
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
KErrNotSupported If 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

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

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