contentctrl_plat/ds_agenda_handler_plugin_api/inc/nsmlagendaadapterhandler.inl
branchRCL_3
changeset 25 4f0867e42d62
equal deleted inserted replaced
24:8e7494275d3a 25:4f0867e42d62
       
     1 /*
       
     2 * Copyright (c) 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:  
       
    15 *
       
    16 */
       
    17 
       
    18 // INCLUDE FILES
       
    19 #include <ecom.h>
       
    20 #include "nsmlagendaadapterhandler.h"
       
    21 
       
    22 // ============================ MEMBER FUNCTIONS ===============================
       
    23 
       
    24 // ----------------------------------------------------------------------------
       
    25 // CNSmlAgendaAdapterHandler::NewL
       
    26 // Two phase construction
       
    27 // ----------------------------------------------------------------------------
       
    28 inline CNSmlAgendaAdapterHandler* CNSmlAgendaAdapterHandler::NewL( TUid aImpUid)
       
    29     {
       
    30     TAny* implementation = REComSession::CreateImplementationL ( aImpUid,
       
    31     _FOFF ( CNSmlAgendaAdapterHandler, iDtor_ID_Key ));
       
    32     CNSmlAgendaAdapterHandler* self = REINTERPRET_CAST( CNSmlAgendaAdapterHandler*, implementation );
       
    33     return self;
       
    34     }
       
    35 
       
    36 // ----------------------------------------------------------------------------
       
    37 // CNSmlAgendaAdapterHandler::~CNSmlAgendaAdapterHandler
       
    38 // Destructor
       
    39 // ----------------------------------------------------------------------------
       
    40 inline CNSmlAgendaAdapterHandler::~CNSmlAgendaAdapterHandler()
       
    41     {
       
    42     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    43     delete iOpaqueData;
       
    44     }