|
1 /* |
|
2 * Copyright (c) 2005 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: Implementation. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "TMCETestUIEngineCmdDisableAudioSource.h" |
|
21 #include "CMCETestUIEngineSource.h" |
|
22 #include "CMCETestUIEngineVideoSource.h" |
|
23 #include <MCEMediaSource.h> |
|
24 #include <MCEMicSource.h> |
|
25 #include <MCERtpSource.h> |
|
26 #include "MCEAudioStream.h" |
|
27 #include "MCEVideoStream.h" |
|
28 |
|
29 // ----------------------------------------------------------------------------- |
|
30 // TMCETestUIEngineCmdDisableStream::TMCETestUIEngineCmdDisableStream |
|
31 // ----------------------------------------------------------------------------- |
|
32 // |
|
33 TMCETestUIEngineCmdDisableSource::TMCETestUIEngineCmdDisableSource( |
|
34 CMCETestUIEngine& aEngine, |
|
35 CMCETestUIEngineSource& aAudioSource ) |
|
36 : TMCETestUIEngineCmdBase( aEngine ), |
|
37 iAudioSource( aAudioSource ) |
|
38 { |
|
39 } |
|
40 |
|
41 // ----------------------------------------------------------------------------- |
|
42 // TMCETestUIEngineCmdDisableSource::ExecuteL |
|
43 // ----------------------------------------------------------------------------- |
|
44 // |
|
45 EXPORT_C void TMCETestUIEngineCmdDisableSource::ExecuteL() |
|
46 { |
|
47 iAudioSource.Source().DisableL(); |
|
48 iEngine.EngineStateChangedL(); |
|
49 } |
|
50 |
|
51 // ----------------------------------------------------------------------------- |
|
52 // TMCETestUIEngineCmdDisableSource::Caption |
|
53 // ----------------------------------------------------------------------------- |
|
54 // |
|
55 EXPORT_C const TDesC& TMCETestUIEngineCmdDisableSource::Caption() const |
|
56 { |
|
57 return KCommandCaptionDisableSource; |
|
58 } |
|
59 |
|
60 // ----------------------------------------------------------------------------- |
|
61 // TMCETestUIEngineCmdDisableVideoSource::TMCETestUIEngineCmdDisableVideoSource |
|
62 // ----------------------------------------------------------------------------- |
|
63 // |
|
64 TMCETestUIEngineCmdDisableVideoSource::TMCETestUIEngineCmdDisableVideoSource( |
|
65 CMCETestUIEngine& aEngine, |
|
66 CMCETestUIEngineVideoSource& aVideoSource ) |
|
67 : TMCETestUIEngineCmdBase( aEngine ), |
|
68 iVideoSource( aVideoSource ) |
|
69 { |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // TMCETestUIEngineCmdDisableVideoSource::ExecuteL |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 EXPORT_C void TMCETestUIEngineCmdDisableVideoSource::ExecuteL() |
|
77 { |
|
78 iVideoSource.Source().DisableL(); |
|
79 iEngine.EngineStateChangedL(); |
|
80 } |
|
81 |
|
82 // ----------------------------------------------------------------------------- |
|
83 // TMCETestUIEngineCmdDisableVideoSource::Caption |
|
84 // ----------------------------------------------------------------------------- |
|
85 // |
|
86 EXPORT_C const TDesC& TMCETestUIEngineCmdDisableVideoSource::Caption() const |
|
87 { |
|
88 return KCommandCaptionDisableSource; |
|
89 } |
|
90 |
|
91 |
|
92 |
|
93 // End of File |