CMessageData Class Reference

class CMessageData : public CBase

Encapsulates the message data for sending services.

Encapsulates the message data for sending services. Class supports externalazation and internalization, which are used to relay message to SendUI server application.

sendui
Since
S60 v3.0

Inherits from

Public Member Functions
~CMessageData()
IMPORT_C voidAppendAttachmentHandleL(const RFile &)
IMPORT_C voidAppendAttachmentL(const TDesC &)
IMPORT_C voidAppendBccAddressL(const TDesC &, const TDesC &)
IMPORT_C voidAppendCcAddressL(const TDesC &, const TDesC &)
IMPORT_C voidAppendToAddressL(const TDesC &, const TDesC &)
IMPORT_C const CDesCArray &AttachmentArray()
IMPORT_C const RArray< RFile > &AttachmentHandleArray()
IMPORT_C const CMessageAddressArray &BccAddressArray()
IMPORT_C const CRichText *BodyText()
IMPORT_C const CMessageAddressArray &CcAddressArray()
IMPORT_C voidClearAddresses()
IMPORT_C voidClearAttachmentArray()
IMPORT_C TUidDataType()
IMPORT_C voidExternalizeL(RWriteStream &)
IMPORT_C voidInternalizeL(RReadStream &)
IMPORT_C CMessageData *NewL()
IMPORT_C CMessageData *NewLC()
IMPORT_C const TPtrC8OpaqueData()
IMPORT_C voidSetBodyTextL(const CRichText *)
IMPORT_C voidSetOpaqueDataL(const TDesC8 *, TUid)
IMPORT_C voidSetSubjectL(const TDesC *)
IMPORT_C const TPtrCSubject()
IMPORT_C const CMessageAddressArray &ToAddressArray()
Protected Member Functions
CMessageData()
IMPORT_C voidConstructL()
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()
Protected Attributes
TUid iDataType
Private Attributes
CMessageDataImpl *iMessageDataImpl
TAny *iReserved1
TAny *iReserved2
TAny *iReserved3
TAny *iReserved4
TAny *iReserved5
RArray< TAny * >iReserved6

Constructor & Destructor Documentation

CMessageData()

IMPORT_CCMessageData()[protected]

C++ default constructor.

~CMessageData()

IMPORT_C~CMessageData()[virtual]

Destructor.

Member Functions Documentation

AppendAttachmentHandleL(const RFile &)

IMPORT_C voidAppendAttachmentHandleL(const RFile &aFileHandle)

Appends attachment handle to the array of attachment handles.

NOTE: Attachment handles should be opened using ShareProtected() file session, otherwise handles can not be transfered through client-server interface.

NOTE: When adding a temporary file as an attachment, always use this method,

Since
Series 60 3.0

Parameters

const RFile & aFileHandleFile handle of the attachment.

AppendAttachmentL(const TDesC &)

IMPORT_C voidAppendAttachmentL(const TDesC &aFilePath)

Appends attachment file path to the array of attachment file paths. Only a link to the attachment is stored and compared to AppendAttachmentHandleL less resources is used during the send operation.

NOTE: Do not add any temporary files as an attachment. Always use AppendAttachmentHandleL for temporary files.

Since
Series 60 3.0

Parameters

const TDesC & aFilePathFile path of the attachment.

AppendBccAddressL(const TDesC &, const TDesC &)

IMPORT_C voidAppendBccAddressL(const TDesC &aBccAddress,
const TDesC &aBccAlias =  KNullDesC
)

Encapsulates Bcc address and alias to CMessageAddress and adds to array.

Since
Series 60 3.0

Parameters

const TDesC & aBccAddressReal Bcc-address.
const TDesC & aBccAlias =  KNullDesC Alias for the real Bcc-address.

AppendCcAddressL(const TDesC &, const TDesC &)

IMPORT_C voidAppendCcAddressL(const TDesC &aCcAddress,
const TDesC &aCcAlias =  KNullDesC
)

Encapsulates CC address and alias to CMessageAddress and adds to array.

Since
Series 60 3.0

Parameters

const TDesC & aCcAddressReal CC-address.
const TDesC & aCcAlias =  KNullDesC Alias for the real CC-address.

