CMmsHeaders Class Reference

class CMmsHeaders : public CBase

This class provides access to MMS specific header data. The class can be used from both Client MTM and Server MTM.

Inherits from

Public Member Functions
~CMmsHeaders()
TInt AdaptationAllowed()
IMPORT_C voidAddTypedAddresseeL(const TDesC &, TMmsRecipients)
IMPORT_C voidAppendPreviouslySentItemL(TInt64, const TDesC &)
IMPORT_C TPtrC16ApplicId()
IMPORT_C TPtrC8AuxApplicInfo()
const CDesCArray &BccRecipients()
TInt CancelStatus()
const CDesCArray &CcRecipients()
TInt ContentClass()
IMPORT_C TPtrC8ContentLocation()
IMPORT_C CMmsHeaders *CopyL(TMsvPartList, TBool)
IMPORT_C CMmsHeaders *CopyL(TMsvPartList, TBool, RFs &)
IMPORT_C voidCreateContentId(TDes8 &)
TInt64 Date()
const RPointerArray< CMmsDeleteResultArray > &DeleteResultArray()
IMPORT_C TInt64DeliveryDate()
TInt DeliveryReport()
IMPORT_C TIntDeliveryTimeInterval()
TInt DistributionIndicator()
TInt DrmContent()
IMPORT_C CMmsElementDescriptor &ElementDescriptorL()
IMPORT_C TInt64ExpiryDate()
IMPORT_C TIntExpiryInterval()
IMPORT_C TPtrCExtendedNotification()
IMPORT_C voidGetMaximumImage(TInt &, TInt &)
IMPORT_C voidInsertDeleteContentLocationL(TUint, const TDesC8 &)
IMPORT_C voidInsertDeleteResponseTextL(TUint, const TDesC &)
IMPORT_C voidInsertDeleteStatusL(TUint, const TInt32)
IMPORT_C voidInsertPreviouslySentByL(TInt, const TDesC &)
IMPORT_C voidInsertPreviouslySentDateL(TInt, TInt64)
IMPORT_C CMmsMMBoxMessageHeaders &MMBoxMessageHeadersL()
IMPORT_C CMmsMMBoxViewHeaders &MMBoxViewHeadersL()
TInt MessageClass()
TInt MessageComplete()
IMPORT_C TPtrC8MessageId()
TInt MessagePriority()
TMsvAttachmentId MessageRoot()
TInt MessageSize()
TInt MessageType()
TInt16 MmsVersion()
TInt MultipartType()
IMPORT_C CMmsHeaders *NewL()
IMPORT_C CMmsHeaders *NewL(TInt16)
const RPointerArray< CMmsSendingChain > &PreviouslySentList()
const CMmsElementDescriptor *ReadOnlyElementDescriptor()
const CMmsMMBoxMessageHeaders *ReadOnlyMMBoxMessageHeaders()
const CMmsMMBoxViewHeaders *ReadOnlyMMBoxViewHeaders()
TInt ReadReply()
TInt ReadStatus()
TTime ReceivingTime()
TInt RecommendedRetrievalMode()
IMPORT_C TPtrC16RecommendedRetrievalModeText()
TMsvId RelatedEntry()
IMPORT_C TBoolRemoveAddressee(const TDesC &)
IMPORT_C TPtrC8ReplaceCancelId()
IMPORT_C TPtrC16ReplyApplicId()
TInt ReplyCharging()
IMPORT_C TInt64ReplyChargingDate()
IMPORT_C TPtrC8ReplyChargingId()
IMPORT_C TIntReplyChargingInterval()
TInt ReplyChargingSize()
TInt32 ReportAllowed()
IMPORT_C voidReset(CMmsSettings *)
TInt32 ResponseStatus()
IMPORT_C TPtrCResponseText()
IMPORT_C voidRestoreL(CMsvStore &)
IMPORT_C TPtrC8RootContentId()
IMPORT_C TPtrCSender()
TInt SenderVisibility()
voidSetAdaptationAllowed(TInt)
IMPORT_C voidSetApplicIdL(const TDesC16 &)
IMPORT_C voidSetAuxApplicInfoL(const TDesC8 &)
voidSetCancelStatus(TInt)
voidSetContentClass(TInt)
IMPORT_C voidSetContentLocationL(const TDesC8 &)
voidSetDate(TInt64)
IMPORT_C voidSetDeliveryDate(TInt64)
voidSetDeliveryReport(TInt)
IMPORT_C voidSetDeliveryTimeInterval(TInt)
voidSetDistributionIndicator(const TInt)
voidSetDrmContent(TInt)
IMPORT_C voidSetExpiryDate(TInt64)
IMPORT_C voidSetExpiryInterval(TInt)
IMPORT_C voidSetExtendedNotificationL(const TDesC &)
IMPORT_C voidSetMaximumImage(TInt, TInt)
voidSetMessageClass(TInt)
voidSetMessageComplete(TInt)
IMPORT_C voidSetMessageIdL(const TDesC8 &)
voidSetMessagePriority(TInt)
voidSetMessageRoot(const TMsvAttachmentId)
voidSetMessageSize(TInt)
voidSetMessageType(TInt)
voidSetMmsVersion(TInt16)
voidSetMultipartType(const TInt)
voidSetReadReply(TInt)
voidSetReadStatus(const TInt)
voidSetReceivingTime(TTime)
voidSetRecommendedRetrievalMode(TInt)
IMPORT_C voidSetRecommendedRetrievalModeTextL(const TDesC16 &)
voidSetRelatedEntry(const TMsvId)
IMPORT_C voidSetReplaceCancelIdL(const TDesC8 &)
IMPORT_C voidSetReplyApplicIdL(const TDesC16 &)
voidSetReplyCharging(const TInt)
IMPORT_C voidSetReplyChargingDate(TInt64)
IMPORT_C voidSetReplyChargingIdL(const TDesC8 &)
IMPORT_C voidSetReplyChargingInterval(TInt)
voidSetReplyChargingSize(const TInt)
voidSetReportAllowed(TInt32)
voidSetResponseStatus(TInt32)
IMPORT_C voidSetResponseTextL(const TDesC &)
IMPORT_C voidSetRootContentIdL(const TDesC8 &)
IMPORT_C voidSetSenderL(const TDesC &)
voidSetSenderVisibility(TInt)
IMPORT_C voidSetSettings(CMmsSettings *)
voidSetStatus(const TInt)
IMPORT_C voidSetSubjectL(const TDesC &)
IMPORT_C voidSetTidL(const TDesC8 &)
IMPORT_C TIntSize()
TInt Status()
IMPORT_C voidStoreL(CMsvStore &)
IMPORT_C TPtrCSubject()
IMPORT_C TPtrC8Tid()
const CDesCArray &ToRecipients()
IMPORT_C const CDesCArray &TypedAddresseeList(TMmsRecipients)
Private Member Functions
CMmsHeaders()
HBufC *AliasedAddressL(const TDesC &, RFs &)
CDesCArray *AliasedAddressL(const CDesCArray &, RFs &)
voidConstructL(TInt16)
voidCopyAddresseeListL(const CDesCArray &, TMmsRecipients, const TPtrC &, RFs &)
voidExternalizeArrayL(CDesC16Array &, RWriteStream &)
IMPORT_C voidExternalizeL(RMsvWriteStream &)
voidInternalizeArrayL(CDesC16Array &, RReadStream &)
IMPORT_C voidInternalizeL(RMsvReadStream &)
TPtrC8 LimitStringSize(const TPtrC8 &, TInt)
TPtrC16 LimitStringSize(const TPtrC16 &, TInt)
TBool RemoveAddressee(CDesCArray &, const TDesC &)
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()
Private Attributes
TInt32 iAdaptationAllowed
HBufC *iApplicationId
HBufC8 *iApplicationInfo
CDesCArray *iBccArray
TInt32 iCancelStatus
CDesCArray *iCcArray
TInt32 iContentClass
HBufC8 *iContentLocation
TInt64 iDate
RPointerArray< CMmsDeleteResultArray >iDeleteResultArray
TLinearOrder< CMmsDeleteResultArray >iDeleteResultOrder
TInt32 iDelivReport
TInt64 iDelivery
TBool iDeliveryAbs
TInt32 iDistributionIndicator
TInt32 iDrmContent
CMmsElementDescriptor *iElementDescriptor
TInt64 iExpiry
TBool iExpiryAbs
HBufC *iExtendedNotificationText
TInt iExtensionStatus
TLinearOrder< CMmsSendingChain >iLinearOrder
TInt32 iMaxImageHeight
TInt32 iMaxImageWidth
HBufC8 *iMessageId
TUint32 iMessageSize
CMmsMMBoxMessageHeaders *iMmBoxMessageHeaders
CMmsMMBoxViewHeaders *iMmBoxViewHeaders
TInt16 iMmsDefaultVersion
TInt32 iMsgClass
TInt32 iMsgType
TInt32 iMultipartType
HBufC *iOperatorResponseText
RPointerArray< CMmsSendingChain >iPreviouslySentArray
TInt32 iPriority
TInt32 iReadReply
TInt32 iReadStatus
TTime iReceivingTime
TInt32 iRecommendedRetrievalMode
HBufC *iRecommendedRetrievalModeText
TMsvId iRelatedEntry
HBufC8 *iReplaceCancelId
TInt32 iReplyCharging
TBool iReplyChargingAbs
TInt64 iReplyChargingDeadline
HBufC8 *iReplyChargingId
TInt32 iReplyChargingSize
HBufC *iReplyToApplicationId
TInt32 iReportAllowed
TInt32 iResponseStatus
HBufC8 *iRootContentID
HBufC *iSender
TInt32 iSenderVisi
TMsvAttachmentId iStart
TInt32 iStatus
HBufC *iSubject
HBufC8 *iTID
CDesCArray *iToArray
TInt16 iVersion

