#include <mw/CMessageData.h>
class CMessageData : public CBase |
Protected Attributes | |
---|---|
TUid | iDataType |
Protected Member Functions | |
---|---|
CMessageData() | |
IMPORT_C void | ConstructL() |
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.
TUid | iDataType | [protected] |
Data type of this message. Normally this is KSenduiMsgDataBase This can be used for interpreting the opaque data.
IMPORT_C void | AppendAttachmentHandleL | ( | 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,
Parameter | Description |
---|---|
aFileHandle | File handle of the attachment. |
Returns: None.
IMPORT_C void | AppendAttachmentL | ( | 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.
Parameter | Description |
---|---|
aFilePath | File path of the attachment. |
Returns: None.
Encapsulates Bcc address and alias to CMessageAddress and adds to array.
Parameter | Description |
---|---|
aBccAddress | Real Bcc-address. |
aBccAlias | Alias for the real Bcc-address. |
Returns: None.
Encapsulates CC address and alias to CMessageAddress and adds to array.
Parameter | Description |
---|---|
aCcAddress | Real CC-address. |
aCcAlias | Alias for the real CC-address. |
Returns: None.
Encapsulates address and alias to CMessageAddress and adds to array.
Parameter | Description |
---|---|
aAddress | Real address. |
aAlias | Alias for the real address. |
Returns: None.
IMPORT_C const CDesCArray & | AttachmentArray | ( | ) | const |
Returns the array of attachment file paths.
Returns: Array of attachment file paths.
IMPORT_C const CMessageAddressArray & | BccAddressArray | ( | ) | const |
Returns array of Bcc addresses and aliases.
Returns: Array of Bcc addresses and aliases.
IMPORT_C const CRichText * | BodyText | ( | ) | const |
Returns message body text.
Returns: Message body text.
IMPORT_C const CMessageAddressArray & | CcAddressArray | ( | ) | const |
Returns array of CC addresses and aliases.
Returns: Array of cc addresses and aliases.
IMPORT_C void | ClearAddresses | ( | ) |
Clears all addressee arrays.
Returns: None.
IMPORT_C void | ClearAttachmentArray | ( | ) |
Clears the array of attachment file paths.
Returns: Array of attachment file paths.
IMPORT_C void | ConstructL | ( | ) | [protected] |
By default Symbian 2nd phase constructor is private.
IMPORT_C TUid | DataType | ( | ) | const |
Returns data type id.
Returns: Data type id.
IMPORT_C void | ExternalizeL | ( | RWriteStream & | aStream | ) | const |
Externalizes message data to a stream
Returns: None.
IMPORT_C void | InternalizeL | ( | RReadStream & | aStream | ) |
Internalizes message data to from a stream
Returns: None.
IMPORT_C CMessageData * | NewL | ( | ) | [static] |
Two-phased constructor.
Returns: Pointer to object of CMessageData.
IMPORT_C CMessageData * | NewLC | ( | ) | [static] |
Two-phased constructor.
Returns: Pointer to object of CMessageData.
IMPORT_C const TPtrC8 | OpaqueData | ( | ) | const |
Get opaque data
Returns: aData Opaque data.
IMPORT_C void | SetBodyTextL | ( | const CRichText * | aBodyText | ) |
Set message body text.
Parameter | Description |
---|---|
aBodyText | Message body text. |
Returns: None.
IMPORT_C void | SetSubjectL | ( | const TDesC * | aSubject | ) |
Set message subject.
Parameter | Description |
---|---|
aSubject | Sets message subject. Does not take ownership. |
Returns: None.
IMPORT_C const TPtrC | Subject | ( | ) | const |
Returns message subject.
Returns: Message subject.
IMPORT_C const CMessageAddressArray & | ToAddressArray | ( | ) | const |
Returns array of addresses and aliases.
Returns: Array of addresses and aliases.