|
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 // |
|
15 |
|
16 /** |
|
17 @file EthCfproto.cpp |
|
18 */ |
|
19 |
|
20 #include "EthCfproto.h" |
|
21 #include "EthProto.h" |
|
22 |
|
23 using namespace ESock; |
|
24 |
|
25 // ===================================================================================== |
|
26 // |
|
27 // Ethernet Flow Factory |
|
28 // |
|
29 |
|
30 CEthSubConnectionFlowFactory* CEthSubConnectionFlowFactory::NewL(TAny* aConstructionParameters) |
|
31 /** |
|
32 Constructs a Default SubConnection Flow Factory |
|
33 |
|
34 @param aConstructionParameters construction data passed by ECOM |
|
35 |
|
36 @returns pointer to a constructed factory |
|
37 */ |
|
38 { |
|
39 CEthSubConnectionFlowFactory* ptr = new (ELeave) CEthSubConnectionFlowFactory(TUid::Uid(KEthFlowImplementationUid), *(reinterpret_cast<CSubConnectionFlowFactoryContainer*>(aConstructionParameters))); |
|
40 return ptr; |
|
41 } |
|
42 |
|
43 |
|
44 CEthSubConnectionFlowFactory::CEthSubConnectionFlowFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer) |
|
45 : CSubConnectionFlowFactoryBase(aFactoryId, aParentContainer) |
|
46 /** |
|
47 Default SubConnection Flow Factory Constructor |
|
48 |
|
49 @param aFactoryId ECOM Implementation Id |
|
50 @param aParentContainer Object Owner |
|
51 */ |
|
52 { |
|
53 } |
|
54 |
|
55 |
|
56 CSubConnectionFlowBase* CEthSubConnectionFlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery) |
|
57 { |
|
58 const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery); |
|
59 return CLANLinkCommon::NewL(*this, query.iSCprId, aProtocolIntf); |
|
60 } |
|
61 |