equal
deleted
inserted
replaced
|
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
|
2 // All rights reserved. |
|
3 // This component and the accompanying materials are made available |
|
4 // under the terms of "Eclipse Public License v1.0" |
|
5 // which accompanies this distribution, and is available |
|
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // |
|
15 |
|
16 #include "cpnpservicediscoverybase.h" |
|
17 #include <ecom/ecomresolverparams.h> |
|
18 #include <ecom/ecom.h> |
|
19 |
|
20 CPnPServiceDiscoveryBase* CPnPServiceDiscoveryBase::NewL( TUint aTierID ) |
|
21 { |
|
22 _LIT8(KClient,"/Client"); |
|
23 TBuf8<128> tierId; |
|
24 tierId.Num(aTierID); |
|
25 tierId.Append(KClient); |
|
26 // Set resolving parameters |
|
27 TEComResolverParams resolverParams; |
|
28 resolverParams.SetDataType(tierId); |
|
29 return (REINTERPRET_CAST(CPnPServiceDiscoveryBase*, |
|
30 REComSession::CreateImplementationL(KPnPInterfaceId,_FOFF(CPnPServiceDiscoveryBase, iEcomDtorID),resolverParams))); |
|
31 } |
|
32 |
|
33 EXPORT_C CPnPServiceDiscoveryBase::CPnPServiceDiscoveryBase() |
|
34 { |
|
35 } |
|
36 |
|
37 EXPORT_C CPnPServiceDiscoveryBase::~CPnPServiceDiscoveryBase() |
|
38 { |
|
39 if (iEcomDtorID.iUid) |
|
40 { |
|
41 REComSession::DestroyedImplementation(iEcomDtorID); |
|
42 } |
|
43 } |