|
1 /* |
|
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
4 * This component and the accompanying materials are made available |
|
5 * under the terms of "Eclipse Public License v1.0" |
|
6 * which accompanies this distribution, and is available |
|
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: S60 MCPR factory implementation |
|
15 * |
|
16 */ |
|
17 |
|
18 /** |
|
19 @file s60mcprfactory.cpp |
|
20 S60 MCPR factory implementation |
|
21 */ |
|
22 |
|
23 #include <ecom/ecom.h> |
|
24 #include <ecom/implementationproxy.h> |
|
25 |
|
26 #include <comms-infras/ss_log.h> |
|
27 #include <comms-infras/ss_msgintercept.h> |
|
28 |
|
29 #include "s60mcprfactory.h" |
|
30 #include "s60mcpr.h" |
|
31 |
|
32 using namespace ESock; |
|
33 |
|
34 #ifdef __CFLOG_ACTIVE |
|
35 #define KS60MCprFactoryTag KESockMetaConnectionTag |
|
36 _LIT8(KS60MCprFactorySubTag, "s60mcprfactory"); |
|
37 #endif |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CS60MetaConnectionProviderFactory::NewL |
|
41 // ----------------------------------------------------------------------------- |
|
42 // |
|
43 CS60MetaConnectionProviderFactory* CS60MetaConnectionProviderFactory::NewL( TAny* aParentContainer ) |
|
44 { |
|
45 __CFLOG_VAR((KS60MCprFactoryTag, KS60MCprFactorySubTag, _L8("CS60MetaConnectionProviderFactory::NewL(%08x)"), aParentContainer)); |
|
46 return new (ELeave) CS60MetaConnectionProviderFactory( TUid::Uid(CS60MetaConnectionProviderFactory::iUid), |
|
47 *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer)) ); |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CS60MetaConnectionProviderFactory::CS60MetaConnectionProviderFactory |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 CS60MetaConnectionProviderFactory::CS60MetaConnectionProviderFactory( TUid aFactoryUid, |
|
55 CMetaConnectionFactoryContainer& aParentContainer ) |
|
56 : CMetaConnectionProviderFactoryBase( aFactoryUid, aParentContainer ) |
|
57 { |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // CS60MetaConnectionProviderFactory::DoCreateObjectL |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 ACommsFactoryNodeId* CS60MetaConnectionProviderFactory::DoCreateObjectL( TFactoryQueryBase& aQuery ) |
|
65 { |
|
66 const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery); |
|
67 CMetaConnectionProviderBase* provider = CS60MetaConnectionProvider::NewL( *this, query.iProviderInfo ); |
|
68 |
|
69 ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); |
|
70 |
|
71 return provider; |
|
72 } |
|
73 |