meetingrequest/mrbcplugin/bcmrevent/inc/cmrbcplugincmdhandler.h
author Simon Howkins <simonh@symbian.org>
Thu, 25 Nov 2010 12:13:04 +0000
branchRCL_3
changeset 83 31a5fbf5db1d
parent 16 4ce476e64c59
permissions -rw-r--r--
Adjusted to avoid exports, etc, from a top-level bld.inf

/*
* Copyright (c) 2009-2009 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:  Class implementing the RECAL customisation interface
*
*/

#ifndef CMRBCPLUGINCMDHANDLER_H
#define CMRBCPLUGINCMDHANDLER_H

#include <e32base.h>
#include <calencommandhandler.h>

class MCalenServices;
class CMRBCPluginResourceReader;
class CMRBCPluginEntryLoader;
class CMRBCPluginCreateNewMRCmd;
class CMRBCPluginOpenMRViewerCmd;

/**
 * CMRBCPluginCmdHandler is responsible for handling 
 * BC Plugin commands.
 */
NONSHARABLE_CLASS( CMRBCPluginCmdHandler ) : 
        public CBase,
        public MCalenCommandHandler
    {
public: // Construction and destruction
    
    /**
     * Creates and initializes new CMRBCPluginCmdHandler object.
     * @param aServices Reference to calendar services
     * @param aEntryLoader Reference to entry loader
     * @param aPluginResourceReader Reference to plug-in resource reader
     */
    static CMRBCPluginCmdHandler* NewL(
            MCalenServices& aServices );
    
    /**
     * C++ destructor
     */
    ~CMRBCPluginCmdHandler();
    
private: // From base class MCalenCommandHandler
    TBool HandleCommandL( const TCalenCommand& aCommand );
    TAny* CalenCommandHandlerExtensionL( TUid aExtensionUid );
    
private: // Implementation
    CMRBCPluginCmdHandler( 
            MCalenServices& aServices );
    void ConstructL();
    
private: // Data
    /// Ref: Reference to calen services object
    MCalenServices& iServices;
    };

#endif // CMRBCPLUGINCMDHANDLER_H

// EOF