|
1 // Copyright (c) 2008-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 // RTP SCPR Factory Implementation |
|
15 // |
|
16 // |
|
17 |
|
18 /** |
|
19 @file |
|
20 @internalComponent |
|
21 */ |
|
22 |
|
23 |
|
24 |
|
25 #include <comms-infras/ss_log.h> |
|
26 |
|
27 #include "rtpscprfactory.h" |
|
28 #include "rtpscpr.h" |
|
29 |
|
30 using namespace ESock; |
|
31 using namespace Messages; |
|
32 using namespace Factories; |
|
33 |
|
34 //-========================================================= |
|
35 // |
|
36 // CRtpSubConnectionProviderFactory methods |
|
37 // |
|
38 //-========================================================= |
|
39 CRtpSubConnectionProviderFactory* CRtpSubConnectionProviderFactory::NewL(TAny* aParentContainer) |
|
40 { |
|
41 |
|
42 return new (ELeave) CRtpSubConnectionProviderFactory(TUid::Uid(CRtpSubConnectionProviderFactory::iUid), |
|
43 *reinterpret_cast<ESock::CSubConnectionFactoryContainer*>(aParentContainer)); |
|
44 } |
|
45 CRtpSubConnectionProviderFactory::CRtpSubConnectionProviderFactory(TUid aFactoryId, ESock::CSubConnectionFactoryContainer& aParentContainer) |
|
46 : CSubConnectionProviderFactoryBase(aFactoryId, aParentContainer) |
|
47 { |
|
48 } |
|
49 ESock::ACommsFactoryNodeId* CRtpSubConnectionProviderFactory::DoCreateObjectL(ESock::TFactoryQueryBase& ) |
|
50 { |
|
51 CSubConnectionProviderBase* provider(NULL); |
|
52 |
|
53 provider = CRtpSubConnectionProvider::NewL(*this); |
|
54 return provider; |
|
55 } |