|
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 /** |
|
17 @file |
|
18 @internalComponent |
|
19 */ |
|
20 |
|
21 #include <comms-infras/ss_log.h> |
|
22 #include <ecom/ecom.h> |
|
23 #include "pdptiermanagerfactory.h" |
|
24 #include "pdptiermanager.h" |
|
25 |
|
26 #ifdef __CFLOG_ACTIVE |
|
27 #define KPDPTierMgrTag KESockMetaConnectionTag |
|
28 _LIT8(KPDPTierMgrSubTag, "pdptiermgr"); |
|
29 #endif |
|
30 |
|
31 // ---------------- Factory Methods ---------------- |
|
32 /** |
|
33 Creates a PDP Tier Manager Factory |
|
34 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 @return |
|
37 */ |
|
38 CPDPTierManagerFactory* CPDPTierManagerFactory::NewL(TAny* aParentContainer) |
|
39 { |
|
40 __CFLOG_VAR((KPDPTierMgrTag, KPDPTierMgrSubTag, _L8("CPDPTierManagerFactory::\tNewL(%08x)"), aParentContainer)); |
|
41 return new (ELeave) CPDPTierManagerFactory(TUid::Uid(CPDPTierManagerFactory::EUid), TUid::Uid(CPDPTierManagerFactory::EUid),*(reinterpret_cast<ESock::CTierManagerFactoryContainer*>(aParentContainer))); |
|
42 } |
|
43 /** |
|
44 Constructor for the PDP Tier Manager Factory |
|
45 @param aFactoryId The UID which this factory can be looked up by |
|
46 @param aParentContainer The parent factory container which owns this factory |
|
47 */ |
|
48 CPDPTierManagerFactory::CPDPTierManagerFactory(TUid aTierTypeId, TUid aFactoryUid, ESock::CTierManagerFactoryContainer& aParentContainer) |
|
49 : CTierManagerFactoryBase(aTierTypeId, aFactoryUid, aParentContainer) |
|
50 { |
|
51 } |
|
52 /** |
|
53 Creates the actual Tier Manager |
|
54 */ |
|
55 ESock::ACommsFactoryNodeId* CPDPTierManagerFactory::DoCreateObjectL(ESock::TFactoryQueryBase& /* aQuery */) |
|
56 { |
|
57 return CPDPTierManager::NewL(*this); |
|
58 } |