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.
Private Member Functions | |
---|---|
CMmsHeaders () | |
HBufC * | AliasedAddressL (const TDesC &, RFs &) |
CDesCArray * | AliasedAddressL (const CDesCArray &, RFs &) |
void | ConstructL ( TInt16 ) |
void | CopyAddresseeListL (const CDesCArray &, TMmsRecipients, const TPtrC &, RFs &) |
void | ExternalizeArrayL ( CDesC16Array &, RWriteStream &) |
IMPORT_C void | ExternalizeL ( RMsvWriteStream &) |
void | InternalizeArrayL ( CDesC16Array &, RReadStream &) |
IMPORT_C void | InternalizeL ( RMsvReadStream &) |
TPtrC8 | LimitStringSize (const TPtrC8 &, TInt ) |
TPtrC16 | LimitStringSize (const TPtrC16 &, TInt ) |
TBool | RemoveAddressee ( CDesCArray &, const TDesC &) |
TInt | AdaptationAllowed | ( | ) | const [inline] |
Get header that tells if MMSC is allowed to alter the message (make it smaller).
IMPORT_C void | AddTypedAddresseeL | ( | const TDesC & | aRealAddress, |
TMmsRecipients | aType | |||
) |
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.
const TDesC & aRealAddress | recipient address. |
TMmsRecipients aType | specifies recipient type (types defined in MMSCONST.H) |
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
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
const CDesCArray & aOriginalAddress | array of original addresses, may be pure or not |
RFs & aFs |
IMPORT_C void | AppendPreviouslySentItemL | ( | TInt64 | aDate, |
const TDesC & | aSender | |||
) |
IMPORT_C TPtrC16 | ApplicId | ( | ) | const |
Identification of the destination application accessor.
IMPORT_C TPtrC8 | AuxApplicInfo | ( | ) | const |
Auxiliary application information for internal use of the destination application accessor.
const CDesCArray & | BccRecipients | ( | ) | const [inline] |
Give const access to the "Bcc" recipient list
const CDesCArray & | CcRecipients | ( | ) | const [inline] |
Give const access to the "Cc" recipient list
void | ConstructL | ( | TInt16 | aMmsDefaultVersion | ) | [private] |
By default Symbian OS constructor is private.
TInt16 aMmsDefaultVersion |
TInt | ContentClass | ( | ) | const [inline] |
Return the content class value as specified in MMS encapsulation 1.3.
IMPORT_C TPtrC8 | ContentLocation | ( | ) | const |
Content-Location accessor. Used in a Message Notification.
void | CopyAddresseeListL | ( | const CDesCArray & | aArray, |
TMmsRecipients | aType, | |||
const TPtrC & | aExclude, | |||
RFs & | aFs | |||
) | [private] |
Copy addressee list from source headers
const CDesCArray & aArray | addressee list |
TMmsRecipients aType | recipient lins type |
const TPtrC & aExclude | Address to be excluded from the list (sender) |
RFs & aFs | file system handle |
IMPORT_C CMmsHeaders * | CopyL | ( | TMsvPartList | aParts, |
TBool | aReply | |||
) |
Make a copy of MmsHeaders
TMsvPartList aParts | message part list |
TBool aReply | if the new message is a reply message. This has meaning for recipient handling. |
IMPORT_C CMmsHeaders * | CopyL | ( | TMsvPartList | aParts, |
TBool | aReply, | |||
RFs & | aFs | |||
) |
Make a copy of MmsHeaders
TMsvPartList aParts | message part list |
TBool aReply | if the new message is a reply message. This has meaning for recipient handling. |
RFs & aFs | file system handle. Needed for alias handling |
IMPORT_C void | CreateContentId | ( | TDes8 & | aCid | ) | [static] |
Creates a ContentId to be used in mime headers
TDes8 & aCid | the 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 ) |
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.
TInt | DistributionIndicator | ( | ) | const [inline] |
IMPORT_C CMmsElementDescriptor & | ElementDescriptorL | ( | ) |
IMPORT_C TPtrC | ExtendedNotification | ( | ) | const |
void | ExternalizeArrayL | ( | CDesC16Array & | anArray, |
RWriteStream & | aStream | |||
) | const [private] |
Externalize Array.
CDesC16Array & anArray | the array to be externalized |
RWriteStream & aStream | stream where to write. |
IMPORT_C void | ExternalizeL | ( | RMsvWriteStream & | aStream | ) | const [private] |
RMsvWriteStream & aStream | write stream |
IMPORT_C void | GetMaximumImage | ( | TInt & | aWidth, |
TInt & | aHeight | |||
) | const |
Maximum image size accessor.
IMPORT_C void | InsertDeleteContentLocationL | ( | TUint | aOrder, |
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
IMPORT_C void | InsertDeleteResponseTextL | ( | TUint | aOrder, |
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
IMPORT_C void | InsertDeleteStatusL | ( | TUint | aOrder, |
const TInt32 | aStatus | |||
) |
Insert delete status. If corresponding entry is found, just insert delete status to entry, otherwise create new CMmsDeleteResultArray item and insert it into array
IMPORT_C void | InsertPreviouslySentByL | ( | TInt | aOrder, |
const TDesC & | aSender | |||
) |
IMPORT_C void | InsertPreviouslySentDateL | ( | TInt | aOrder, |
TInt64 | aDate | |||
) |
void | InternalizeArrayL | ( | CDesC16Array & | anArray, |
RReadStream & | aStream | |||
) | [private] |
Internalize Array.
CDesC16Array & anArray | the array where to write data |
RReadStream & aStream | a stream where to read data from |
IMPORT_C void | InternalizeL | ( | RMsvReadStream & | aStream | ) | [private] |
RMsvReadStream & aStream | read stream |
TPtrC8 | LimitStringSize | ( | const TPtrC8 & | aString, |
TInt | aMaxSize | |||
) | [private, static] |
Limit string size to maximum length
TPtrC16 | LimitStringSize | ( | const TPtrC16 & | aString, |
TInt | aMaxSize | |||
) | [private, static] |
Limit string size to maximum length
IMPORT_C CMmsMMBoxMessageHeaders & | MMBoxMessageHeadersL | ( | ) |
IMPORT_C CMmsMMBoxViewHeaders & | MMBoxViewHeadersL | ( | ) |
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
IMPORT_C CMmsHeaders * | NewL | ( | TInt16 | aMmsVersion | ) | [static] |
Two-phased constructor.
TInt16 aMmsVersion | The version of MMS encapsulation that should be used unless the actual message contains some other value |
const CMmsElementDescriptor * | ReadOnlyElementDescriptor | ( | ) | const [inline] |
const CMmsMMBoxMessageHeaders * | ReadOnlyMMBoxMessageHeaders | ( | ) | const [inline] |
const CMmsMMBoxViewHeaders * | ReadOnlyMMBoxViewHeaders | ( | ) | const [inline] |
TTime | ReceivingTime | ( | ) | const [inline] |
The time the message was received in the terminal.
TInt | RecommendedRetrievalMode | ( | ) | const [inline] |
Get recommended retrieval mode This header appears in a notification and may recommend manual retrieval.
IMPORT_C TPtrC16 | RecommendedRetrievalModeText | ( | ) | const |
Get explanation why retrival mode is recommended
IMPORT_C TBool | RemoveAddressee | ( | const TDesC & | aRealAddress | ) |
Remove a given address from the right typed list.
const TDesC & aRealAddress | recipient address. |
TBool | RemoveAddressee | ( | CDesCArray & | aList, |
const TDesC & | aAddress | |||
) | [private] |
Remove a addressee from a given addressee list.
CDesCArray & aList | addressee list |
const TDesC & aAddress | addressee to match |
IMPORT_C TPtrC8 | ReplaceCancelId | ( | ) | const |
Get id of message to be replaced or cancelled
IMPORT_C TPtrC16 | ReplyApplicId | ( | ) | const |
Identification of an application to which replies are addressed accessor.
IMPORT_C void | Reset | ( | CMmsSettings * | aSettings = NULL | ) |
Reset.
CMmsSettings * aSettings = NULL | MMS settings to be used for initial values. Can be NULL. |
IMPORT_C TPtrC | ResponseText | ( | ) | 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
IMPORT_C void | RestoreL | ( | CMsvStore & | aStore | ) |
Internalize the headers.
CMsvStore & aStore | CMsvStore |
void | SetAdaptationAllowed | ( | TInt | aAdaptationAllowed | ) | [inline] |
Set the header that tells if MMSC is allowed to alter the message (make it smaller).
TInt aAdaptationAllowed | Adaptation allowed header. Possible values:KMmsYesKMmsNo |
IMPORT_C void | SetApplicIdL | ( | const TDesC16 & | aApplicId | ) |
Identification of the destination application mutator.
const TDesC16 & aApplicId | application ID |
IMPORT_C void | SetAuxApplicInfoL | ( | const TDesC8 & | aAuxApplicInfo | ) |
Auxiliary application information for internal use of the destination application mutator.
const TDesC8 & aAuxApplicInfo | auxiliary application info |
void | SetCancelStatus | ( | TInt | aCancelStatus | ) | [inline] |
Set status of cancel operation
TInt aCancelStatus | Status of cancel operation. Possible values:KMmsCancelRequestSuccessfullyReceivedKMmsCancelRequestCorrupted |
void | SetContentClass | ( | TInt | aContentClass | ) | [inline] |
Set the content class of the message as specified in MMS encapsulation 1.3-
TInt aContentClass | content class value from mmsconst.hKMmsContentClassTextKMmsContentClassImageBasicKMmsContentClassImageRichKMmsContentClassVideoBasicKMmsContentClassVideoRichKMmsContentClassMegaPixelKMmsContentClassContentBasicKMmsContentClassContentRich |
IMPORT_C void | SetContentLocationL | ( | const TDesC8 & | aURL | ) |
Content-Location mutator. Used in a Message Notification.
const TDesC8 & aURL | URL of the message. |
void | SetDate | ( | TInt64 | aTime | ) | [inline] |
Set Date
TInt64 aTime | seconds from 1.1. 1970 Date must be in UTC time zone |
IMPORT_C void | SetDeliveryDate | ( | TInt64 | aDate | ) |
Delivery date mutator.
TInt64 aDate | The 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 |
void | SetDeliveryReport | ( | TInt | aRequest | ) | [inline] |
Delivery Report Request mutator.
TInt aRequest | Yes or No (values defined in MMSCONST.H) |
IMPORT_C void | SetDeliveryTimeInterval | ( | TInt | aInterval | ) |
Delivery time interval mutator.
TInt aInterval | The length of time after which the message will be delivered to the recipient by the MMSC. Expressed in seconds. |
void | SetDistributionIndicator | ( | const TInt | aDistributionIndicator | ) | [inline] |
const TInt aDistributionIndicator | X-Mms-DistributionIndicator value KMmsYes/KMmsNo |
void | SetDrmContent | ( | TInt | aDrmContent | ) | [inline] |
Set DRM Content indicator header.
TInt aDrmContent | Messag has DRM content. Possible values:KMmsYesKMmsNo |
IMPORT_C void | SetExpiryDate | ( | TInt64 | aDate | ) |
Expiration date mutator.
TInt64 aDate | The date and time the message will expire in seconds from 1970-01-01. Date must be in UTC time zone |
IMPORT_C void | SetExpiryInterval | ( | TInt | aInterval | ) |
Expiration interval mutator
TInt aInterval | The length of time after which the message is discarded by MMSC. Expressed in seconds. |
IMPORT_C void | SetExtendedNotificationL | ( | const TDesC & | aText | ) |
const TDesC & aText | Extended notification text. |
IMPORT_C void | SetMaximumImage | ( | TInt | aWidth, |
TInt | aHeight | |||
) |
Maximum image size mutator.
void | SetMessageClass | ( | TInt | aClass | ) | [inline] |
Message class mutator values defined in MMSCONST.H
TInt aClass |
void | SetMessageComplete | ( | TInt | aExtensionStatus | ) | [inline] |
TInt aExtensionStatus | indicator 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. |
IMPORT_C void | SetMessageIdL | ( | const TDesC8 & | aId | ) |
Message-ID mutator
const TDesC8 & aId |
void | SetMessagePriority | ( | TInt | aPriority | ) | [inline] |
Message priority mutator (Low/Normal/High). Default: Normal.
TInt aPriority | Message priority, values defined in MMSCONST.H |
void | SetMessageRoot | ( | const TMsvAttachmentId | aId | ) | [inline] |
Message root part mutator.
const TMsvAttachmentId aId | Id of the message part that should be displayed first. Should point to the SMIL part that starts the message display. |
void | SetMessageSize | ( | TInt | aSize | ) | [inline] |
Set Message-Size header.
TInt aSize | Message-Size in bytes. Used in a Message Notification. |
void | SetMessageType | ( | TInt | aType | ) | [inline] |
Set Message-Type
TInt aType | message type |
void | SetMmsVersion | ( | TInt16 | aVersion | ) | [inline] |
Set MMS-Version
TInt16 aVersion | MMS version |
void | SetMultipartType | ( | const TInt | aMultipartType | ) | [inline] |
const TInt aMultipartType | type of multipart data saved to this entry (WSP assigned number) |
void | SetReadReply | ( | TInt | aRequest | ) | [inline] |
Read Reply Request mutator.
TInt aRequest | Yes or No (values defined in MMSCONST.H) |
void | SetReadStatus | ( | const TInt | aReadStatus | ) | [inline] |
Read status mutator.
const TInt aReadStatus | status value. See mmsconst.h. |
void | SetReceivingTime | ( | TTime | aTime | ) | [inline] |
TTime aTime | time in UTC time zone when the message has been received. |
void | SetRecommendedRetrievalMode | ( | TInt | aRetrievalMode | ) | [inline] |
Set recommended retrieval mode. This header appears in a notification and may recommend manual retrieval.
TInt aRetrievalMode | Suggested retrieval mode. Possible valuesKMmsRecommendedRetrievalModeManual |
IMPORT_C void | SetRecommendedRetrievalModeTextL | ( | const TDesC16 & | aRecommendedRetrievalModeText | ) |
Set explanation why retrival mode is recommended
const TDesC16 & aRecommendedRetrievalModeText |
void | SetRelatedEntry | ( | const TMsvId | aRelatedEntry | ) | [inline] |
const TMsvId aRelatedEntry | Id of an entry that is connected to this one by some relationship |
IMPORT_C void | SetReplaceCancelIdL | ( | const TDesC8 & | aReplaceCancelId | ) |
Set id of message to be replaced or cancelled
const TDesC8 & aReplaceCancelId |
IMPORT_C void | SetReplyApplicIdL | ( | const TDesC16 & | aApplicId | ) |
Identification of an application to which replies are addressed mutator.
const TDesC16 & aApplicId | reply to application ID |
void | SetReplyCharging | ( | const TInt | aReplyCharging | ) | [inline] |
ReplyCharging mutator.
const TInt aReplyCharging | value. See mmsconst.h |
IMPORT_C void | SetReplyChargingDate | ( | TInt64 | aDate | ) |
ReplyCharging date mutator.
TInt64 aDate | The date and time until which the sender pays charges for reply in seconds from 1970-01-01. Date must be in UTC time zone |
IMPORT_C void | SetReplyChargingIdL | ( | const TDesC8 & | aId | ) |
ReplyChargingID mutator.
const TDesC8 & aId | original message ID to which this is a reply to |
IMPORT_C void | SetReplyChargingInterval | ( | TInt | aInterval | ) |
ReplyCharging interval mutator.
TInt aInterval | The length of time during which the sender pays charges for reply. Expressed in seconds. |
void | SetReplyChargingSize | ( | const TInt | aReplyChargingSize | ) | [inline] |
ReplyChargingSize mutator.
const TInt aReplyChargingSize | maximum size of message for which reply charging applies. |
void | SetReportAllowed | ( | TInt32 | aValue | ) | [inline] |
Report-Allowed mutator
TInt32 aValue | Report-Allowed value |
void | SetResponseStatus | ( | TInt32 | aValue | ) | [inline] |
Response-Status mutator
TInt32 aValue | Response-Status value |
IMPORT_C void | SetResponseTextL | ( | 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
const TDesC & aText | Response text string |
IMPORT_C void | SetRootContentIdL | ( | const TDesC8 & | aId | ) |
Root Content-ID mutator.
const TDesC8 & aId |
IMPORT_C void | SetSenderL | ( | const TDesC & | aAlias | ) |
Sender mutator
const TDesC & aAlias |
void | SetSenderVisibility | ( | TInt | aVisibility | ) | [inline] |
Sender visibility mutator.
TInt aVisibility | Hide or Show (values defined in MMSCONST.H) |
IMPORT_C void | SetSettings | ( | CMmsSettings * | aSettings | ) |
Set initial setting values from service settings
CMmsSettings * aSettings | MMS service settings. Optional. |
void | SetStatus | ( | const TInt | aStatus | ) | [inline] |
Status mutator
const TInt aStatus | status value. See mmsconst.h. |
IMPORT_C void | SetSubjectL | ( | const TDesC & | aSubject | ) |
Subject mutator. Note that Client MTM should update explicitly TMsvEntry.iDescription too.
const TDesC & aSubject | subject string, |
IMPORT_C void | SetTidL | ( | const TDesC8 & | aCid | ) |
Set Transaction-ID
const TDesC8 & aCid | transaction ID |
IMPORT_C TInt | Size | ( | ) | const |
Size of the MMS headers object in memory. The multipart objet size is not included.
IMPORT_C void | StoreL | ( | CMsvStore & | aStore | ) |
Externalize the headers. Caller must commit the store to allow several store operations before committing the store
CMsvStore & aStore | CMsvStore in edit mode. |
const CDesCArray & | ToRecipients | ( | ) | const [inline] |
Give const access to the "To" recipient list
IMPORT_C const CDesCArray & | TypedAddresseeList | ( | TMmsRecipients | aType | ) |
Returns recipients that are of specified type (To, Cc, Bcc).
TMmsRecipients aType | specifies recipient type (types defined in MMSCONST.H) |
RPointerArray < CMmsDeleteResultArray > | iDeleteResultArray | [private] |
TLinearOrder < CMmsDeleteResultArray > | iDeleteResultOrder | [private] |
TLinearOrder < CMmsSendingChain > | iLinearOrder | [private] |
CMmsMMBoxMessageHeaders * | iMmBoxMessageHeaders | [private] |
RPointerArray < CMmsSendingChain > | iPreviouslySentArray | [private] |
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.