meetingrequest/mrtasks/inc/cesmrstoremrtask.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:  Interface definition for ESMR send mr response via mail task
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ESMRSTOREMRTASK_H
       
    20 #define C_ESMRSTOREMRTASK_H
       
    21 
       
    22 #include "cesmrtaskbase.h"
       
    23 
       
    24 /**
       
    25  * CESMRStoreMRTask is responsibe for storing MR to calendar DB.
       
    26  *
       
    27  * @lib esmrtasks.lib
       
    28  */
       
    29 NONSHARABLE_CLASS( CESMRStoreMRTask ) : public CESMRTaskBase
       
    30     {
       
    31 public:
       
    32     /**
       
    33      * Creates and initializes new CESMRStoreMRTask object.
       
    34      * Ownership is transferred to caller.
       
    35      * @param aCalDbMgr Reference to cal db manager.
       
    36      * @param aEntry Reference to ES MR calendar entry.
       
    37      * @param aMRMailboxUtils Reference mr mailbox utilities.
       
    38      */
       
    39     static CESMRStoreMRTask* NewL(
       
    40         MESMRCalDbMgr& aCalDbMgr,
       
    41         MESMRMeetingRequestEntry& aEntry,
       
    42         CMRMailboxUtils& aMRMailboxUtils );
       
    43 
       
    44     /**
       
    45      * C++ destructor.
       
    46      */
       
    47     ~CESMRStoreMRTask();
       
    48 
       
    49 public:// From MESMRTask
       
    50     void ExecuteTaskL();
       
    51 
       
    52 private:
       
    53     CESMRStoreMRTask(
       
    54             MESMRCalDbMgr& aCalDbMgr,
       
    55             MESMRMeetingRequestEntry& aEntry,
       
    56             CMRMailboxUtils& aMRMailboxUtils );
       
    57 
       
    58     void ConstructL();
       
    59     void StoreEntryToDbL();
       
    60     };
       
    61 
       
    62 #endif // C_ESMRSTOREMRTASK_H