Constructor & Destructor Documentation

CMmsHeaders()

CMmsHeaders()[private]

C++ default constructor.

~CMmsHeaders()

~CMmsHeaders()[virtual]

Destructor.

Member Functions Documentation

AdaptationAllowed()

TInt AdaptationAllowed()const [inline]

Get header that tells if MMSC is allowed to alter the message (make it smaller).

AddTypedAddresseeL(const TDesC &, TMmsRecipients)

IMPORT_C voidAddTypedAddresseeL(const TDesC &aRealAddress,
TMmsRecipientsaType
)

Adds recipient with specified type (To, Cc, Bcc). This function also adds all recipients into the internal list that contains all addressees regardless of addressee type.

Parameters

const TDesC & aRealAddressrecipient address.
TMmsRecipients aTypespecifies recipient type (types defined in MMSCONST.H)

AliasedAddressL(const TDesC &, RFs &)

HBufC *AliasedAddressL(const TDesC &aOriginalAddress,
RFs &aFs
)[private]

Generate aliased address from an address that may be pure or not Caller must free buffer when no lenger needed

Parameters

const TDesC & aOriginalAddressoriginal address may be pure or not
RFs & aFsfile system handle

AliasedAddressL(const CDesCArray &, RFs &)

CDesCArray *AliasedAddressL(const CDesCArray &aOriginalAddress,
RFs &aFs
)[private]

