emailcontacts/remotecontactlookup/engine/inc/cpbkxremotecontactlookupprotocoladapter.inl
equal
deleted
inserted
replaced
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 } |
|