diff -r 0396474f30f5 -r 4ce476e64c59 meetingrequest/mrentry/inc/cesmrfsmailboxutils.h --- a/meetingrequest/mrentry/inc/cesmrfsmailboxutils.h Mon Mar 15 12:39:10 2010 +0200 +++ b/meetingrequest/mrentry/inc/cesmrfsmailboxutils.h Wed Mar 31 21:08:33 2010 +0300 @@ -1,5 +1,5 @@ /* -* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). +* Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). * All rights reserved. * This component and the accompanying materials are made available * under the terms of "Eclipse Public License v1.0" @@ -20,8 +20,8 @@ #include #include +#include "esmrdef.h" #include "cfsmailcommon.h" -#include "esmrdef.h" class CFSMailClient; class CFSMailMessage; @@ -34,7 +34,16 @@ */ NONSHARABLE_CLASS( CESMRFsMailboxUtils ): public CBase { - +public: + + /** + * Enumeration for mailbox capabilities + */ + enum TMRMailboxCapability + { + EMRCapabilityAttachment + }; + public: // Constructors and destructors /** @@ -43,13 +52,13 @@ * @param aMailboxUtils Reference to S60 mailbox utils * @return instantiated object, ownership transferred */ - static CESMRFsMailboxUtils* NewL( + IMPORT_C static CESMRFsMailboxUtils* NewL( CMRMailboxUtils& aMailboxUtils ); /** * C++ Destructor. */ - ~CESMRFsMailboxUtils(); + IMPORT_C ~CESMRFsMailboxUtils(); public: // New functions @@ -66,43 +75,43 @@ * @param aPrimaryBox primary mailbox for matching, if applicable * @return KErrNone or a system wide error code */ - TInt SetPhoneOwnerL( + IMPORT_C TInt SetPhoneOwnerL( CCalEntry& aCalEntry, TMsvId aPrimaryBox = KMsvNullIndexEntryId ); /** * If phone owner field hasn't been set so far, this method compares * mailboxowner's email address to organizer field and if no match - * was found compares each attendee to the mailboxowner's email address. - * If match was found, phone owner field is set, otherwise KErrNotFound + * was found compares each attendee to the mailboxowner's email address. + * If match was found, phone owner field is set, otherwise KErrNotFound * is returned. * * @param aCalEntry entry to modify * @param aPrimaryBox primary mailbox for matching, if applicable * @return KErrNone or a system wide error code */ - TInt SetPhoneOwnerL( + IMPORT_C TInt SetPhoneOwnerL( CCalEntry& aCalEntry, CFSMailClient& aMailClient, - CFSMailMessage& aMailMessage ); - + CFSMailMessage& aMailMessage ); + /** * Resolves the plugin to be used to current calendar entry. * Method retrieves phone owner from calendar entry and loops all - * FS Email mailboxes. + * FS Email mailboxes. * @param aEntry Reference to calendar entry. * @return Plugin ID for FS Email mailbox */ - TESMRMailPlugin FSEmailPluginForEntryL( const CCalEntry& aEntry ); + IMPORT_C TESMRMailPlugin FSEmailPluginForEntryL( + const CCalEntry& aEntry ); /** - * Resolves the mail box for current calendar entry. - * Method retrieves phone owner from calendar entry and loops all - * FS Email mailboxes. - * @param aEntry Reference to calendar entry. - * @return ID of the FS Email mailbox + * Tests if default mailbox supports certain capability. + * @param aCapability Capability to be tested + * @return ETrue if success, EFalse otherwise */ - TFSMailMsgId FSEmailMailBoxForEntryL( const CCalEntry& aEntry ); + IMPORT_C TBool DefaultMailboxSupportCapabilityL( + TMRMailboxCapability aCapability ); private: // Implementation CESMRFsMailboxUtils( @@ -116,9 +125,10 @@ const CCalUser& aUser, const RPointerArray& aMailBoxes, TInt& aMatchIndex ); - + CFSMailClient& MailClientL(); - + CFSMailBox* DefaultMailboxL(); + private: // Data /// Ref: Reference to S60 mailbox utilities CMRMailboxUtils& iMRMailboxUtils;