|
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 // IPProto Tier Manager Factory |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include "IPProtoTierManagerFactory.h" |
|
24 #include "IPProtoTierManager.h" |
|
25 #include <comms-infras/ss_log.h> |
|
26 |
|
27 #ifdef _DEBUG |
|
28 #define KIPProtoTierMgrTag KESockMetaConnectionTag |
|
29 _LIT8(KIPProtoTierMgrSubTag, "ipprototiermgr"); |
|
30 #endif |
|
31 |
|
32 using namespace ESock; |
|
33 |
|
34 //-========================================================= |
|
35 // |
|
36 // CIPProtoTierManagerFactory implementation |
|
37 // |
|
38 //-========================================================= |
|
39 CIPProtoTierManagerFactory* CIPProtoTierManagerFactory::NewL(TAny* aParentContainer) |
|
40 { |
|
41 __CFLOG_VAR((KIPProtoTierMgrTag, KIPProtoTierMgrSubTag, _L8("CIPProtoTierManagerFactory::\tNewL(%08x)"), aParentContainer)); |
|
42 return new (ELeave) CIPProtoTierManagerFactory(TUid::Uid(CIPProtoTierManagerFactory::iUid),TUid::Uid(CIPProtoTierManagerFactory::iUid),*(reinterpret_cast<CTierManagerFactoryContainer*>(aParentContainer))); |
|
43 } |
|
44 |
|
45 CIPProtoTierManagerFactory::CIPProtoTierManagerFactory(TUid aTierTypeId,TUid aFactoryUid, ESock::CTierManagerFactoryContainer& aParentContainer) |
|
46 : CTierManagerFactoryBase(aTierTypeId,aFactoryUid,aParentContainer) |
|
47 { |
|
48 __CFLOG_VAR((KIPProtoTierMgrTag, KIPProtoTierMgrSubTag, _L8("CIPProtoTierManagerFactory %08x:\tCIPProtoTierManagerFactory"), this)); |
|
49 } |
|
50 |
|
51 ESock::ACommsFactoryNodeId* CIPProtoTierManagerFactory::DoCreateObjectL(ESock::TFactoryQueryBase& /* aQuery */) |
|
52 { |
|
53 return CIPProtoTierManager::NewL(*this); |
|
54 } |