CFSMailMessageBase Class Reference

class CFSMailMessageBase : public CExtendableEmail

email handling base class

FSFWCommonLib

Inherits from

Public Member Functions
~CFSMailMessageBase ()
IMPORT_C void AppendBCCRecipient ( CFSMailAddress *)
IMPORT_C void AppendCCRecipient ( CFSMailAddress *)
IMPORT_C void AppendToRecipient ( CFSMailAddress *)
IMPORT_C void ClearBccRecipients ()
IMPORT_C void ClearCcRecipients ()
IMPORT_C void ClearToRecipients ()
IMPORT_C CEmailExtension * ExtensionL (const TUid &)
IMPORT_C RPointerArray < CFSMailAddress > & GetBCCRecipients ()
IMPORT_C RPointerArray < CFSMailAddress > & GetCCRecipients ()
IMPORT_C TTime GetDate ()
IMPORT_C TInt GetFlags ()
IMPORT_C TFSMailMsgId GetFolderId ()
IMPORT_C TFSMailMsgId GetMailBoxId ()
IMPORT_C TFSMailMsgId GetMessageId ()
IMPORT_C const CFSMailAddress & GetReplyToAddress ()
IMPORT_C CFSMailAddress * GetSender ()
IMPORT_C TDesC & GetSubject ()
IMPORT_C RPointerArray < CFSMailAddress > & GetToRecipients ()
IMPORT_C TBool IsFlagSet (const TInt )
IMPORT_C TFSMailMsgId IsRelatedTo ()
IMPORT_C CFSMailMessageBase * NewL (const TFSMailMsgId )
IMPORT_C CFSMailMessageBase * NewLC (const TFSMailMsgId )
IMPORT_C void ReleaseExtension ( CEmailExtension *)
IMPORT_C CFSMailRequestHandler & RequestHandler ()
IMPORT_C void ResetFlag (const TInt )
IMPORT_C void SetDate (const TTime )
IMPORT_C void SetFlag (const TInt )
IMPORT_C void SetFolderId (const TFSMailMsgId )
IMPORT_C void SetMailBoxId (const TFSMailMsgId )
IMPORT_C void SetRelatedTo (const TFSMailMsgId )
IMPORT_C void SetReplyToAddress ( CFSMailAddress *)
IMPORT_C void SetSender ( CFSMailAddress *)
IMPORT_C void SetSubject (const TDesC &)
Protected Member Functions
CFSMailMessageBase ()
Private Member Functions
void ConstructL (const TFSMailMsgId )
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
TFSMailMsgId iMessageId
CFSMailRequestHandler * iRequestHandler
Private Attributes
RPointerArray < CFSMailAddress > iBccRecipients
RPointerArray < CFSMailAddress > iCcRecipients
TTime iDate
TInt iFlags
TFSMailMsgId iFolderId
TFSMailMsgId iMailBoxId
TFSMailMsgId iRelatedTo
CFSMailAddress * iReplyTo
CFSMailAddress * iSender
HBufC * iSubject
RPointerArray < CFSMailAddress > iToRecipients
Inherited Attributes
CExtendableEmail::iExtensions

Constructor & Destructor Documentation

CFSMailMessageBase()

CFSMailMessageBase ( ) [protected]

C++ default constructor.

~CFSMailMessageBase()

IMPORT_C ~CFSMailMessageBase ( ) [virtual]

Destructor.

Member Functions Documentation

AppendBCCRecipient(CFSMailAddress *)

IMPORT_C void AppendBCCRecipient ( CFSMailAddress * aRecipient )

appends one recipient to email BCC field, ownership transferred from user

Parameters

CFSMailAddress * aRecipient new recipient email address

AppendCCRecipient(CFSMailAddress *)

IMPORT_C void AppendCCRecipient ( CFSMailAddress * aRecipient )

appends one recipient to email CC-field, ownership transferred from user

Parameters

CFSMailAddress * aRecipient new recipient email address

AppendToRecipient(CFSMailAddress *)

IMPORT_C void AppendToRecipient ( CFSMailAddress * aRecipient )

appends one recipient to email TO-field, ownership transferred from user

Parameters

CFSMailAddress * aRecipient new recipient email address

ClearBccRecipients()

IMPORT_C void ClearBccRecipients ( )

clears email BCC-recipients list

ClearCcRecipients()

IMPORT_C void ClearCcRecipients ( )

clears email CC-recipients list

ClearToRecipients()

IMPORT_C void ClearToRecipients ( )

clears email TO-recipients list

ConstructL(const TFSMailMsgId)

void ConstructL ( const TFSMailMsgId aMessageId ) [private]

ConstructL

Parameters

const TFSMailMsgId aMessageId

ExtensionL(const TUid &)

IMPORT_C CEmailExtension * ExtensionL ( const TUid & aInterfaceUid ) [virtual]

Returns extension by uid, leaves KErrNotSupported if extension is not available.

Parameters

const TUid & aInterfaceUid extension interface uid

GetBCCRecipients()

IMPORT_C RPointerArray < CFSMailAddress > & GetBCCRecipients ( )

returns BCC-recipients list of email

GetCCRecipients()

IMPORT_C RPointerArray < CFSMailAddress > & GetCCRecipients ( )

returns CC-recipients list of email

GetDate()

IMPORT_C TTime GetDate ( ) const

email date accessor

