|
1 /* |
|
2 * Copyright (c) 2004 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 |
|
21 // INCLUDES |
|
22 #include "createRtpSourceDialog.h" |
|
23 #include "CMCETestUIEngineAudioStream.h" |
|
24 #include "CMCETestUIEngineSource.h" |
|
25 #include <MCEAudioStream.h> |
|
26 #include <MCERtpSource.h> |
|
27 #include <MCEMediaSource.h> |
|
28 |
|
29 // CONSTANTS |
|
30 |
|
31 // ============================ MEMBER FUNCTIONS ============================== |
|
32 |
|
33 // ---------------------------------------------------------------------------- |
|
34 // CCreateRtpSourceDialog::CCreateRtpSourceDialog( ) |
|
35 // . |
|
36 // ---------------------------------------------------------------------------- |
|
37 // |
|
38 CCreateRtpSourceDialog::CCreateRtpSourceDialog( |
|
39 CMCETestUIEngineAudioStream& aStream, TInt aIndex ) : |
|
40 iStream(aStream),iSourceIndex( aIndex ) |
|
41 { |
|
42 |
|
43 // No implementation required |
|
44 } |
|
45 |
|
46 // ---------------------------------------------------------------------------- |
|
47 // CCreateRtpSourceDialog::PreLayoutDynInitL() |
|
48 // . |
|
49 // ---------------------------------------------------------------------------- |
|
50 // |
|
51 void CCreateRtpSourceDialog::PreLayoutDynInitL() |
|
52 { |
|
53 CAknForm::PreLayoutDynInitL(); |
|
54 const RPointerArray<CMCETestUIEngineSource>& sources = |
|
55 iStream.SourcesL(); |
|
56 |
|
57 CMceMediaSource& mediaSource = static_cast<CMceMediaSource&>(sources[iSourceIndex]->Source()); |
|
58 CMceRtpSource& micSource = static_cast<CMceRtpSource&>(mediaSource); |
|
59 |
|
60 /* CEikNumberEditor* gain = static_cast<CEikNumberEditor*>( |
|
61 Control( ERtpSourceGainSetting ) ); |
|
62 gain->SetNumber(micSource.GainL()); */ |
|
63 |
|
64 } |
|
65 |
|
66 // ---------------------------------------------------------------------------- |
|
67 // CCreateRtpSourceDialog::OkToExitL( TInt ) |
|
68 // . |
|
69 // ---------------------------------------------------------------------------- |
|
70 // |
|
71 |
|
72 TBool CCreateRtpSourceDialog::OkToExitL( TInt aKey ) |
|
73 { |
|
74 if ( aKey == EEikCmdCanceled ) |
|
75 { |
|
76 // Cancel pressed. Just exit. |
|
77 return ETrue; |
|
78 } |
|
79 const RPointerArray<CMCETestUIEngineSource>& sources = |
|
80 iStream.SourcesL(); |
|
81 |
|
82 if(sources[iSourceIndex]->Type() == KMceRTPSource) |
|
83 { |
|
84 /* CMceMediaSource& mediaSource = static_cast<CMceMediaSource&>(sources[iSourceIndex]->Source()); |
|
85 KMceRTPSource& rtpSource = static_cast<KMceRTPSource&>(mediaSource); |
|
86 |
|
87 CEikNumberEditor* gain = static_cast<CEikNumberEditor*>(Control( ERtpSourceGainSetting ) ); |
|
88 rtpSource.SetGainL( gain->Number() ); */ |
|
89 } |
|
90 |
|
91 |
|
92 return ETrue; |
|
93 } |
|
94 |
|
95 // ---------------------------------------------------------------------------- |
|
96 // CCreateRtpSourceDialog::~CCreateRtpSourceDialog) |
|
97 // . |
|
98 // ---------------------------------------------------------------------------- |
|
99 // |
|
100 CCreateRtpSourceDialog::~CCreateRtpSourceDialog() |
|
101 { |
|
102 return; |
|
103 } |
|
104 |
|
105 // End of File |