meetingrequest/mrtasks/mrcaleventtaskplugin/inc/cmrcaleventtaskplugin.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2009-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 implementing the MR Cal Event Task Plugin interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRCALEVENTTASKPLUGIN_H
       
    19 #define CMRCALEVENTTASKPLUGIN_H
       
    20 
       
    21 // INCLUDES
       
    22 #include <e32base.h>
       
    23 
       
    24 #include "cesmrtaskfactory.h"
       
    25 
       
    26 // FORWARD DECLARATIONS
       
    27 
       
    28 
       
    29 // CLASS DECLARATIONS
       
    30 /**
       
    31  * This class is used for creating implement of view through ECom framework.
       
    32  */
       
    33 NONSHARABLE_CLASS( CMRCalEventTaskPlugin ) : public CESMRTaskFactory
       
    34     {
       
    35 public:
       
    36     /**
       
    37      * Creates new CMRCalEventTaskPlugin object.
       
    38      * @return New CMRCalEventTaskPlugin object
       
    39      */
       
    40     static CMRCalEventTaskPlugin* NewL( TAny* aCalDbMgr );
       
    41     
       
    42     /**
       
    43     * Destructor
       
    44     */
       
    45     ~CMRCalEventTaskPlugin();
       
    46     
       
    47 public: // From MESMRTaskFactory
       
    48     MESMRTask* CreateTaskL( TESMRCommand aCommand, MESMRCalEntry& aEntry );
       
    49 
       
    50 private: // Implementation
       
    51 
       
    52     CMRCalEventTaskPlugin( MESMRCalDbMgr& aCalDbMgr );
       
    53     
       
    54     MESMRTask* CreateStoreCalEventToDBTaskL(
       
    55             MESMRCalEntry& aEntry );
       
    56     MESMRTask* CreateCalEntryUiDeleteTaskL(
       
    57             MESMRCalEntry& aEntry );
       
    58     MESMRTask* CreateCalEntryUiEditTaskL(
       
    59             MESMRCalEntry& aEntry );
       
    60     MESMRTask* CreateTodoMarkAsDoneTaskL(
       
    61             MESMRCalEntry& aEntry );
       
    62     MESMRTask* CreateTodoMarkAsNotDoneTaskL(
       
    63             MESMRCalEntry& aEntry );
       
    64     MESMRTask* CreateMoveCalEntryToCurrentDBTaskL(
       
    65             MESMRCalEntry& aEntry );
       
    66     
       
    67 private: // Data
       
    68     /*
       
    69      * Reference to cal db manager
       
    70      * Not own.
       
    71      */
       
    72     MESMRCalDbMgr& iCalDbMgr;
       
    73     };
       
    74     
       
    75 #endif // CMRCALEVENTTASKPLUGIN_H
       
    76 
       
    77 // End of file