Generate array of aliased addresses from an arrays of addresses that may be pure or not Caller must free the array when no lenger needed

Parameters

const CDesCArray & aOriginalAddressarray of original addresses, may be pure or not
RFs & aFs

AppendPreviouslySentItemL(TInt64, const TDesC &)

IMPORT_C voidAppendPreviouslySentItemL(TInt64aDate,
const TDesC &aSender
)

Parameters

TInt64 aDate
const TDesC & aSender

ApplicId()

IMPORT_C TPtrC16ApplicId()const

Identification of the destination application accessor.

AuxApplicInfo()

IMPORT_C TPtrC8AuxApplicInfo()const

Auxiliary application information for internal use of the destination application accessor.

BccRecipients()

const CDesCArray &BccRecipients()const [inline]

Give const access to the "Bcc" recipient list

CancelStatus()

TInt CancelStatus()const [inline]

Get status of cancel operation

CcRecipients()

const CDesCArray &CcRecipients()const [inline]

Give const access to the "Cc" recipient list

ConstructL(TInt16)

voidConstructL(TInt16aMmsDefaultVersion)[private]

By default Symbian OS constructor is private.

Parameters

TInt16 aMmsDefaultVersion

ContentClass()

TInt ContentClass()const [inline]

Return the content class value as specified in MMS encapsulation 1.3.

ContentLocation()

IMPORT_C TPtrC8ContentLocation()const

Content-Location accessor. Used in a Message Notification.

CopyAddresseeListL(const CDesCArray &, TMmsRecipients, const TPtrC &, RFs &)

voidCopyAddresseeListL(const CDesCArray &aArray,
TMmsRecipientsaType,
const TPtrC &aExclude,
RFs &aFs
)[private]

Copy addressee list from source headers

Parameters

const CDesCArray & aArrayaddressee list
TMmsRecipients aTyperecipient lins type
const TPtrC & aExcludeAddress to be excluded from the list (sender)
RFs & aFsfile system handle

CopyL(TMsvPartList, TBool)

IMPORT_C CMmsHeaders *CopyL(TMsvPartListaParts,
TBoolaReply
)

Make a copy of MmsHeaders

Parameters

TMsvPartList aPartsmessage part list
TBool aReplyif the new message is a reply message. This has meaning for recipient handling.

CopyL(TMsvPartList, TBool, RFs &)

IMPORT_C CMmsHeaders *CopyL(TMsvPartListaParts,
TBoolaReply,
RFs &aFs
)

Make a copy of MmsHeaders

Since
3.1

Parameters

TMsvPartList aPartsmessage part list
TBool aReplyif the new message is a reply message. This has meaning for recipient handling.
RFs & aFsfile system handle. Needed for alias handling

CreateContentId(TDes8 &)

IMPORT_C voidCreateContentId(TDes8 &aCid)[static]

Creates a ContentId to be used in mime headers

Parameters

TDes8 & aCidthe created contentId (OUT) The caller must reserve a buffer that is at least 12 bytes long ( 10 bytes for a 32 bit integer converted to a string + angle brackets )

Date()

TInt64 Date()[inline]

Get Date

DeleteResultArray()

const RPointerArray< CMmsDeleteResultArray > &DeleteResultArray()[inline]

Accessor to delete result array for looking at the content. The items should normally be accessed in sequential order by outsiders.

DeliveryDate()

IMPORT_C TInt64DeliveryDate()

Delivery date accessor.

DeliveryReport()

TInt DeliveryReport()[inline]

Delivery Report Request accessor.

DeliveryTimeInterval()

IMPORT_C TIntDeliveryTimeInterval()

Delivery time interval accessor.

DistributionIndicator()

TInt DistributionIndicator()const [inline]
Distribution indicator accessor
Since
2.6

DrmContent()

TInt DrmContent()const [inline]

Get DRM content indicator (encapsulation 1.3)

ElementDescriptorL()

IMPORT_C CMmsElementDescriptor &ElementDescriptorL()
Element descriptor accessor for edit usage.
Since
2.6

ExpiryDate()

IMPORT_C TInt64ExpiryDate()

Expiration date accessor.

ExpiryInterval()

IMPORT_C TIntExpiryInterval()

Expiration interval accessor.

ExtendedNotification()

IMPORT_C TPtrCExtendedNotification()const
Extended Notification accessor.
Since
2.6

ExternalizeArrayL(CDesC16Array &, RWriteStream &)

voidExternalizeArrayL(CDesC16Array &anArray,
RWriteStream &aStream
)const [private]

Externalize Array.

Parameters

