|
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 // IP Connection Provider factory class definition. |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include "IPCprFactory.h" |
|
24 #include "IPCpr.h" |
|
25 #include <in_sock.h> |
|
26 #include <comms-infras/ss_log.h> |
|
27 |
|
28 #include <comms-infras/ss_msgintercept.h> |
|
29 |
|
30 #ifdef __CFLOG_ACTIVE |
|
31 #define KIpCprFactoryTag KESockConnectionTag |
|
32 // _LIT8(KIpCprFactorySubTag, "ipcprfactory"); |
|
33 #endif // __CFLOG_ACTIVE |
|
34 |
|
35 using namespace ESock; |
|
36 |
|
37 //-========================================================= |
|
38 // |
|
39 // CIPConnectionProviderFactory methods |
|
40 // |
|
41 //-========================================================= |
|
42 EXPORT_C CIPConnectionProviderFactory* CIPConnectionProviderFactory::NewL(TAny* aParentContainer) |
|
43 { |
|
44 return new (ELeave) CIPConnectionProviderFactory(TUid::Uid(CIPConnectionProviderFactory::iUid), *reinterpret_cast<ESock::CConnectionFactoryContainer*>(aParentContainer)); |
|
45 } |
|
46 |
|
47 CIPConnectionProviderFactory::CIPConnectionProviderFactory(TUid aFactoryId, ESock::CConnectionFactoryContainer& aParentContainer) |
|
48 : ESock::CConnectionProviderFactoryBase(aFactoryId, aParentContainer) |
|
49 { |
|
50 } |
|
51 |
|
52 ESock::ACommsFactoryNodeId* CIPConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& /* aQuery */) |
|
53 { |
|
54 CConnectionProviderBase* provider = CIPConnectionProvider::NewL(*this); |
|
55 |
|
56 ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); |
|
57 |
|
58 return provider; |
|
59 } |
|
60 |
|
61 |
|
62 |
|
63 |
|
64 |