|
1 // Copyright (c) 2004-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 // PPP factory class and DLL entry point |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 #include "PPPFactories.h" |
|
24 #include "pppmcprfactory.h" |
|
25 #include <networking/ppplcp.h> |
|
26 |
|
27 using namespace ESock; |
|
28 |
|
29 //-========================================================= |
|
30 // CPPPSubConnectionFlowFactory methods |
|
31 //-========================================================= |
|
32 CPPPSubConnectionFlowFactory::CPPPSubConnectionFlowFactory(TUid aFactoryId, CSubConnectionFlowFactoryContainer& aParentContainer) |
|
33 :CSubConnectionFlowFactoryBase(aFactoryId, aParentContainer) |
|
34 { |
|
35 } |
|
36 |
|
37 CPPPSubConnectionFlowFactory* CPPPSubConnectionFlowFactory::NewL(TAny* aConstructionParameters) |
|
38 { |
|
39 CPPPSubConnectionFlowFactory* ptr = new (ELeave) CPPPSubConnectionFlowFactory(TUid::Uid(KPPPFlowImplUid), *(reinterpret_cast<CSubConnectionFlowFactoryContainer*>(aConstructionParameters))); |
|
40 return ptr; |
|
41 } |
|
42 |
|
43 CSubConnectionFlowBase* CPPPSubConnectionFlowFactory::DoCreateFlowL(ESock::CProtocolIntfBase* aProtocolIntf, TFactoryQueryBase& aQuery) |
|
44 { |
|
45 const TDefaultFlowFactoryQuery& query = static_cast<const TDefaultFlowFactoryQuery&>(aQuery); |
|
46 return CPppLcp::NewL(*this, query.iSCprId, aProtocolIntf); |
|
47 } |
|
48 |