meetingrequest/mrbcplugin/inc/cmrbceventplugin.inl
branchRCL_3
changeset 12 4ce476e64c59
equal deleted inserted replaced
11:0396474f30f5 12:4ce476e64c59
       
     1 /*
       
     2 * Copyright (c) 2007 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:  esmricalviewer inline methods 
       
    15 *
       
    16 */
       
    17 
       
    18 #include <ecom/ecom.h>
       
    19 
       
    20 // -----------------------------------------------------------------------------
       
    21 // CMRBCEventPlugin::NewL
       
    22 // -----------------------------------------------------------------------------
       
    23 //
       
    24 inline CMRBCEventPlugin* CMRBCEventPlugin::NewL(
       
    25        TUid aUid,
       
    26        MCalenServices& aCalenServices )
       
    27     {
       
    28     TAny* param = static_cast<TAny*>( &aCalenServices );
       
    29     
       
    30     TAny* ptr = REComSession::CreateImplementationL(
       
    31             aUid,
       
    32             _FOFF(CMRBCEventPlugin, iDtor_ID_Key ),
       
    33             param );
       
    34 
       
    35     return reinterpret_cast<CMRBCEventPlugin*>(ptr);
       
    36     }
       
    37 
       
    38 // -----------------------------------------------------------------------------
       
    39 // CMRBCEventPlugin::~CMRBCEventPlugin
       
    40 // -----------------------------------------------------------------------------
       
    41 //
       
    42 inline CMRBCEventPlugin::~CMRBCEventPlugin()
       
    43     {
       
    44     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    45     }
       
    46 
       
    47 // EOF