1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
16 /** |
16 /** |
17 @file |
17 @file |
18 @internalComponent |
18 @internalComponent |
19 */ |
19 */ |
20 |
20 |
|
21 |
|
22 #include "OstTraceDefinitions.h" |
|
23 #ifdef OST_TRACE_COMPILER_IN_USE |
|
24 #include "pdptiermanagerfactoryTraces.h" |
|
25 #endif |
|
26 |
21 #include <comms-infras/ss_log.h> |
27 #include <comms-infras/ss_log.h> |
22 #include <ecom/ecom.h> |
28 #include <ecom/ecom.h> |
23 #include "pdptiermanagerfactory.h" |
29 #include "pdptiermanagerfactory.h" |
24 #include "pdptiermanager.h" |
30 #include "pdptiermanager.h" |
25 |
|
26 #ifdef __CFLOG_ACTIVE |
|
27 #define KPDPTierMgrTag KESockMetaConnectionTag |
|
28 _LIT8(KPDPTierMgrSubTag, "pdptiermgr"); |
|
29 #endif |
|
30 |
31 |
31 // ---------------- Factory Methods ---------------- |
32 // ---------------- Factory Methods ---------------- |
32 /** |
33 /** |
33 Creates a PDP Tier Manager Factory |
34 Creates a PDP Tier Manager Factory |
34 This function also acts as the single ECom entry point into this object. |
35 This function also acts as the single ECom entry point into this object. |
35 @param aParentContainer The parent factory container which owns this factory |
36 @param aParentContainer The parent factory container which owns this factory |
36 @return |
37 @return |
37 */ |
38 */ |
38 CPDPTierManagerFactory* CPDPTierManagerFactory::NewL(TAny* aParentContainer) |
39 CPDPTierManagerFactory* CPDPTierManagerFactory::NewL(TAny* aParentContainer) |
39 { |
40 { |
40 __CFLOG_VAR((KPDPTierMgrTag, KPDPTierMgrSubTag, _L8("CPDPTierManagerFactory::\tNewL(%08x)"), aParentContainer)); |
41 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CPDPTIERMANAGERFACTORY_NEWL_1, "CPDPTierManagerFactory::\tNewL(%08x)", aParentContainer); |
41 return new (ELeave) CPDPTierManagerFactory(TUid::Uid(CPDPTierManagerFactory::EUid), TUid::Uid(CPDPTierManagerFactory::EUid),*(reinterpret_cast<ESock::CTierManagerFactoryContainer*>(aParentContainer))); |
42 return new (ELeave) CPDPTierManagerFactory(TUid::Uid(CPDPTierManagerFactory::EUid), TUid::Uid(CPDPTierManagerFactory::EUid),*(reinterpret_cast<ESock::CTierManagerFactoryContainer*>(aParentContainer))); |
42 } |
43 } |
43 /** |
44 /** |
44 Constructor for the PDP Tier Manager Factory |
45 Constructor for the PDP Tier Manager Factory |
45 @param aFactoryId The UID which this factory can be looked up by |
46 @param aFactoryId The UID which this factory can be looked up by |