meetingrequest/mrbcplugin/bcmrevent/inc/cmrbcplugincmdhandler.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 RECAL customisation interface
       
    15 *
       
    16 */
       
    17 
       
    18 #ifndef CMRBCPLUGINCMDHANDLER_H
       
    19 #define CMRBCPLUGINCMDHANDLER_H
       
    20 
       
    21 #include <e32base.h>
       
    22 #include <calencommandhandler.h>
       
    23 
       
    24 class MCalenServices;
       
    25 class CMRBCPluginResourceReader;
       
    26 class CMRBCPluginEntryLoader;
       
    27 class CMRBCPluginCreateNewMRCmd;
       
    28 class CMRBCPluginOpenMRViewerCmd;
       
    29 
       
    30 /**
       
    31  * CMRBCPluginCmdHandler is responsible for handling 
       
    32  * BC Plugin commands.
       
    33  */
       
    34 NONSHARABLE_CLASS( CMRBCPluginCmdHandler ) : 
       
    35         public CBase,
       
    36         public MCalenCommandHandler
       
    37     {
       
    38 public: // Construction and destruction
       
    39     
       
    40     /**
       
    41      * Creates and initializes new CMRBCPluginCmdHandler object.
       
    42      * @param aServices Reference to calendar services
       
    43      * @param aEntryLoader Reference to entry loader
       
    44      * @param aPluginResourceReader Reference to plug-in resource reader
       
    45      */
       
    46     static CMRBCPluginCmdHandler* NewL(
       
    47             MCalenServices& aServices );
       
    48     
       
    49     /**
       
    50      * C++ destructor
       
    51      */
       
    52     ~CMRBCPluginCmdHandler();
       
    53     
       
    54 private: // From base class MCalenCommandHandler
       
    55     TBool HandleCommandL( const TCalenCommand& aCommand );
       
    56     TAny* CalenCommandHandlerExtensionL( TUid aExtensionUid );
       
    57     
       
    58 private: // Implementation
       
    59     CMRBCPluginCmdHandler( 
       
    60             MCalenServices& aServices );
       
    61     void ConstructL();
       
    62     
       
    63 private: // Data
       
    64     /// Ref: Reference to calen services object
       
    65     MCalenServices& iServices;
       
    66     };
       
    67 
       
    68 #endif // CMRBCPLUGINCMDHANDLER_H
       
    69 
       
    70 // EOF