|
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 // PPP MCPR Factory |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include <ecom/implementationproxy.h> |
|
24 #include "pppmcprfactory.h" |
|
25 #include "pppmcpr.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 __CFLOG_ACTIVE |
|
33 #define KPPPMCprFactoryTag KESockMetaConnectionTag |
|
34 _LIT8(KPPPMCprFactorySubTag, "pppmcprfactory"); |
|
35 #endif |
|
36 |
|
37 using namespace ESock; |
|
38 |
|
39 //-========================================================= |
|
40 // |
|
41 // CPppMetaConnectionProviderFactory methods |
|
42 // |
|
43 //-========================================================= |
|
44 CPppMetaConnectionProviderFactory* CPppMetaConnectionProviderFactory::NewL(TAny* aParentContainer) |
|
45 { |
|
46 __CFLOG_VAR((KPPPMCprFactoryTag, KPPPMCprFactorySubTag, _L8("CPppMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer)); |
|
47 return new (ELeave) CPppMetaConnectionProviderFactory(TUid::Uid(CPppMetaConnectionProviderFactory::iUid), *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer))); |
|
48 } |
|
49 |
|
50 CPppMetaConnectionProviderFactory::CPppMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer) |
|
51 : CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer) |
|
52 { |
|
53 __CFLOG_VAR((KPPPMCprFactoryTag, KPPPMCprFactorySubTag, _L8("CPppMetaConnectionProviderFactory %08x:\tCPppMetaConnectionProviderFactory Constructor"), this)); |
|
54 } |
|
55 |
|
56 ACommsFactoryNodeId* CPppMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery) |
|
57 { |
|
58 const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery); |
|
59 CMetaConnectionProviderBase* provider = CPppMetaConnectionProvider::NewL(*this,query.iProviderInfo); |
|
60 |
|
61 ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); |
|
62 |
|
63 return provider; |
|
64 } |
|
65 |