CDesC16Array & anArraythe array to be externalized
RWriteStream & aStreamstream where to write.

ExternalizeL(RMsvWriteStream &)

IMPORT_C voidExternalizeL(RMsvWriteStream &aStream)const [private]

Parameters

RMsvWriteStream & aStreamwrite stream

GetMaximumImage(TInt &, TInt &)

IMPORT_C voidGetMaximumImage(TInt &aWidth,
TInt &aHeight
)const

Maximum image size accessor.

Parameters

TInt & aWidthimage width (OUT)
TInt & aHeightimage height (OUT)

InsertDeleteContentLocationL(TUint, const TDesC8 &)

IMPORT_C voidInsertDeleteContentLocationL(TUintaOrder,
const TDesC8 &aContentLocation
)

Insert delete result content location. If corresponding entry is found, just insert content location to entry, otherwise create new CMmsDeleteResultArray item and insert it into array

Parameters

TUint aOrderthe order number of the not deleted entry
const TDesC8 & aContentLocation

InsertDeleteResponseTextL(TUint, const TDesC &)

IMPORT_C voidInsertDeleteResponseTextL(TUintaOrder,
const TDesC &aResposeText
)

Insert delete result response text. If corresponding entry is found, just insert response text to entry, otherwise create new CMmsDeleteResultArray item and insert it into array

Parameters

TUint aOrderthe order number of the not deleted entry
const TDesC & aResposeText

InsertDeleteStatusL(TUint, const TInt32)

IMPORT_C voidInsertDeleteStatusL(TUintaOrder,
const TInt32aStatus
)

Insert delete status. If corresponding entry is found, just insert delete status to entry, otherwise create new CMmsDeleteResultArray item and insert it into array

Parameters

TUint aOrderthe order number of the not deleted entry
const TInt32 aStatusthe previous sender.

InsertPreviouslySentByL(TInt, const TDesC &)

IMPORT_C voidInsertPreviouslySentByL(TIntaOrder,
const TDesC &aSender
)

Parameters

TInt aOrder
const TDesC & aSender

InsertPreviouslySentDateL(TInt, TInt64)

IMPORT_C voidInsertPreviouslySentDateL(TIntaOrder,
TInt64aDate
)

Parameters

TInt aOrder
TInt64 aDate

InternalizeArrayL(CDesC16Array &, RReadStream &)

voidInternalizeArrayL(CDesC16Array &anArray,
RReadStream &aStream
)[private]

Internalize Array.

Parameters

CDesC16Array & anArraythe array where to write data
RReadStream & aStreama stream where to read data from

InternalizeL(RMsvReadStream &)

IMPORT_C voidInternalizeL(RMsvReadStream &aStream)[private]

Parameters

RMsvReadStream & aStreamread stream

LimitStringSize(const TPtrC8 &, TInt)

TPtrC8 LimitStringSize(const TPtrC8 &aString,
TIntaMaxSize
)[private, static]

Limit string size to maximum length

Parameters

const TPtrC8 & aStringinput string
TInt aMaxSizemaximum length of the string

LimitStringSize(const TPtrC16 &, TInt)

TPtrC16 LimitStringSize(const TPtrC16 &aString,
TIntaMaxSize
)[private, static]

Limit string size to maximum length

Parameters

const TPtrC16 & aStringinput string
TInt aMaxSizemaximum length of the string

MMBoxMessageHeadersL()

IMPORT_C CMmsMMBoxMessageHeaders &MMBoxMessageHeadersL()
MMBox message headers accessor for edit usage
Since
2.6

MMBoxViewHeadersL()

IMPORT_C CMmsMMBoxViewHeaders &MMBoxViewHeadersL()
MMBox view headers accessor for edit usage
Since
2.6

MessageClass()

TInt MessageClass()const [inline]

Message class accessor

MessageComplete()

TInt MessageComplete()[inline]
Message complete indicator accessor.
Since
2.6

MessageId()

IMPORT_C TPtrC8MessageId()const

Message-ID accessor

MessagePriority()

TInt MessagePriority()const [inline]

Message priority accessor.

MessageRoot()

TMsvAttachmentId MessageRoot()const [inline]

Message root part accessor.

MessageSize()

TInt MessageSize()const [inline]

Get Message-Size. Used in a Message Notification.

MessageType()

TInt MessageType()[inline]

Get Message-Type

MmsVersion()

TInt16 MmsVersion()[inline]

Get MMS-Version

MultipartType()

TInt MultipartType()const [inline]
Multipart type accessor
Since
2.6

NewL()

IMPORT_C CMmsHeaders *NewL()[static]

Two-phased constructor. This is a legacy function and sets the default mms version to a hard coded value. All client should use the NewL version that gives the version as parameter. The version value should come form CMmsSettings class

NewL(TInt16)

IMPORT_C CMmsHeaders *NewL(TInt16aMmsVersion)[static]

Two-phased constructor.

Parameters

TInt16 aMmsVersionThe version of MMS encapsulation that should be used unless the actual message contains some other value

PreviouslySentList()

const RPointerArray< CMmsSendingChain > &PreviouslySentList()[inline]

ReadOnlyElementDescriptor()

const CMmsElementDescriptor *ReadOnlyElementDescriptor()const [inline]
Element descriptor accessor for read only usage.
Since
2.6

