|
1 /* |
|
2 * Copyright (c) 2007-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: VOIP Audio Services |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include "VoIPAudioSession.h" |
|
20 #include "VoIPDownlinkStreamImpl.h" |
|
21 #include "VoIPUplinkStreamImpl.h" |
|
22 #include "VoIPBaseCodecIntfcImpl.h" |
|
23 |
|
24 |
|
25 // --------------------------------------------------------------------------- |
|
26 // CVoIPBaseCodecIntfcImpl::NewL |
|
27 // --------------------------------------------------------------------------- |
|
28 // |
|
29 CVoIPBaseCodecIntfcImpl* CVoIPBaseCodecIntfcImpl::NewL( |
|
30 CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl) |
|
31 { |
|
32 CVoIPBaseCodecIntfcImpl* self = new (ELeave) CVoIPBaseCodecIntfcImpl(); |
|
33 CleanupStack::PushL(self); |
|
34 self->ConstructL(aDnLinkStreamImpl); |
|
35 CleanupStack::Pop(self); |
|
36 return self; |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // CVoIPBaseCodecIntfcImpl::NewL |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 CVoIPBaseCodecIntfcImpl* CVoIPBaseCodecIntfcImpl::NewL( |
|
44 CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl) |
|
45 { |
|
46 CVoIPBaseCodecIntfcImpl* self = new (ELeave) CVoIPBaseCodecIntfcImpl(); |
|
47 CleanupStack::PushL(self); |
|
48 self->ConstructL(aUpLinkStreamImpl); |
|
49 CleanupStack::Pop(self); |
|
50 return self; |
|
51 } |
|
52 |
|
53 // --------------------------------------------------------------------------- |
|
54 // CVoIPBaseCodecIntfcImpl::~CVoIPBaseCodecIntfcImpl |
|
55 // --------------------------------------------------------------------------- |
|
56 // |
|
57 CVoIPBaseCodecIntfcImpl::~CVoIPBaseCodecIntfcImpl() |
|
58 { |
|
59 } |
|
60 |
|
61 // --------------------------------------------------------------------------- |
|
62 // CVoIPBaseCodecIntfcImpl::CVoIPBaseCodecIntfcImpl |
|
63 // --------------------------------------------------------------------------- |
|
64 // |
|
65 CVoIPBaseCodecIntfcImpl::CVoIPBaseCodecIntfcImpl() |
|
66 { |
|
67 } |
|
68 |
|
69 // --------------------------------------------------------------------------- |
|
70 // CVoIPBaseCodecIntfcImpl::ConstructL |
|
71 // --------------------------------------------------------------------------- |
|
72 // |
|
73 void CVoIPBaseCodecIntfcImpl::ConstructL( |
|
74 CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl) |
|
75 { |
|
76 iVoIPAudioSession = aDnLinkStreamImpl->GetSession(); |
|
77 CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession); |
|
78 CVoIPFormatIntfc::ConstructL(this); |
|
79 } |
|
80 |
|
81 // --------------------------------------------------------------------------- |
|
82 // CVoIPBaseCodecIntfcImpl::ConstructL |
|
83 // --------------------------------------------------------------------------- |
|
84 // |
|
85 void CVoIPBaseCodecIntfcImpl::ConstructL( |
|
86 CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl) |
|
87 { |
|
88 iVoIPAudioSession = aUpLinkStreamImpl->GetSession(); |
|
89 CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession); |
|
90 CVoIPFormatIntfc::ConstructL(this); |
|
91 } |
|
92 |
|
93 |
|
94 // End of file |