emailcontacts/remotecontactlookup/engine/inc/cpbkxremotecontactlookupprotocoladapter.inl
branchRCL_3
changeset 12 4ce476e64c59
parent 11 0396474f30f5
child 13 8592a65ad3fb
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:  Implementation of the class CPbkxRemoteContactLookupProtocolAdapter
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 // -----------------------------------------------------------------------------
       
    20 // CPbkxRemoteContactLookupProtocolAdapter::NewL
       
    21 // -----------------------------------------------------------------------------
       
    22 //
       
    23 inline CPbkxRemoteContactLookupProtocolAdapter* CPbkxRemoteContactLookupProtocolAdapter::NewL(
       
    24     TUid aProtocolUid,
       
    25     MPbkxRemoteContactLookupProtocolEnv& aProtocolEnv )
       
    26     {
       
    27     CPbkxRemoteContactLookupProtocolAdapter* self = NULL;
       
    28         
       
    29 	TAny* interface = REComSession::CreateImplementationL (
       
    30 		aProtocolUid, 
       
    31 		_FOFF( CPbkxRemoteContactLookupProtocolAdapter, iDtor_ID_Key ),
       
    32 		&aProtocolEnv );
       
    33 
       
    34 	return reinterpret_cast< CPbkxRemoteContactLookupProtocolAdapter* >( interface );
       
    35     }
       
    36     
       
    37 // -----------------------------------------------------------------------------
       
    38 // CPbkxRemoteContactLookupProtocolAdapter::~CPbkxRemoteContactLookupProtocolAdapter
       
    39 // -----------------------------------------------------------------------------
       
    40 //
       
    41 inline CPbkxRemoteContactLookupProtocolAdapter::~CPbkxRemoteContactLookupProtocolAdapter()
       
    42     {
       
    43     REComSession::DestroyedImplementation( iDtor_ID_Key );
       
    44     }