ReadOnlyMMBoxMessageHeaders()

const CMmsMMBoxMessageHeaders *ReadOnlyMMBoxMessageHeaders()const [inline]
MMBox message headers accessor for read only usage
Since
2.6

ReadOnlyMMBoxViewHeaders()

const CMmsMMBoxViewHeaders *ReadOnlyMMBoxViewHeaders()const [inline]
MMBox view headers accessor for read only usage
Since
2.6

ReadReply()

TInt ReadReply()[inline]

Read Reply Request accessor.

ReadStatus()

TInt ReadStatus()const [inline]

Read status accessor.

ReceivingTime()

TTime ReceivingTime()const [inline]

The time the message was received in the terminal.

RecommendedRetrievalMode()

TInt RecommendedRetrievalMode()const [inline]

Get recommended retrieval mode This header appears in a notification and may recommend manual retrieval.

RecommendedRetrievalModeText()

IMPORT_C TPtrC16RecommendedRetrievalModeText()const

Get explanation why retrival mode is recommended

RelatedEntry()

TMsvId RelatedEntry()const [inline]
Related entry accessor
Since
2.6

RemoveAddressee(const TDesC &)

IMPORT_C TBoolRemoveAddressee(const TDesC &aRealAddress)

Remove a given address from the right typed list.

Parameters

const TDesC & aRealAddressrecipient address.

RemoveAddressee(CDesCArray &, const TDesC &)

TBool RemoveAddressee(CDesCArray &aList,
const TDesC &aAddress
)[private]

Remove a addressee from a given addressee list.

Parameters

CDesCArray & aListaddressee list
const TDesC & aAddressaddressee to match

ReplaceCancelId()

IMPORT_C TPtrC8ReplaceCancelId()const

Get id of message to be replaced or cancelled

ReplyApplicId()

IMPORT_C TPtrC16ReplyApplicId()const

Identification of an application to which replies are addressed accessor.

ReplyCharging()

TInt ReplyCharging()const [inline]

ReplyCharging accessor.

ReplyChargingDate()

IMPORT_C TInt64ReplyChargingDate()

ReplyCharging date accessor.

ReplyChargingId()

IMPORT_C TPtrC8ReplyChargingId()const

ReplyChargingId accessor.

ReplyChargingInterval()

IMPORT_C TIntReplyChargingInterval()

ReplyCharging interval accessor.

ReplyChargingSize()

TInt ReplyChargingSize()const [inline]

ReplyChargingSize accessor.

ReportAllowed()

TInt32 ReportAllowed()const [inline]

Report-Allowed accessor

Reset(CMmsSettings *)

IMPORT_C voidReset(CMmsSettings *aSettings = NULL)

Reset.

Parameters

CMmsSettings * aSettings = NULLMMS settings to be used for initial values. Can be NULL.

ResponseStatus()

TInt32 ResponseStatus()const [inline]

Response-Status accessor

ResponseText()

IMPORT_C TPtrCResponseText()const

Response text accessor. Same string is used for Response text, Retrieve text and Status text as all strings are information messages coming in from the MMSC and only one of them can be present in any PDU

RestoreL(CMsvStore &)

IMPORT_C voidRestoreL(CMsvStore &aStore)

Internalize the headers.

Parameters

CMsvStore & aStoreCMsvStore

RootContentId()

IMPORT_C TPtrC8RootContentId()const

Root Content-ID accessor.

Sender()

IMPORT_C TPtrCSender()const

Sender accessor

SenderVisibility()

TInt SenderVisibility()[inline]

Sender visibility accessor.

SetAdaptationAllowed(TInt)

voidSetAdaptationAllowed(TIntaAdaptationAllowed)[inline]

Set the header that tells if MMSC is allowed to alter the message (make it smaller).

Parameters

TInt aAdaptationAllowedAdaptation allowed header. Possible values:KMmsYesKMmsNo

SetApplicIdL(const TDesC16 &)

IMPORT_C voidSetApplicIdL(const TDesC16 &aApplicId)

Identification of the destination application mutator.

Parameters

const TDesC16 & aApplicIdapplication ID

SetAuxApplicInfoL(const TDesC8 &)

IMPORT_C voidSetAuxApplicInfoL(const TDesC8 &aAuxApplicInfo)

Auxiliary application information for internal use of the destination application mutator.

Parameters

const TDesC8 & aAuxApplicInfoauxiliary application info

SetCancelStatus(TInt)

voidSetCancelStatus(TIntaCancelStatus)[inline]

Set status of cancel operation

Parameters

TInt aCancelStatusStatus of cancel operation. Possible values:KMmsCancelRequestSuccessfullyReceivedKMmsCancelRequestCorrupted

SetContentClass(TInt)

voidSetContentClass(TIntaContentClass)[inline]

Set the content class of the message as specified in MMS encapsulation 1.3-

Parameters

TInt aContentClasscontent class value from mmsconst.hKMmsContentClassTextKMmsContentClassImageBasicKMmsContentClassImageRichKMmsContentClassVideoBasicKMmsContentClassVideoRichKMmsContentClassMegaPixelKMmsContentClassContentBasicKMmsContentClassContentRich

SetContentLocationL(const TDesC8 &)

IMPORT_C voidSetContentLocationL(const TDesC8 &aURL)

Content-Location mutator. Used in a Message Notification.

