meetingrequest/mrbcplugin/inc/cmrbcpluginentryloader.h
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2008 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: MBUtils ECOM definition
       
    15 *
       
    16 */
       
    17 #ifndef C_MRBCPLUGINENTRYLOADER_H
       
    18 #define C_MRBCPLUGINENTRYLOADER_H
       
    19 
       
    20 #include <e32base.h>
       
    21 
       
    22 class CCalEntry;
       
    23 class MCalenServices;
       
    24 
       
    25 /**
       
    26   * CMRBcPluginEntryLoader is responsible for loafding the correct
       
    27   * entry from the calendar database for handling. 
       
    28   */
       
    29 NONSHARABLE_CLASS( CMRBCPluginEntryLoader ) : public CBase
       
    30     {
       
    31 public: // Construction and destruction
       
    32     
       
    33     /**
       
    34      * Creates and initalizes new CMRBcPluginEntryLoader object.
       
    35      * @param aServices Reference to calendar services
       
    36      * @return pointer to new CMRBcPluginEntryLoader object 
       
    37      */
       
    38     static CMRBCPluginEntryLoader* NewL( MCalenServices& aServices );
       
    39     
       
    40     /**
       
    41      * C++ destructor
       
    42      */
       
    43     ~CMRBCPluginEntryLoader();
       
    44 
       
    45 public: // Interface
       
    46     
       
    47     /**
       
    48      * Updates the entry from the database.
       
    49      */
       
    50     void UpdateEntryFromDatabaseL();
       
    51     
       
    52     /**
       
    53      * Fetches the reference to entry
       
    54      * @return Reference to entry
       
    55      */
       
    56     CCalEntry& Entry();
       
    57     
       
    58 private: // Implementation
       
    59     CMRBCPluginEntryLoader( MCalenServices& aServices );
       
    60     void ConstructL();
       
    61     
       
    62 private:
       
    63     /// Ref: Reference to calendar services
       
    64     MCalenServices& iServices;
       
    65     /// Own: Calendar entry
       
    66     CCalEntry* iEntry;
       
    67     };
       
    68 
       
    69 #endif
       
    70 
       
    71 // EOF