|
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 "TMCETestUIEngineCmdDeleteSession.h" |
|
21 #include "CMCETestUIEngineSession.h" |
|
22 |
|
23 |
|
24 // ----------------------------------------------------------------------------- |
|
25 // TMCETestUIEngineCmdDeleteSession::TMCETestUIEngineCmdDeleteSession |
|
26 // ----------------------------------------------------------------------------- |
|
27 // |
|
28 TMCETestUIEngineCmdDeleteSession::TMCETestUIEngineCmdDeleteSession( |
|
29 CMCETestUIEngine& aEngine, |
|
30 CMCETestUIEngineSession& aSession ) |
|
31 : TMCETestUIEngineCmdBase( aEngine ), |
|
32 iSession( aSession ) |
|
33 { |
|
34 } |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // TMCETestUIEngineCmdDeleteSession::ExecuteL |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 EXPORT_C void TMCETestUIEngineCmdDeleteSession::ExecuteL() |
|
41 { |
|
42 iEngine.DeleteSession( iSession ); |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // TMCETestUIEngineCmdDeleteSession::Caption |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 EXPORT_C const TDesC& TMCETestUIEngineCmdDeleteSession::Caption() const |
|
50 { |
|
51 return KCommandCaptionDeleteSession; |
|
52 } |
|
53 |
|
54 // ----------------------------------------------------------------------------- |
|
55 // TMCETestUIEngineCmdEnableVideoSession::TMCETestUIEngineCmdEnableVideoSession |
|
56 // ----------------------------------------------------------------------------- |
|
57 // |
|
58 TMCETestUIEngineCmdEnableVideoSession::TMCETestUIEngineCmdEnableVideoSession( |
|
59 CMCETestUIEngine& aEngine, |
|
60 CMCETestUIEngineSession& aSession ) |
|
61 : TMCETestUIEngineCmdBase( aEngine ), |
|
62 iSession( aSession ) |
|
63 { |
|
64 } |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // TMCETestUIEngineCmdEnableVideoSession::ExecuteL |
|
68 // ----------------------------------------------------------------------------- |
|
69 // |
|
70 EXPORT_C void TMCETestUIEngineCmdEnableVideoSession::ExecuteL() |
|
71 { |
|
72 iEngine.EnableVideo(iSession); |
|
73 } |
|
74 |
|
75 // ----------------------------------------------------------------------------- |
|
76 // TMCETestUIEngineCmdEnableVideoSession::Caption |
|
77 // ----------------------------------------------------------------------------- |
|
78 // |
|
79 EXPORT_C const TDesC& TMCETestUIEngineCmdEnableVideoSession::Caption() const |
|
80 { |
|
81 return KCommandCaptionSessionEnableVideo; |
|
82 } |
|
83 // ----------------------------------------------------------------------------- |
|
84 // TMCETestUIEngineCmdDisableVideoSession::TMCETestUIEngineCmdDisableVideoSession |
|
85 // ----------------------------------------------------------------------------- |
|
86 // |
|
87 TMCETestUIEngineCmdDisableVideoSession::TMCETestUIEngineCmdDisableVideoSession( |
|
88 CMCETestUIEngine& aEngine, |
|
89 CMCETestUIEngineSession& aSession ) |
|
90 : TMCETestUIEngineCmdBase( aEngine ), |
|
91 iSession( aSession ) |
|
92 { |
|
93 } |
|
94 |
|
95 // ----------------------------------------------------------------------------- |
|
96 // TMCETestUIEngineCmdDisableVideoSession::ExecuteL |
|
97 // ----------------------------------------------------------------------------- |
|
98 // |
|
99 EXPORT_C void TMCETestUIEngineCmdDisableVideoSession::ExecuteL() |
|
100 { |
|
101 iEngine.DisableVideo(iSession); |
|
102 } |
|
103 |
|
104 // ----------------------------------------------------------------------------- |
|
105 // TMCETestUIEngineCmdDeleteSession::Caption |
|
106 // ----------------------------------------------------------------------------- |
|
107 // |
|
108 EXPORT_C const TDesC& TMCETestUIEngineCmdDisableVideoSession::Caption() const |
|
109 { |
|
110 return KCommandCaptionSessionDisableVideo; |
|
111 } |
|
112 |
|
113 |
|
114 |
|
115 // TMCETestUIEngineCmdEnableReceivingVideoSession::TMCETestUIEngineCmdEnableReceivingVideoSession |
|
116 // ----------------------------------------------------------------------------- |
|
117 // |
|
118 TMCETestUIEngineCmdEnableReceivingVideoSession::TMCETestUIEngineCmdEnableReceivingVideoSession( |
|
119 CMCETestUIEngine& aEngine, |
|
120 CMCETestUIEngineSession& aSession ) |
|
121 : TMCETestUIEngineCmdBase( aEngine ), |
|
122 iSession( aSession ) |
|
123 { |
|
124 } |
|
125 |
|
126 // ----------------------------------------------------------------------------- |
|
127 // TMCETestUIEngineCmdEnableReceivingVideoSession::ExecuteL |
|
128 // ----------------------------------------------------------------------------- |
|
129 // |
|
130 EXPORT_C void TMCETestUIEngineCmdEnableReceivingVideoSession::ExecuteL() |
|
131 { |
|
132 iEngine.EnableReceivingVideo(iSession); |
|
133 } |
|
134 |
|
135 // ----------------------------------------------------------------------------- |
|
136 // TMCETestUIEngineCmdEnableReceivingVideoSession::Caption |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 EXPORT_C const TDesC& TMCETestUIEngineCmdEnableReceivingVideoSession::Caption() const |
|
140 { |
|
141 return KCommandCaptionSessionEnableVideo; |
|
142 } |
|
143 // ----------------------------------------------------------------------------- |
|
144 // TMCETestUIEngineCmdDisableReceivingVideoSession::TMCETestUIEngineCmdDisableReceivingVideoSession |
|
145 // ----------------------------------------------------------------------------- |
|
146 // |
|
147 TMCETestUIEngineCmdDisableReceivingVideoSession::TMCETestUIEngineCmdDisableReceivingVideoSession( |
|
148 CMCETestUIEngine& aEngine, |
|
149 CMCETestUIEngineSession& aSession ) |
|
150 : TMCETestUIEngineCmdBase( aEngine ), |
|
151 iSession( aSession ) |
|
152 { |
|
153 } |
|
154 |
|
155 // ----------------------------------------------------------------------------- |
|
156 // TMCETestUIEngineCmdDisableReceivingVideoSession::ExecuteL |
|
157 // ----------------------------------------------------------------------------- |
|
158 // |
|
159 EXPORT_C void TMCETestUIEngineCmdDisableReceivingVideoSession::ExecuteL() |
|
160 { |
|
161 iEngine.DisableReceivingVideo(iSession); |
|
162 } |
|
163 |
|
164 // ----------------------------------------------------------------------------- |
|
165 // TMCETestUIEngineCmdDisableReceivingVideoSession::Caption |
|
166 // ----------------------------------------------------------------------------- |
|
167 // |
|
168 EXPORT_C const TDesC& TMCETestUIEngineCmdDisableReceivingVideoSession::Caption() const |
|
169 { |
|
170 return KCommandCaptionSessionDisableVideo; |
|
171 } |
|
172 |
|
173 |
|
174 |
|
175 |
|
176 // End of File |