|
1 /* |
|
2 * Copyright (c) 2002-2006 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: Implements WLAN meta connection provider factory |
|
15 * |
|
16 */ |
|
17 |
|
18 /* |
|
19 * %version: 4 % |
|
20 */ |
|
21 |
|
22 #include "wlanmcprfactory.h" |
|
23 #include "wlanmcpr.h" |
|
24 #include <ss_glob.h> |
|
25 #include "am_debug.h" |
|
26 |
|
27 #include <comms-infras/ss_msgintercept.h> |
|
28 |
|
29 |
|
30 using namespace ESock; |
|
31 |
|
32 //-========================================================= |
|
33 // |
|
34 // CWlanMetaConnectionProviderFactory methods |
|
35 // |
|
36 //-========================================================= |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // CWlanMetaConnectionProviderFactory::NewL |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 CWlanMetaConnectionProviderFactory* CWlanMetaConnectionProviderFactory::NewL(TAny* aParentContainer) |
|
43 { |
|
44 DEBUG("CWlanMetaConnectionProviderFactory::NewL"); |
|
45 |
|
46 return new (ELeave) CWlanMetaConnectionProviderFactory(TUid::Uid(CWlanMetaConnectionProviderFactory::iUid), *(reinterpret_cast<CMetaConnectionFactoryContainer*>(aParentContainer))); |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CWlanMetaConnectionProviderFactory::CWlanMetaConnectionProviderFactory |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 CWlanMetaConnectionProviderFactory::CWlanMetaConnectionProviderFactory(TUid aFactoryId, CMetaConnectionFactoryContainer& aParentContainer) |
|
54 : CMetaConnectionProviderFactoryBase(aFactoryId,aParentContainer) |
|
55 { |
|
56 } |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // CWlanMetaConnectionProviderFactory::DoCreateL |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 ESock::ACommsFactoryNodeId* CWlanMetaConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& aQuery) |
|
63 { |
|
64 const TMetaConnectionFactoryQuery& query = static_cast<const TMetaConnectionFactoryQuery&>(aQuery); |
|
65 CMetaConnectionProviderBase* provider = CWlanMetaConnectionProvider::NewL(*this, query.iProviderInfo); |
|
66 |
|
67 ESOCK_DEBUG_REGISTER_GENERAL_NODE(iUid, provider); |
|
68 |
|
69 return provider; |
|
70 } |