meetingrequest/mrentry/inc/cesmrfsmailboxutils.h
branchRCL_3
changeset 35 e64954c2c8e2
parent 33 da5135c61bad
equal deleted inserted replaced
34:cd2816114bd1 35:e64954c2c8e2
    18 #ifndef CESMRFSMAILBOXUTILS_H
    18 #ifndef CESMRFSMAILBOXUTILS_H
    19 #define CESMRFSMAILBOXUTILS_H
    19 #define CESMRFSMAILBOXUTILS_H
    20 
    20 
    21 #include <e32base.h>
    21 #include <e32base.h>
    22 #include <cmrmailboxutils.h>
    22 #include <cmrmailboxutils.h>
       
    23 #include <calcommon.h>
       
    24 
    23 #include "esmrdef.h"
    25 #include "esmrdef.h"
    24 #include "cfsmailcommon.h"
    26 #include "cfsmailcommon.h"
    25 
    27 
    26 class CFSMailClient;
    28 class CFSMailClient;
    27 class CFSMailMessage;
    29 class CFSMailMessage;
    33  * Utility class for FS mailbox
    35  * Utility class for FS mailbox
    34  */
    36  */
    35 NONSHARABLE_CLASS( CESMRFsMailboxUtils ): public CBase
    37 NONSHARABLE_CLASS( CESMRFsMailboxUtils ): public CBase
    36     {
    38     {
    37 public:
    39 public:
    38     
    40 
    39     /**
    41     /**
    40      * Enumeration for mailbox capabilities
    42      * Enumeration for mailbox capabilities
    41      */
    43      */
    42     enum TMRMailboxCapability
    44     enum TMRMailboxCapability
    43         {
    45         {
    44         EMRCapabilityAttachment
    46         EMRCapabilityAttachment
    45         };    
    47         };
    46     
    48 
    47 public: // Constructors and destructors
    49 public: // Constructors and destructors
    48 
    50 
    49     /**
    51     /**
    50     * Constructs CESMRFsMailboxUtils object.
    52     * Constructs CESMRFsMailboxUtils object.
    51     *
    53     *
   110      * @param aCapability Capability to be tested
   112      * @param aCapability Capability to be tested
   111      * @return ETrue if success, EFalse otherwise
   113      * @return ETrue if success, EFalse otherwise
   112      */
   114      */
   113     IMPORT_C TBool DefaultMailboxSupportCapabilityL(
   115     IMPORT_C TBool DefaultMailboxSupportCapabilityL(
   114             TMRMailboxCapability aCapability );
   116             TMRMailboxCapability aCapability );
   115     
   117 
       
   118     /**
       
   119      * Gets the calendar database id used by mail plugin
       
   120      *
       
   121      * @param aPlugin mail plugin in use
       
   122      * @param aDbId on return contains the database id or KNullFileId
       
   123      *              if plugin does not provide database id information.
       
   124      */
       
   125     void GetCalendarDatabaseIdL(
       
   126             TESMRMailPlugin aPlugin,
       
   127             TCalFileId& aDbId );
       
   128 
   116 private: // Implementation
   129 private: // Implementation
   117     CESMRFsMailboxUtils(
   130     CESMRFsMailboxUtils(
   118             CMRMailboxUtils& aMailboxUtils );
   131             CMRMailboxUtils& aMailboxUtils );
   119     void ConstructL();
   132     void ConstructL();
   120     CCalUser* PhoneOwnerL(
   133     CCalUser* PhoneOwnerL(
   126             const RPointerArray<CFSMailBox>& aMailBoxes,
   139             const RPointerArray<CFSMailBox>& aMailBoxes,
   127             TInt& aMatchIndex );
   140             TInt& aMatchIndex );
   128 
   141 
   129     CFSMailClient& MailClientL();
   142     CFSMailClient& MailClientL();
   130     CFSMailBox* DefaultMailboxL();
   143     CFSMailBox* DefaultMailboxL();
   131     
   144 
   132 private: // Data
   145 private: // Data
   133     /// Ref: Reference to S60 mailbox utilities
   146     /// Ref: Reference to S60 mailbox utilities
   134     CMRMailboxUtils& iMRMailboxUtils;
   147     CMRMailboxUtils& iMRMailboxUtils;
   135     /// Own: Mail client object
   148     /// Own: Mail client object
   136     CFSMailClient* iMailClient;
   149     CFSMailClient* iMailClient;