|
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 "TMCETestUIEngineCmdEnableStream.h" |
|
21 #include "CMCETestUIEngineAudioStream.h" |
|
22 #include "MCEAudioStream.h" |
|
23 #include "CMCETestUIEngineVideoStream.h" |
|
24 #include "MCEVideoStream.h" |
|
25 |
|
26 // ----------------------------------------------------------------------------- |
|
27 // TMCETestUIEngineCmdEnableStream::TMCETestUIEngineCmdEnableStream |
|
28 // ----------------------------------------------------------------------------- |
|
29 // |
|
30 TMCETestUIEngineCmdEnableStream::TMCETestUIEngineCmdEnableStream( |
|
31 CMCETestUIEngine& aEngine, |
|
32 CMCETestUIEngineAudioStream& aAudioStream ) |
|
33 : TMCETestUIEngineCmdBase( aEngine ), |
|
34 iAudioStream( aAudioStream ) |
|
35 { |
|
36 } |
|
37 |
|
38 // ----------------------------------------------------------------------------- |
|
39 // TMCETestUIEngineCmdEnableStream::ExecuteL |
|
40 // ----------------------------------------------------------------------------- |
|
41 // |
|
42 EXPORT_C void TMCETestUIEngineCmdEnableStream::ExecuteL() |
|
43 { |
|
44 iAudioStream.AudioStream().EnableL(); |
|
45 iEngine.EngineStateChangedL(); |
|
46 } |
|
47 |
|
48 // ----------------------------------------------------------------------------- |
|
49 // TMCETestUIEngineCmdEnableStream::Caption |
|
50 // ----------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C const TDesC& TMCETestUIEngineCmdEnableStream::Caption() const |
|
53 { |
|
54 return KCommandCaptionEnableStream; |
|
55 } |
|
56 |
|
57 |
|
58 // ----------------------------------------------------------------------------- |
|
59 // TMCETestUIEngineCmdEnableVideoStream::TMCETestUIEngineCmdEnableVideoStream |
|
60 // ----------------------------------------------------------------------------- |
|
61 // |
|
62 TMCETestUIEngineCmdEnableVideoStream::TMCETestUIEngineCmdEnableVideoStream( |
|
63 CMCETestUIEngine& aEngine, |
|
64 CMCETestUIEngineVideoStream& aVideoStream ) |
|
65 : TMCETestUIEngineCmdBase( aEngine ), |
|
66 iVideoStream( aVideoStream ) |
|
67 { |
|
68 } |
|
69 |
|
70 // ----------------------------------------------------------------------------- |
|
71 // TMCETestUIEngineCmdEnableVideoStream::ExecuteL |
|
72 // ----------------------------------------------------------------------------- |
|
73 // |
|
74 EXPORT_C void TMCETestUIEngineCmdEnableVideoStream::ExecuteL() |
|
75 { |
|
76 iVideoStream.VideoStream().EnableL(); |
|
77 iEngine.EngineStateChangedL(); |
|
78 } |
|
79 |
|
80 // ----------------------------------------------------------------------------- |
|
81 // TMCETestUIEngineCmdEnableVideoStream::Caption |
|
82 // ----------------------------------------------------------------------------- |
|
83 // |
|
84 EXPORT_C const TDesC& TMCETestUIEngineCmdEnableVideoStream::Caption() const |
|
85 { |
|
86 return KCommandCaptionEnableStream; |
|
87 } |
|
88 |
|
89 // End of File |