|
1 // Copyright (c) 2006-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 // Pdp MCPR Factory |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include <ecom/implementationproxy.h> |
|
24 #include "pdpmcprfactory.h" |
|
25 #include "pdpmcpr.h" |
|
26 #include <comms-infras/ss_log.h> |
|
27 #include <ss_glob.h> |
|
28 #include <ecom/ecom.h> |
|
29 |
|
30 #include <comms-infras/ss_msgintercept.h> |
|
31 |
|
32 #ifdef _DEBUG |
|
33 #define KPdpMCprFactoryTag KESockMetaConnectionTag |
|
34 _LIT8(KPdpMCprFactorySubTag, "pdpmcprfactory"); |
|
35 #endif |
|
36 |
|
37 using namespace ESock; |
|
38 |
|
39 //-========================================================= |
|
40 // |
|
41 // CPdpMetaConnectionProviderFactory methods |
|
42 // |
|
43 //-========================================================= |
|
44 CPdpMetaConnectionProviderFactory* CPdpMetaConnectionProviderFactory::NewL(TAny* aParentContainer) |
|
45 { |
|
46 __CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer)); |
|
47 return new (ELeave) CPdpMetaConnectionProviderFactory(TUid::Uid(CPdpMetaConnectionProviderFactory::iUid), *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer))); |
|
48 } |
|
49 |
|
50 CPdpMetaConnectionProviderFactory::CPdpMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer) |
|
51 : CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer) |
|
52 { |
|
53 __CFLOG_VAR((KPdpMCprFactoryTag, KPdpMCprFactorySubTag, _L8("CPdpMetaConnectionProviderFactory %08x:\tCPdpMetaConnectionProviderFactory Constructor"), this)); |
|
54 } |
|
55 |
|
56 ESock::ACommsFactoryNodeId* CPdpMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery) |
|
57 { |
|
58 const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery); |
|
59 CMetaConnectionProviderBase* provider = CPdpMetaConnectionProvider::NewL(*this, query.iProviderInfo); |
|
60 |
|
61 ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); |
|
62 |
|
63 return provider; |
|
64 } |
|
65 |