AppendToAddressL(const TDesC &, const TDesC &)

IMPORT_C voidAppendToAddressL(const TDesC &aAddress,
const TDesC &aAlias =  KNullDesC
)

Encapsulates address and alias to CMessageAddress and adds to array.

Since
Series 60 3.0

Parameters

const TDesC & aAddressReal address.
const TDesC & aAlias =  KNullDesC Alias for the real address.

AttachmentArray()

IMPORT_C const CDesCArray &AttachmentArray()const

Returns the array of attachment file paths.

Since
Series 60 3.0

AttachmentHandleArray()

IMPORT_C const RArray< RFile > &AttachmentHandleArray()const

Returns the array of attachment handles.

Since
Series 60 3.0

BccAddressArray()

IMPORT_C const CMessageAddressArray &BccAddressArray()const

Returns array of Bcc addresses and aliases.

Since
Series 60 3.0

BodyText()

IMPORT_C const CRichText *BodyText()const

Returns message body text.

Since
Series 60 3.0

CcAddressArray()

IMPORT_C const CMessageAddressArray &CcAddressArray()const

Returns array of CC addresses and aliases.

Since
Series 60 3.0

ClearAddresses()

IMPORT_C voidClearAddresses()

Clears all addressee arrays.

Since
Series 60 3.0

ClearAttachmentArray()

IMPORT_C voidClearAttachmentArray()

Clears the array of attachment file paths.

Since
Series 60 3.0

ConstructL()

IMPORT_C voidConstructL()[protected]

By default Symbian 2nd phase constructor is private.

DataType()

IMPORT_C TUidDataType()const

Returns data type id.

This can be used for interpreting the opaque data.
Since
Series 60 3.0

ExternalizeL(RWriteStream &)

IMPORT_C voidExternalizeL(RWriteStream &aStream)const

Externalizes message data to a stream

Since
Series 60 3.2

Parameters

RWriteStream & aStream

InternalizeL(RReadStream &)

IMPORT_C voidInternalizeL(RReadStream &aStream)

Internalizes message data to from a stream

Since
Series 60 3.2

Parameters

RReadStream & aStream

NewL()

IMPORT_C CMessageData *NewL()[static]

Two-phased constructor.

NewLC()

IMPORT_C CMessageData *NewLC()[static]

Two-phased constructor.

OpaqueData()

IMPORT_C const TPtrC8OpaqueData()const

Get opaque data

Since
Series 60 3.2

SetBodyTextL(const CRichText *)

IMPORT_C voidSetBodyTextL(const CRichText *aBodyText)

Set message body text.

Since
Series 60 3.0

Parameters

const CRichText * aBodyTextMessage body text.

SetOpaqueDataL(const TDesC8 *, TUid)

IMPORT_C voidSetOpaqueDataL(const TDesC8 *aData,
TUidaDataType
)

Set opaque data

Since
Series 60 3.2

Parameters

const TDesC8 * aDataOpaque data.
TUid aDataType

SetSubjectL(const TDesC *)

IMPORT_C voidSetSubjectL(const TDesC *aSubject)

Set message subject.

Since
Series 60 3.0

Parameters

const TDesC * aSubjectSets message subject. Does not take ownership.

Subject()

IMPORT_C const TPtrCSubject()const

Returns message subject.

Since
Series 60 3.0

ToAddressArray()

IMPORT_C const CMessageAddressArray &ToAddressArray()const

Returns array of addresses and aliases.

Since
Series 60 3.0

Member Data Documentation

TUid iDataType

TUid iDataType[protected]

Data type of this message. Normally this is KSenduiMsgDataBase This can be used for interpreting the opaque data.

CMessageDataImpl * iMessageDataImpl

CMessageDataImpl *iMessageDataImpl[private]

Message data implementation. Owned.

TAny * iReserved1

TAny *iReserved1[private]

Reserved.

TAny * iReserved2

TAny *iReserved2[private]

TAny * iReserved3

TAny *iReserved3[private]

TAny * iReserved4

TAny *iReserved4[private]

TAny * iReserved5

TAny *iReserved5[private]

RArray< TAny * > iReserved6

RArray< TAny * >iReserved6[private]