Dacons LLP Mailit for C/C++ Version 1.0.8

MessageComposer Class Reference

MessageComposer class. More...

#include <MessageComposer.hpp>

List of all members.

Public Member Functions

void SetText (EmaiConstCharPtr inPlainText, EmaiUint32 inCharacterSet)
 Sets the plain text message part.
void SetUnicodeText (EmaiConstUniCharPtr inUnicodeText)
 Set the Unicode text message part.
void SetHtml (EmaiConstCharPtr inHtmlText)
 Set the HTML message part.
void AddAttachmentFromData (const void *inData, EmaiUint32 inDataSize, EmaiConstUniCharPtr inFileName)
 Add the attachment data to the list of the attachments.
void AddAttachmentFromFile (EmaiConstUniCharPtr inFileName, EmaiConstUniCharPtr inFileFullPath)
 Add the attachment file to the list of the attachments.
void AddInlineFromData (const void *inData, EmaiUint32 inDataSize, EmaiConstUniCharPtr inFileName, EmaiConstUniCharPtr inContentId)
 Add the inline attachment data to the list of the inline attachments.
void AddInlineFromFile (EmaiConstUniCharPtr inFileName, EmaiConstUniCharPtr inFileFullPath, EmaiConstUniCharPtr inContentId)
 Add the inline attachment from file to the list of the inline attachments.
Emai::Message ComposeMessage (Emai::ContactList inFromContact, Emai::ContactList inSenderContact, Emai::ContactList inToContact, Emai::ContactList inCCContact, Emai::ContactList inBCContact, EmaiConstUniCharPtr inMessageSubject)
 Composes the message.

Private Types

typedef std::vector< Emai::MessagePartMessagePartArray

Private Attributes

Emai::MessagePart mTextPart
Emai::MessagePart mHtmlPart
MessagePartArray mAttachments
MessagePartArray mInlines


Detailed Description

MessageComposer class.

Definition at line 31 of file MessageComposer.hpp.


Member Function Documentation

void MessageComposer::SetText ( EmaiConstCharPtr  inPlainText,
EmaiUint32  inCharacterSet 
)

Sets the plain text message part.

Parameters:
inPlainText - pointer to the plain text data
inCharacterSet - character set of the inPlainText data

void MessageComposer::SetUnicodeText ( EmaiConstUniCharPtr  inUnicodeText  ) 

Set the Unicode text message part.

Parameters:
inUnicodeText - pointer to the unicode text data
inCharacterSet - character set of the inPlainText data

void MessageComposer::SetHtml ( EmaiConstCharPtr  inHtmlText  ) 

Set the HTML message part.

Parameters:
inHtmlText - pointer to the html text data

void MessageComposer::AddAttachmentFromData ( const void *  inData,
EmaiUint32  inDataSize,
EmaiConstUniCharPtr  inFileName 
)

Add the attachment data to the list of the attachments.

Parameters:
inData - pointer to the data
inDataSize - size of the data
inFileName - pointer to the name of the data

void MessageComposer::AddAttachmentFromFile ( EmaiConstUniCharPtr  inFileName,
EmaiConstUniCharPtr  inFileFullPath 
)

Add the attachment file to the list of the attachments.

Parameters:
inFileName - pointer to the name of the file
inFileFullPath - pointer to the full path of the file

void MessageComposer::AddInlineFromData ( const void *  inData,
EmaiUint32  inDataSize,
EmaiConstUniCharPtr  inFileName,
EmaiConstUniCharPtr  inContentId 
)

Add the inline attachment data to the list of the inline attachments.

Parameters:
inData - pointer to the inline data
inDataSize - size of the inline data
inFileName - pointer to the name of the inline data
inContentId - pointer to the inline content identifier

void MessageComposer::AddInlineFromFile ( EmaiConstUniCharPtr  inFileName,
EmaiConstUniCharPtr  inFileFullPath,
EmaiConstUniCharPtr  inContentId 
)

Add the inline attachment from file to the list of the inline attachments.

Parameters:
inFileName - pointer to the name of the file
inFileFullPath - pointer to the file full path
inContentId - pointer to the inline content identifier

Emai::Message MessageComposer::ComposeMessage ( Emai::ContactList  inFromContact,
Emai::ContactList  inSenderContact,
Emai::ContactList  inToContact,
Emai::ContactList  inCCContact,
Emai::ContactList  inBCContact,
EmaiConstUniCharPtr  inMessageSubject 
)

Composes the message.

Parameters:
inFromContact - pointer to vector of contact fields "From"
inSenderContact - pointer to sender contact field
inToContact - pointer to vector of contact fields "To"
inCCContact - pointer to vector of contact fields "Cc"
inBCContact - pointer to vector of contact fields "Bcc"
inMessageSubject - pointer to message subject


The documentation for this class was generated from the following file: