meetingrequest/mrtasks/mrtaskplugin/inc/cesmrsendmrrespmailtask.h
branchRCL_3
changeset 12 4ce476e64c59
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:  Interface definition for ESMR send mr response via mail task
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ESMRSENDMRRESPMAILTASK_H
       
    20 #define C_ESMRSENDMRRESPMAILTASK_H
       
    21 
       
    22 //<cmail>
       
    23 #include "esmrdef.h"
       
    24 //</cmail>
       
    25 #include "cesmrtaskbase.h"
       
    26 
       
    27 class CCalEntry;
       
    28 
       
    29 /**
       
    30  * Implementation for sending meeting request response over MTM based
       
    31  * mail box.
       
    32  *
       
    33  * @lib esmrtasks.lib
       
    34  */
       
    35 NONSHARABLE_CLASS( CESMRSendMRRespMailTask ) : public CESMRTaskBase
       
    36     {
       
    37 public: // Construction and destruction
       
    38 
       
    39     /**
       
    40      * Creates and initializes new CESMRSendMRRespMailTask object.
       
    41      * Ownership is transferred to caller.
       
    42      * @param aCommand Response command.
       
    43      * @param aResponseType Response message type.
       
    44      * @param aCalDbMgr Reference to cal db manager.
       
    45      * @param aEntry Reference to ES MR calendar entry.
       
    46      * @param aMRMailboxUtils Reference mr mailbox utilities.
       
    47      */
       
    48     static CESMRSendMRRespMailTask* NewL(
       
    49             TESMRCommand aCommand,
       
    50             MESMRCalDbMgr& aCalDbMgr,
       
    51             MESMRMeetingRequestEntry& aEntry,
       
    52             CMRMailboxUtils& aMRMailboxUtils,
       
    53             TESMRResponseType aResponseType,
       
    54             const TDesC& aResponseMessage );
       
    55 
       
    56     /**
       
    57      * C++ destructor.
       
    58      */
       
    59     ~CESMRSendMRRespMailTask();
       
    60 
       
    61 public:// From MESMRTask
       
    62     void ExecuteTaskL();
       
    63 
       
    64 private:
       
    65     CESMRSendMRRespMailTask(
       
    66             TESMRCommand aCommand,
       
    67             MESMRCalDbMgr& aCalDbMgr,
       
    68             MESMRMeetingRequestEntry& aEntry,
       
    69             CMRMailboxUtils& aMRMailboxUtils,
       
    70             TESMRResponseType aResponseType );
       
    71 
       
    72     void ConstructL(
       
    73             const TDesC& aResponseMessage );
       
    74 
       
    75     void SendResponseMessageL();
       
    76 
       
    77 private: // Data
       
    78     /**
       
    79     * Response command
       
    80     */
       
    81     TESMRCommand iCommand;
       
    82 
       
    83     /**
       
    84     * Response message type
       
    85     */
       
    86     TESMRResponseType iResponseType;
       
    87 
       
    88     /**
       
    89     * Response message text
       
    90     * Own.
       
    91     */
       
    92     HBufC* iResponseMessage;
       
    93     
       
    94     /**
       
    95     * Response entry
       
    96     * Own.
       
    97     */
       
    98     CCalEntry* iResponseEntry;
       
    99     };
       
   100 
       
   101 #endif // C_ESMRSENDMRRESPMAILTASK_H