GetFlags()

IMPORT_C TInt GetFlags ( ) const

email flags accessor

GetFolderId()

IMPORT_C TFSMailMsgId GetFolderId ( ) const

email parent folder id accessor

GetMailBoxId()

IMPORT_C TFSMailMsgId GetMailBoxId ( ) const

email mailbox id accessor

GetMessageId()

IMPORT_C TFSMailMsgId GetMessageId ( ) const

message id accessor

GetReplyToAddress()

IMPORT_C const CFSMailAddress & GetReplyToAddress ( )

Email reply-to address accessor ; defines optional email address that clients should use to send replies. Returns NULL pointer if address is not set, ownership not transferred to user.

GetSender()

IMPORT_C CFSMailAddress * GetSender ( ) const

email sender address accessor

GetSubject()

IMPORT_C TDesC & GetSubject ( ) const

email subject accessor

GetToRecipients()

IMPORT_C RPointerArray < CFSMailAddress > & GetToRecipients ( )

returns TO-recipients list of email

IsFlagSet(const TInt)

IMPORT_C TBool IsFlagSet ( const TInt aFlag ) const

test email flag is set

email flag to be tested

Parameters

const TInt aFlag

IsRelatedTo()

IMPORT_C TFSMailMsgId IsRelatedTo ( ) const

if email is related to another email, for example due reply / forward, related email id is returned

NewL(const TFSMailMsgId)

IMPORT_C CFSMailMessageBase * NewL ( const TFSMailMsgId aMessageId ) [static]

Two-phased constructor.

Parameters

const TFSMailMsgId aMessageId id of the email to be created

NewLC(const TFSMailMsgId)

IMPORT_C CFSMailMessageBase * NewLC ( const TFSMailMsgId aMessageId ) [static]

Two-phased constructor.

Parameters

const TFSMailMsgId aMessageId id of the email to be created

ReleaseExtension(CEmailExtension *)

IMPORT_C void ReleaseExtension ( CEmailExtension * aExtension ) [virtual]

Parameters

CEmailExtension * aExtension

RequestHandler()

IMPORT_C CFSMailRequestHandler & RequestHandler ( )

plugin request handler accessor

ResetFlag(const TInt)

IMPORT_C void ResetFlag ( const TInt aFlag )

email flag reset

email flag to be reset

Parameters

const TInt aFlag

SetDate(const TTime)

IMPORT_C void SetDate ( const TTime aDate )

email date mutator

Parameters

const TTime aDate new email date

SetFlag(const TInt)

IMPORT_C void SetFlag ( const TInt aFlag )

email flag set

email flag to be set

Parameters

const TInt aFlag

SetFolderId(const TFSMailMsgId)

IMPORT_C void SetFolderId ( const TFSMailMsgId aFolderId )

email parent folder id mutator

Parameters

const TFSMailMsgId aFolderId parent folder id

SetMailBoxId(const TFSMailMsgId)

IMPORT_C void SetMailBoxId ( const TFSMailMsgId aMailBoxId )

email mailbox id mutator

Parameters

const TFSMailMsgId aMailBoxId mailbox id

SetRelatedTo(const TFSMailMsgId)

IMPORT_C void SetRelatedTo ( const TFSMailMsgId aMessageId )

set email related to another email, for example due reply / forward

Parameters

const TFSMailMsgId aMessageId related email id

SetReplyToAddress(CFSMailAddress *)

IMPORT_C void SetReplyToAddress ( CFSMailAddress * aReplyToAddress )

email reply-to address mutator, ownership transferred from user

Parameters

CFSMailAddress * aReplyToAddress email reply-to address

SetSender(CFSMailAddress *)

IMPORT_C void SetSender ( CFSMailAddress * aSender )

email sender address mutator

Parameters

CFSMailAddress * aSender email sender address, ownership transferred from user

SetSubject(const TDesC &)

IMPORT_C void SetSubject ( const TDesC & aSubject )

email subject mutator

Parameters

const TDesC & aSubject new email subject

Member Data Documentation

RPointerArray< CFSMailAddress > iBccRecipients

RPointerArray < CFSMailAddress > iBccRecipients [private]

RPointerArray< CFSMailAddress > iCcRecipients

RPointerArray < CFSMailAddress > iCcRecipients [private]

TTime iDate

TTime iDate [private]

email date

TInt iFlags

TInt iFlags [private]

email flags

TFSMailMsgId iFolderId

TFSMailMsgId iFolderId [private]

email parent folder id

TFSMailMsgId iMailBoxId

TFSMailMsgId iMailBoxId [private]

email mailbox id

TFSMailMsgId iMessageId

TFSMailMsgId iMessageId [protected]

email message id

TFSMailMsgId iRelatedTo

TFSMailMsgId iRelatedTo [private]

id of another email or part this object is related to due some reason, like in reply or forward email use cases

CFSMailAddress * iReplyTo

CFSMailAddress * iReplyTo [private]

email reply-to address

CFSMailRequestHandler * iRequestHandler

CFSMailRequestHandler * iRequestHandler [protected]

CFSMailAddress * iSender

CFSMailAddress * iSender [private]

email sender address

HBufC * iSubject

HBufC * iSubject [private]

email subject

RPointerArray< CFSMailAddress > iToRecipients

RPointerArray < CFSMailAddress > iToRecipients [private]

email recipients, to/cc/bcc