|
1 // Copyright (c) 2007-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 // SIP TierManagerFactory class definition |
|
15 // This is part of an ECOM plug-in |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #include "siptiermanagerfactory.h" |
|
25 #include "siptiermanager.h" |
|
26 #include <comms-infras/ss_log.h> |
|
27 #include <ecom/ecom.h> |
|
28 |
|
29 #ifdef __CFLOG_ACTIVE |
|
30 #define KSipTierMgrTag KESockMetaConnectionTag |
|
31 _LIT8(KSipTierMgrSubTag, "siptiermanager"); |
|
32 #endif |
|
33 |
|
34 using namespace ESock; |
|
35 |
|
36 CSipTierManagerFactory* CSipTierManagerFactory::NewL(TAny* aParentContainer) |
|
37 { |
|
38 __CFLOG_VAR((KSipTierMgrTag, KSipTierMgrSubTag, _L8("CSipTierManagerFactory::\tNewL(%08x)"), aParentContainer)); |
|
39 return new (ELeave) CSipTierManagerFactory(TUid::Uid(CSipTierManagerFactory::iUid),TUid::Uid(CSipTierManagerFactory::iUid),*(reinterpret_cast<CTierManagerFactoryContainer*>(aParentContainer))); |
|
40 } |
|
41 |
|
42 CSipTierManagerFactory::CSipTierManagerFactory(TUid aTierTypeId, TUid aFactoryUid, CTierManagerFactoryContainer& aParentContainer) |
|
43 : CTierManagerFactoryBase(aTierTypeId,aFactoryUid,aParentContainer) |
|
44 { |
|
45 __CFLOG_VAR((KSipTierMgrTag, KSipTierMgrSubTag, _L8("CSipTierManagerFactory %08x:\tCSipTierManagerFactory"), this)); |
|
46 } |
|
47 |
|
48 ACommsFactoryNodeId* CSipTierManagerFactory::DoCreateObjectL(TFactoryQueryBase& /* aQuery */) |
|
49 { |
|
50 return CSipTierManager::NewL(*this); |
|
51 } |
|
52 |