Parameters

const TDesC8 & aURLURL of the message.

SetDate(TInt64)

voidSetDate(TInt64aTime)[inline]

Set Date

Parameters

TInt64 aTimeseconds from 1.1. 1970 Date must be in UTC time zone

SetDeliveryDate(TInt64)

IMPORT_C voidSetDeliveryDate(TInt64aDate)

Delivery date mutator.

Parameters

TInt64 aDateThe date and time the message will be delivered to the recipient by the MMSC in seconds from 1970-01-01. Date must be in UTC time zone

SetDeliveryReport(TInt)

voidSetDeliveryReport(TIntaRequest)[inline]

Delivery Report Request mutator.

Parameters

TInt aRequestYes or No (values defined in MMSCONST.H)

SetDeliveryTimeInterval(TInt)

IMPORT_C voidSetDeliveryTimeInterval(TIntaInterval)

Delivery time interval mutator.

Parameters

TInt aIntervalThe length of time after which the message will be delivered to the recipient by the MMSC. Expressed in seconds.

SetDistributionIndicator(const TInt)

voidSetDistributionIndicator(const TIntaDistributionIndicator)[inline]
Distribution indicator mutator
Since
2.6

Parameters

const TInt aDistributionIndicatorX-Mms-DistributionIndicator value KMmsYes/KMmsNo

SetDrmContent(TInt)

voidSetDrmContent(TIntaDrmContent)[inline]

Set DRM Content indicator header.

Parameters

TInt aDrmContentMessag has DRM content. Possible values:KMmsYesKMmsNo

SetExpiryDate(TInt64)

IMPORT_C voidSetExpiryDate(TInt64aDate)

Expiration date mutator.

Parameters

TInt64 aDateThe date and time the message will expire in seconds from 1970-01-01. Date must be in UTC time zone

SetExpiryInterval(TInt)

IMPORT_C voidSetExpiryInterval(TIntaInterval)

Expiration interval mutator

Parameters

TInt aIntervalThe length of time after which the message is discarded by MMSC. Expressed in seconds.

SetExtendedNotificationL(const TDesC &)

IMPORT_C voidSetExtendedNotificationL(const TDesC &aText)
Extended Notification mutator.
Since
2.6

Parameters

const TDesC & aTextExtended notification text.

SetMaximumImage(TInt, TInt)

IMPORT_C voidSetMaximumImage(TIntaWidth,
TIntaHeight
)

Maximum image size mutator.

Parameters

TInt aWidthimage width
TInt aHeightimage height

SetMessageClass(TInt)

voidSetMessageClass(TIntaClass)[inline]

Message class mutator values defined in MMSCONST.H

Parameters

TInt aClass

SetMessageComplete(TInt)

voidSetMessageComplete(TIntaExtensionStatus)[inline]
Message complete indicator mutator
Since
2.6

Parameters

TInt aExtensionStatusindicator that tells if the whole message fits into extension text string. 0x20 = Message body size > text, message retrieval uncomplete 0x30 = Message retrieval complete (whole message body in IExtendedNotificationText) other values reserved.

SetMessageIdL(const TDesC8 &)

IMPORT_C voidSetMessageIdL(const TDesC8 &aId)

Message-ID mutator

Parameters

const TDesC8 & aId

SetMessagePriority(TInt)

voidSetMessagePriority(TIntaPriority)[inline]

Message priority mutator (Low/Normal/High). Default: Normal.

Parameters

TInt aPriorityMessage priority, values defined in MMSCONST.H

SetMessageRoot(const TMsvAttachmentId)

voidSetMessageRoot(const TMsvAttachmentIdaId)[inline]

Message root part mutator.

Parameters

const TMsvAttachmentId aIdId of the message part that should be displayed first. Should point to the SMIL part that starts the message display.

SetMessageSize(TInt)

voidSetMessageSize(TIntaSize)[inline]

Set Message-Size header.

Parameters

TInt aSizeMessage-Size in bytes. Used in a Message Notification.

SetMessageType(TInt)

voidSetMessageType(TIntaType)[inline]

Set Message-Type

Parameters

TInt aTypemessage type

SetMmsVersion(TInt16)

voidSetMmsVersion(TInt16aVersion)[inline]

Set MMS-Version

Parameters

TInt16 aVersionMMS version

SetMultipartType(const TInt)

voidSetMultipartType(const TIntaMultipartType)[inline]
Multipart type mutator
Since
2.6

Parameters

const TInt aMultipartTypetype of multipart data saved to this entry (WSP assigned number)

SetReadReply(TInt)

voidSetReadReply(TIntaRequest)[inline]

Read Reply Request mutator.

Parameters

TInt aRequestYes or No (values defined in MMSCONST.H)

SetReadStatus(const TInt)

voidSetReadStatus(const TIntaReadStatus)[inline]

Read status mutator.

Parameters

const TInt aReadStatusstatus value. See mmsconst.h.

SetReceivingTime(TTime)

voidSetReceivingTime(TTimeaTime)[inline]

Save the time when the message was received. This header allows the iDate field in TMsvEntry to contain either the receiving time or the sending time. If the TMsvEntry shows the sending time, the receiving time can be accessed through this field.

Parameters

TTime aTimetime in UTC time zone when the message has been received.

SetRecommendedRetrievalMode(TInt)

