meetingrequest/mrtasks/inc/cesmrsendmrfsmailreplytask.h
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
     1 /*
       
     2 * Copyright (c) 2007-2009 Nokia Corporation and/or its subsidiary(-ies). 
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:  Class definition for sending meeting request via FS EMail
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ESMRSENDMRFSMAILREPLYTASK_H
       
    20 #define C_ESMRSENDMRFSMAILREPLYTASK_H
       
    21 
       
    22 #include "cesmrtaskbase.h"
       
    23 
       
    24 //Forward declarations
       
    25 class MESMRCalDbMgr;
       
    26 class MESMRMeetingRequestEntry;
       
    27 class CMRMailboxUtils;
       
    28 class CESMRFSEMailManager;
       
    29 class CESMRCalUserUtil;
       
    30 class CCalEntry;
       
    31 
       
    32 /**
       
    33  *  Class definition for sending meeting request via FS EMail.
       
    34  *
       
    35  *  @lib esmrtasks.lib
       
    36  */
       
    37 NONSHARABLE_CLASS( CESMRSendMRFSMailReplyTask ) :
       
    38         public CESMRTaskBase
       
    39     {
       
    40 public: // Construction and destruction
       
    41 
       
    42     /**
       
    43      * Creates and initializes new CESMRCancelMRFSEmailTask object.
       
    44      * Ownership is transferred to caller.
       
    45      * @param aCalDbMgr Reference to cal db manager.
       
    46      * @param aEntry Reference to ES MR calendar entry.
       
    47      * @param aMRMailboxUtils Reference mr mailbox utilities.
       
    48      */
       
    49     static CESMRSendMRFSMailReplyTask* NewL(
       
    50             MESMRCalDbMgr& aCalDbMgr,
       
    51             MESMRMeetingRequestEntry& aEntry,
       
    52             CMRMailboxUtils& aMRMailboxUtils,
       
    53             TBool aReplyAll);
       
    54 
       
    55     /**
       
    56      * C++ destructor.
       
    57      */
       
    58     ~CESMRSendMRFSMailReplyTask();
       
    59 
       
    60 public:// From MESMRTask
       
    61     void ExecuteTaskL();
       
    62 
       
    63 private:
       
    64     CESMRSendMRFSMailReplyTask(
       
    65             MESMRCalDbMgr& aCalDbMgr,
       
    66             MESMRMeetingRequestEntry& aEntry,
       
    67             CMRMailboxUtils& aMRMailboxUtils,
       
    68             TBool aReplyAll);
       
    69 
       
    70     void ConstructL();
       
    71     void ConstructMailL();
       
    72     void AddAttendeesL();
       
    73     HBufC* ResolveUsedMailboxUserAddressLC();
       
    74     TInt LaunchFSEmailEditorL(TBool aReplAll);
       
    75 
       
    76 private: // Data
       
    77     /// Own: FS email manager
       
    78     CESMRFSEMailManager* iEmailMgr;
       
    79     /// Own: Pointer to calendar entry to be sent
       
    80     CCalEntry* iEntryToSend;
       
    81     /// Own: Caluser utility object
       
    82     CESMRCalUserUtil* iCaluserUtil;
       
    83     
       
    84     TBool iReplyAll;
       
    85     };
       
    86 
       
    87 #endif  // C_ESMRSENDMRFSMAILREPLYTASK_H