CMRMailboxUtils Class Reference

class CMRMailboxUtils : public CBase

Inherits from

Nested Classes and Structures

Constructor & Destructor Documentation

~CMRMailboxUtils()

~CMRMailboxUtils()[inline]

Destructor.

Member Functions Documentation

AddObserverL(MMRMailboxUtilsObserver &)

voidAddObserverL(MMRMailboxUtilsObserver &aObserver)[pure virtual]

Adds observer for CMRMailboxUtils.

Parameters

MMRMailboxUtilsObserver & aObserverobserver to add

GetDefaultMRMailBoxL(TMailboxInfo &)

TInt GetDefaultMRMailBoxL(TMailboxInfo &aBoxInfo)[pure virtual]

Gets Calendar's default MR mailbox information. Return value is KErrNone if default has been set, KErrNotFound if it hasn't been set. If default mailbox has been set and it still exists, then it's info is assigned to aBoxInfo. If it has been set but doesn't exist then the first one from the list of mailboxes is set as default and returned in aBoxInfo. In other cases KMsvNullIndexEntryId is assigned to TMRUtilsMailBoxInfo::iEntryId.

Parameters

TMailboxInfo & aBoxInfostruct which will be modified

GetSourceMtmUidL(const CCalEntry &, TUid &)

TInt GetSourceMtmUidL(const CCalEntry &aCalEntry,
TUid &aMtmUid
)[pure virtual]

Resolves MTM Uid based on the entry. This is done by finding out phone owner, the corresponding mailbox, and the MTM for that mailbox.

Parameters

const CCalEntry & aCalEntrycalendar entry to evaluate
TUid & aMtmUiduid of the MTM

IsOrganizerL(const CCalEntry &)

TBool IsOrganizerL(const CCalEntry &aCalEntry)[pure virtual]

Compares CCalEntry's phone owner field to organizer field, and returns ETrue if they match. If phone owner hasn't been set this method returns EFalse.

Parameters

const CCalEntry & aCalEntryentry to evaluate

ListMailBoxesL(RArray< TMailboxInfo > &)

voidListMailBoxesL(RArray< TMailboxInfo > &aMailBoxes)[pure virtual]

Lists all MR capable mail boxes available in the phone.

Parameters

RArray< TMailboxInfo > & aMailBoxes

MsvSessionL()

CMsvSession &MsvSessionL()[pure virtual]

Accessor method for getting CMsvSession reference. Leaves with a system wide error code if session doesn't exist due to a problem with Messaging Server. Reference should only be used immediatelly after querying it, since server may later request closing the session.

NewL(CMsvSession *)

CMRMailboxUtils *NewL(CMsvSession *aMsvSession = NULL)[static, inline]

Constructs CMailboxUtils ECom plug-in.

Parameters

CMsvSession * aMsvSession = NULL

RemoveObserver(MMRMailboxUtilsObserver &)

voidRemoveObserver(MMRMailboxUtilsObserver &aObserver)[pure virtual]

Removes observer, panics if observer hasn't been added.

Parameters

MMRMailboxUtilsObserver & aObserverobserver to remove

SetDefaultMRMailBoxL(TMsvId)

TInt SetDefaultMRMailBoxL(TMsvIdaDefaultBox)[pure virtual]

Sets Calendar's default MR mailbox.

Parameters

TMsvId aDefaultBoxbox to be set as default

SetPhoneOwnerL(CCalEntry &, TMsvId)

TInt SetPhoneOwnerL(CCalEntry &aCalEntry,
TMsvIdaPrimaryBox =  KMsvNullIndexEntryId
)[pure virtual]

If phone owner field hasn't been set so far, this method compares organizer field to the mailboxes in the device, and if no match was found compares each attendee to the mailboxes. If match was found, phone owner field is set, otherwise KErrNotFound is returned. If aPrimaryBox is given, then that is used in matching before any other mailbox. If not given, then default MR mailbox will have the highest presedence followed by other MR-capable mailboxes.

Parameters

CCalEntry & aCalEntryentry to modify
TMsvId aPrimaryBox =  KMsvNullIndexEntryId primary mailbox for matching, if applicable

ThisAttendeeL(const CCalEntry &)

CCalAttendee *ThisAttendeeL(const CCalEntry &aCalEntry)[pure virtual]

Compares CCalEntry's phone owner field to its attendee list, and returns matching attendee, or NULL if phone owner hasn't been set or this attendee was not found.

Parameters

const CCalEntry & aCalEntrymeeting request entry

Member Data Documentation

TUid iDtor_ID_Key

TUid iDtor_ID_Key[private]