voidSetRecommendedRetrievalMode(TIntaRetrievalMode)[inline]

Set recommended retrieval mode. This header appears in a notification and may recommend manual retrieval.

Parameters

TInt aRetrievalModeSuggested retrieval mode. Possible valuesKMmsRecommendedRetrievalModeManual

SetRecommendedRetrievalModeTextL(const TDesC16 &)

IMPORT_C voidSetRecommendedRetrievalModeTextL(const TDesC16 &aRecommendedRetrievalModeText)

Set explanation why retrival mode is recommended

Parameters

const TDesC16 & aRecommendedRetrievalModeText

SetRelatedEntry(const TMsvId)

voidSetRelatedEntry(const TMsvIdaRelatedEntry)[inline]
Related entry mutator
Since
2.6

Parameters

const TMsvId aRelatedEntryId of an entry that is connected to this one by some relationship

SetReplaceCancelIdL(const TDesC8 &)

IMPORT_C voidSetReplaceCancelIdL(const TDesC8 &aReplaceCancelId)

Set id of message to be replaced or cancelled

Parameters

const TDesC8 & aReplaceCancelId

SetReplyApplicIdL(const TDesC16 &)

IMPORT_C voidSetReplyApplicIdL(const TDesC16 &aApplicId)

Identification of an application to which replies are addressed mutator.

Parameters

const TDesC16 & aApplicIdreply to application ID

SetReplyCharging(const TInt)

voidSetReplyCharging(const TIntaReplyCharging)[inline]

ReplyCharging mutator.

Parameters

const TInt aReplyChargingvalue. See mmsconst.h

SetReplyChargingDate(TInt64)

IMPORT_C voidSetReplyChargingDate(TInt64aDate)

ReplyCharging date mutator.

Parameters

TInt64 aDateThe date and time until which the sender pays charges for reply in seconds from 1970-01-01. Date must be in UTC time zone

SetReplyChargingIdL(const TDesC8 &)

IMPORT_C voidSetReplyChargingIdL(const TDesC8 &aId)

ReplyChargingID mutator.

Parameters

const TDesC8 & aIdoriginal message ID to which this is a reply to

SetReplyChargingInterval(TInt)

IMPORT_C voidSetReplyChargingInterval(TIntaInterval)

ReplyCharging interval mutator.

Parameters

TInt aIntervalThe length of time during which the sender pays charges for reply. Expressed in seconds.

SetReplyChargingSize(const TInt)

voidSetReplyChargingSize(const TIntaReplyChargingSize)[inline]

ReplyChargingSize mutator.

Parameters

const TInt aReplyChargingSizemaximum size of message for which reply charging applies.

SetReportAllowed(TInt32)

voidSetReportAllowed(TInt32aValue)[inline]

Report-Allowed mutator

Parameters

TInt32 aValueReport-Allowed value

SetResponseStatus(TInt32)

voidSetResponseStatus(TInt32aValue)[inline]

Response-Status mutator

Parameters

TInt32 aValueResponse-Status value

SetResponseTextL(const TDesC &)

IMPORT_C voidSetResponseTextL(const TDesC &aText)

Response text mutator. Same string is used for Response text, Retrieve text and Status text as all strings are information messages coming in from the MMSC and only one of them can be present in any PDU

Parameters

const TDesC & aTextResponse text string

SetRootContentIdL(const TDesC8 &)

IMPORT_C voidSetRootContentIdL(const TDesC8 &aId)

Root Content-ID mutator.

Parameters

const TDesC8 & aId

SetSenderL(const TDesC &)

IMPORT_C voidSetSenderL(const TDesC &aAlias)

Sender mutator

Parameters

const TDesC & aAlias

SetSenderVisibility(TInt)

voidSetSenderVisibility(TIntaVisibility)[inline]

Sender visibility mutator.

Parameters

TInt aVisibilityHide or Show (values defined in MMSCONST.H)

SetSettings(CMmsSettings *)

IMPORT_C voidSetSettings(CMmsSettings *aSettings)

Set initial setting values from service settings

Parameters

CMmsSettings * aSettingsMMS service settings. Optional.

SetStatus(const TInt)

voidSetStatus(const TIntaStatus)[inline]

Status mutator

Parameters

const TInt aStatusstatus value. See mmsconst.h.

SetSubjectL(const TDesC &)

IMPORT_C voidSetSubjectL(const TDesC &aSubject)

Subject mutator. Note that Client MTM should update explicitly TMsvEntry.iDescription too.

Parameters

const TDesC & aSubjectsubject string,

SetTidL(const TDesC8 &)

IMPORT_C voidSetTidL(const TDesC8 &aCid)

Set Transaction-ID

Parameters

const TDesC8 & aCidtransaction ID

Size()

IMPORT_C TIntSize()const

Size of the MMS headers object in memory. The multipart objet size is not included.

Status()

TInt Status()const [inline]

Status accessor

StoreL(CMsvStore &)

IMPORT_C voidStoreL(CMsvStore &aStore)

Externalize the headers. Caller must commit the store to allow several store operations before committing the store

Parameters

CMsvStore & aStoreCMsvStore in edit mode.

Subject()

IMPORT_C TPtrCSubject()const

Subject accessor.

Tid()

IMPORT_C TPtrC8Tid()const

Get Transcation-ID

ToRecipients()

