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