|
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 // This is part of an ECOM plug-in |
|
15 // SIP Meta Conneciton Provider factory definition |
|
16 // |
|
17 // |
|
18 |
|
19 /** |
|
20 @file |
|
21 @internalComponent |
|
22 */ |
|
23 |
|
24 #include "sipmcprfactory.h" |
|
25 #include "sipmcpr.h" |
|
26 #include <comms-infras/ss_log.h> |
|
27 #include <ss_glob.h> |
|
28 #include <ecom/ecom.h> |
|
29 #include <comms-infras/ss_msgintercept.h> |
|
30 |
|
31 |
|
32 #ifdef __CFLOG_ACTIVE |
|
33 #define KSipMCprFactoryTag KESockMetaConnectionTag |
|
34 _LIT8(KSipMCprFactorySubTag, "sipmcprfactory"); |
|
35 #endif |
|
36 |
|
37 using namespace ESock; |
|
38 |
|
39 CSipMetaConnectionProviderFactory* CSipMetaConnectionProviderFactory::NewL(TAny* aParentContainer) |
|
40 /** Factory function for the factory which manages SIP level meta connection providers. |
|
41 This function also acts as the single ECom entry point into this object. |
|
42 @param aParentContainer the parent factory container which owns this factory |
|
43 @return factory for SIP level meta connection providers |
|
44 */ |
|
45 { |
|
46 __CFLOG_VAR((KSipMCprFactoryTag, KSipMCprFactorySubTag, _L8("CSipMetaConnectionProviderFactory ::\tNewL(%08x)"), aParentContainer)); |
|
47 return new (ELeave) CSipMetaConnectionProviderFactory(TUid::Uid(CSipMetaConnectionProviderFactory::iUid), *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer))); |
|
48 } |
|
49 |
|
50 CSipMetaConnectionProviderFactory::CSipMetaConnectionProviderFactory(TUid aFactoryUid, CMetaConnectionFactoryContainer& aParentContainer) |
|
51 : CMetaConnectionProviderFactoryBase(aFactoryUid,aParentContainer) |
|
52 /** Constructor for SIP level meta connection providers. |
|
53 @param aFactoryId the ID which this factory can be looked up by |
|
54 @param aParentContainer the parent factory container which owns this factory |
|
55 */ |
|
56 { |
|
57 // LOG_NODE_CREATE(KSipMCprFactoryTag, CSipMetaConnectionProviderFactory); |
|
58 } |
|
59 |
|
60 ACommsFactoryNodeId* CSipMetaConnectionProviderFactory::DoCreateObjectL(TFactoryQueryBase& aQuery) |
|
61 { |
|
62 const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery); |
|
63 CMetaConnectionProviderBase* provider = CSipMetaConnectionProvider::NewL(*this,query.iProviderInfo); |
|
64 ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); |
|
65 return provider; |
|
66 } |
|
67 |
|
68 |