const CDesCArray &ToRecipients()const [inline]

Give const access to the "To" recipient list

TypedAddresseeList(TMmsRecipients)

IMPORT_C const CDesCArray &TypedAddresseeList(TMmsRecipientsaType)

Returns recipients that are of specified type (To, Cc, Bcc).

Parameters

TMmsRecipients aTypespecifies recipient type (types defined in MMSCONST.H)

Member Data Documentation

TInt32 iAdaptationAllowed

TInt32 iAdaptationAllowed[private]

HBufC * iApplicationId

HBufC *iApplicationId[private]

HBufC8 * iApplicationInfo

HBufC8 *iApplicationInfo[private]

CDesCArray * iBccArray

CDesCArray *iBccArray[private]

TInt32 iCancelStatus

TInt32 iCancelStatus[private]

CDesCArray * iCcArray

CDesCArray *iCcArray[private]

TInt32 iContentClass

TInt32 iContentClass[private]

HBufC8 * iContentLocation

HBufC8 *iContentLocation[private]

TInt64 iDate

TInt64 iDate[private]

RPointerArray< CMmsDeleteResultArray > iDeleteResultArray

RPointerArray< CMmsDeleteResultArray >iDeleteResultArray[private]

TLinearOrder< CMmsDeleteResultArray > iDeleteResultOrder

TLinearOrder< CMmsDeleteResultArray >iDeleteResultOrder[private]

TInt32 iDelivReport

TInt32 iDelivReport[private]

TInt64 iDelivery

TInt64 iDelivery[private]

TBool iDeliveryAbs

TBool iDeliveryAbs[private]

TInt32 iDistributionIndicator

TInt32 iDistributionIndicator[private]

TInt32 iDrmContent

TInt32 iDrmContent[private]

CMmsElementDescriptor * iElementDescriptor

CMmsElementDescriptor *iElementDescriptor[private]

TInt64 iExpiry

TInt64 iExpiry[private]

TBool iExpiryAbs

TBool iExpiryAbs[private]

HBufC * iExtendedNotificationText

HBufC *iExtendedNotificationText[private]

TInt iExtensionStatus

TInt iExtensionStatus[private]

TLinearOrder< CMmsSendingChain > iLinearOrder

TLinearOrder< CMmsSendingChain >iLinearOrder[private]

TInt32 iMaxImageHeight

TInt32 iMaxImageHeight[private]

TInt32 iMaxImageWidth

TInt32 iMaxImageWidth[private]

HBufC8 * iMessageId

HBufC8 *iMessageId[private]

TUint32 iMessageSize

TUint32 iMessageSize[private]

CMmsMMBoxMessageHeaders * iMmBoxMessageHeaders

CMmsMMBoxMessageHeaders *iMmBoxMessageHeaders[private]

CMmsMMBoxViewHeaders * iMmBoxViewHeaders

CMmsMMBoxViewHeaders *iMmBoxViewHeaders[private]

TInt16 iMmsDefaultVersion

TInt16 iMmsDefaultVersion[private]

TInt32 iMsgClass

TInt32 iMsgClass[private]

TInt32 iMsgType

TInt32 iMsgType[private]

TInt32 iMultipartType

TInt32 iMultipartType[private]

HBufC * iOperatorResponseText

HBufC *iOperatorResponseText[private]

RPointerArray< CMmsSendingChain > iPreviouslySentArray

RPointerArray< CMmsSendingChain >iPreviouslySentArray[private]

TInt32 iPriority

TInt32 iPriority[private]

TInt32 iReadReply

TInt32 iReadReply[private]

TInt32 iReadStatus

TInt32 iReadStatus[private]

TTime iReceivingTime

TTime iReceivingTime[private]

TInt32 iRecommendedRetrievalMode

TInt32 iRecommendedRetrievalMode[private]

HBufC * iRecommendedRetrievalModeText

HBufC *iRecommendedRetrievalModeText[private]

TMsvId iRelatedEntry

TMsvId iRelatedEntry[private]

HBufC8 * iReplaceCancelId

HBufC8 *iReplaceCancelId[private]

TInt32 iReplyCharging

TInt32 iReplyCharging[private]

TBool iReplyChargingAbs

TBool iReplyChargingAbs[private]

TInt64 iReplyChargingDeadline

TInt64 iReplyChargingDeadline[private]

HBufC8 * iReplyChargingId

HBufC8 *iReplyChargingId[private]

TInt32 iReplyChargingSize

TInt32 iReplyChargingSize[private]

HBufC * iReplyToApplicationId

HBufC *iReplyToApplicationId[private]

TInt32 iReportAllowed

TInt32 iReportAllowed[private]

TInt32 iResponseStatus

TInt32 iResponseStatus[private]

HBufC8 * iRootContentID

HBufC8 *iRootContentID[private]

HBufC * iSender

HBufC *iSender[private]

TInt32 iSenderVisi

TInt32 iSenderVisi[private]

TMsvAttachmentId iStart

TMsvAttachmentId iStart[private]

TInt32 iStatus

TInt32 iStatus[private]

HBufC * iSubject

HBufC *iSubject[private]

HBufC8 * iTID

HBufC8 *iTID[private]

CDesCArray * iToArray

CDesCArray *iToArray[private]

TInt16 iVersion

TInt16 iVersion[private]