|
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: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include <ecom/ecom.h> |
|
21 #include <ecom/implementationinformation.h> |
|
22 #include <mmf/server/mmfaudiooutput.h> |
|
23 #include <mmf/server/mmfaudioinput.h> |
|
24 #include <networking/qos3gpp_subconparams.h> |
|
25 |
|
26 #include "mccrtpdatasource.h" |
|
27 #include "mccrtpdatasink.h" |
|
28 #include "mccanysource.h" |
|
29 #include "mccanysink.h" |
|
30 #include "mccuids.hrh" |
|
31 #include "mcctestuids.hrh" |
|
32 |
|
33 // ----------------------------------------------------------------------------- |
|
34 // REComSession::REComSession |
|
35 // ----------------------------------------------------------------------------- |
|
36 // |
|
37 REComSession::REComSession() |
|
38 { |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // REComSession::DestroyedImplementation |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 void REComSession::DestroyedImplementation(TUid /*aDtorIDKey*/) |
|
46 { |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // REComSession::FinalClose |
|
51 // ----------------------------------------------------------------------------- |
|
52 // |
|
53 void REComSession::FinalClose() |
|
54 { |
|
55 } |
|
56 |
|
57 // ----------------------------------------------------------------------------- |
|
58 // REComSession::CreateImplementationL |
|
59 // ----------------------------------------------------------------------------- |
|
60 // |
|
61 EXPORT_C TAny* REComSession::CreateImplementationL(TUid aImplementationUid, |
|
62 TInt32 /*aKeyOffset*/) |
|
63 { |
|
64 if ( aImplementationUid.iUid == KImplUidRtpDataSource ) |
|
65 { |
|
66 return CMccRtpDataSource::NewSourceL( aImplementationUid, KNullDesC8 ); |
|
67 } |
|
68 else if ( aImplementationUid.iUid == KImplUidRtpDataSink ) |
|
69 { |
|
70 return CMccRtpDataSink::NewSinkL( aImplementationUid, KNullDesC8 ); |
|
71 } |
|
72 else if ( aImplementationUid.iUid == KUidMmfAudioOutput.iUid ) |
|
73 { |
|
74 return static_cast<MDataSink*>( CMMFAudioOutput::NewSinkL() ); |
|
75 } |
|
76 else if ( aImplementationUid.iUid == KUidMmfAudioInput.iUid ) |
|
77 { |
|
78 return static_cast<MDataSource*>( CMMFAudioInput::NewSourceL() ); |
|
79 } |
|
80 else if ( aImplementationUid.iUid == KImplUidMccAnySource ) |
|
81 { |
|
82 return CMccAnySource::NewSourceL( aImplementationUid, KNullDesC8 ); |
|
83 } |
|
84 else if ( aImplementationUid.iUid == KImplUidMccAnySink ) |
|
85 { |
|
86 return CMccAnySink::NewSinkL( aImplementationUid, KNullDesC8 ); |
|
87 } |
|
88 else if ( aImplementationUid.iUid == KSubCon3GPPExtParamsFactoryUid ) |
|
89 { |
|
90 return new (ELeave) CSubConQosR99ParamSet(); |
|
91 } |
|
92 else |
|
93 { |
|
94 User::Leave( KErrNotFound ); |
|
95 } |
|
96 |
|
97 return NULL; |
|
98 } |