meetingrequest/mrbcplugin/bcmrevent/src/cmrbcmeetingrequestplugin.cpp
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 #include "cmrbcmeetingrequestplugin.h"
       
    18 #include "cmrbcplugincmdhandler.h"
       
    19 #include "emailtrace.h"
       
    20 
       
    21 namespace { // codescanner::namespace
       
    22 
       
    23 } // namespace
       
    24 
       
    25 // -----------------------------------------------------------------------------
       
    26 // CMRBCMeetingRequestPlugin::CMRBCMeetingRequestPlugin
       
    27 // -----------------------------------------------------------------------------
       
    28 //
       
    29 CMRBCMeetingRequestPlugin::CMRBCMeetingRequestPlugin(
       
    30         MCalenServices& aCalenServices )
       
    31 :   iCalenServices( aCalenServices )
       
    32     {
       
    33     
       
    34     }
       
    35 
       
    36 // -----------------------------------------------------------------------------
       
    37 // CMRBCMeetingRequestPlugin::~CMRBCMeetingRequestPlugin
       
    38 // -----------------------------------------------------------------------------
       
    39 //
       
    40 CMRBCMeetingRequestPlugin::~CMRBCMeetingRequestPlugin()
       
    41     {
       
    42     FUNC_LOG;
       
    43     delete iCommandHandler;
       
    44     }
       
    45         
       
    46 // -----------------------------------------------------------------------------
       
    47 // CMRBCMeetingRequestPlugin::ConstructL
       
    48 // -----------------------------------------------------------------------------
       
    49 //
       
    50 void CMRBCMeetingRequestPlugin::ConstructL()
       
    51     {
       
    52     iCommandHandler = CMRBCPluginCmdHandler::NewL( iCalenServices );
       
    53     }
       
    54 
       
    55 // -----------------------------------------------------------------------------
       
    56 // CMRBCMeetingRequestPlugin::NewL
       
    57 // -----------------------------------------------------------------------------
       
    58 //
       
    59 CMRBCMeetingRequestPlugin* CMRBCMeetingRequestPlugin::NewL(
       
    60         TAny* aCalenServices )
       
    61     {
       
    62     FUNC_LOG;
       
    63     
       
    64     MCalenServices* calenServices = 
       
    65         static_cast<MCalenServices*>( aCalenServices );
       
    66         
       
    67     CMRBCMeetingRequestPlugin* self = 
       
    68             new (ELeave) CMRBCMeetingRequestPlugin( *calenServices );
       
    69     CleanupStack::PushL( self );
       
    70     self->ConstructL();
       
    71     CleanupStack::Pop( self );
       
    72     return self;
       
    73     }
       
    74 
       
    75 // -----------------------------------------------------------------------------
       
    76 // CMRBCMeetingRequestPlugin::CommandHandler
       
    77 // -----------------------------------------------------------------------------
       
    78 //
       
    79 MCalenCommandHandler* CMRBCMeetingRequestPlugin::CommandHandler()
       
    80     {
       
    81     FUNC_LOG;
       
    82     
       
    83     return iCommandHandler;
       
    84     }
       
    85 
       
    86 // EOF