meetingrequest/mrtasks/mrcaleventtaskplugin/inc/cmrtodomarkasdonetask.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 todo mark as done task
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 #ifndef C_ESMRTODOMARKASDONETASK_H
       
    20 #define C_ESMRTODOMARKASDONETASK_H
       
    21 
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "mesmrtask.h"
       
    25 
       
    26 // Forward declarations
       
    27 class MESMRCalEntry;
       
    28 class MESMRCalDbMgr;
       
    29 
       
    30 /**
       
    31  * CESMRTodoMarkAsDoneTask is responsibe for marking todo as done
       
    32  *
       
    33  * @lib esmrtasks.lib
       
    34  */
       
    35 NONSHARABLE_CLASS( CESMRTodoMarkAsDoneTask ) : public CBase,
       
    36                                                public MESMRTask
       
    37     {
       
    38 public:
       
    39     /**
       
    40      * Creates and initializes new CESMRTodoMarkAsDoneTask object.
       
    41      * Ownership is transferred to caller.
       
    42      */
       
    43     static CESMRTodoMarkAsDoneTask* NewL( MESMRCalEntry& aEntry, 
       
    44                                           MESMRCalDbMgr& aCalDbMgr );
       
    45 
       
    46     /**
       
    47      * C++ destructor.
       
    48      */
       
    49     ~CESMRTodoMarkAsDoneTask();
       
    50 
       
    51 public:// From MESMRTask
       
    52     void ExecuteTaskL();
       
    53 
       
    54 private:
       
    55     CESMRTodoMarkAsDoneTask( MESMRCalEntry& aEntry, 
       
    56                              MESMRCalDbMgr& aCalDbMgr );
       
    57     void ConstructL();
       
    58     void MarkTodoAsDoneL();
       
    59     
       
    60 private: // Data
       
    61     /**
       
    62     * Reference to ES MR calendar entry
       
    63     * Not Own.
       
    64     */
       
    65     MESMRCalEntry& iEntry;
       
    66     /**
       
    67     * Reference to cal db manager
       
    68     * Not own.
       
    69     */
       
    70     MESMRCalDbMgr& iCalDbMgr;
       
    71     };
       
    72 
       
    73 #endif // C_ESMRTODOMARKASDONETASK_H