williamr@2
|
1 |
// Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
|
williamr@2
|
2 |
// All rights reserved.
|
williamr@2
|
3 |
// This component and the accompanying materials are made available
|
williamr@2
|
4 |
// under the terms of the License "Symbian Foundation License v1.0" to Symbian Foundation members and "Symbian Foundation End User License Agreement v1.0" to non-members
|
williamr@2
|
5 |
// which accompanies this distribution, and is available
|
williamr@2
|
6 |
// at the URL "http://www.symbianfoundation.org/legal/licencesv10.html".
|
williamr@2
|
7 |
//
|
williamr@2
|
8 |
// Initial Contributors:
|
williamr@2
|
9 |
// Nokia Corporation - initial contribution.
|
williamr@2
|
10 |
//
|
williamr@2
|
11 |
// Contributors:
|
williamr@2
|
12 |
//
|
williamr@2
|
13 |
// Description:
|
williamr@2
|
14 |
//
|
williamr@2
|
15 |
|
williamr@2
|
16 |
|
williamr@2
|
17 |
|
williamr@2
|
18 |
/**
|
williamr@2
|
19 |
@file
|
williamr@2
|
20 |
@publishedAll
|
williamr@2
|
21 |
@released
|
williamr@2
|
22 |
*/
|
williamr@2
|
23 |
|
williamr@2
|
24 |
#ifndef REMCONCOREAPITARGET_H
|
williamr@2
|
25 |
#define REMCONCOREAPITARGET_H
|
williamr@2
|
26 |
|
williamr@2
|
27 |
#include <e32base.h>
|
williamr@2
|
28 |
#include <remcon/remconinterfacebase.h>
|
williamr@2
|
29 |
#include <remconcoreapi.h>
|
williamr@2
|
30 |
#include <remcon/remconinterfaceif.h>
|
williamr@2
|
31 |
|
williamr@2
|
32 |
class MRemConCoreApiTargetObserver;
|
williamr@2
|
33 |
class CRemConInterfaceSelector;
|
williamr@2
|
34 |
|
williamr@2
|
35 |
/**
|
williamr@2
|
36 |
Client-instantiable type supporting sending Core API responses.
|
williamr@2
|
37 |
*/
|
williamr@2
|
38 |
NONSHARABLE_CLASS(CRemConCoreApiTarget) : public CRemConInterfaceBase,
|
williamr@2
|
39 |
public MRemConInterfaceIf
|
williamr@2
|
40 |
{
|
williamr@2
|
41 |
public:
|
williamr@2
|
42 |
/**
|
williamr@2
|
43 |
Factory function.
|
williamr@2
|
44 |
@param aInterfaceSelector The interface selector. The client must have
|
williamr@2
|
45 |
created one of these first.
|
williamr@2
|
46 |
@param aObserver The observer of this interface.
|
williamr@2
|
47 |
@return A new CRemConCoreApiTarget, owned by the interface selector.
|
williamr@2
|
48 |
*/
|
williamr@2
|
49 |
IMPORT_C static CRemConCoreApiTarget* NewL(CRemConInterfaceSelector& aInterfaceSelector,
|
williamr@2
|
50 |
MRemConCoreApiTargetObserver& aObserver);
|
williamr@2
|
51 |
|
williamr@2
|
52 |
/** Destructor */
|
williamr@2
|
53 |
IMPORT_C ~CRemConCoreApiTarget();
|
williamr@2
|
54 |
|
williamr@2
|
55 |
public:
|
williamr@2
|
56 |
/** Send a 'select' response.
|
williamr@2
|
57 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
58 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
59 |
@param aError The response error.
|
williamr@2
|
60 |
*/
|
williamr@2
|
61 |
IMPORT_C void SelectResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
62 |
|
williamr@2
|
63 |
/** Send an 'up' response.
|
williamr@2
|
64 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
65 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
66 |
@param aError The response error.
|
williamr@2
|
67 |
*/
|
williamr@2
|
68 |
IMPORT_C void UpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
69 |
|
williamr@2
|
70 |
/** Send a 'down' response.
|
williamr@2
|
71 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
72 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
73 |
@param aError The response error.
|
williamr@2
|
74 |
*/
|
williamr@2
|
75 |
IMPORT_C void DownResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
76 |
|
williamr@2
|
77 |
/** Send a 'left' response.
|
williamr@2
|
78 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
79 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
80 |
@param aError The response error.
|
williamr@2
|
81 |
*/
|
williamr@2
|
82 |
IMPORT_C void LeftResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
83 |
|
williamr@2
|
84 |
/** Send a 'right' response.
|
williamr@2
|
85 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
86 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
87 |
@param aError The response error.
|
williamr@2
|
88 |
*/
|
williamr@2
|
89 |
IMPORT_C void RightResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
90 |
|
williamr@2
|
91 |
/** Send a 'right up' response.
|
williamr@2
|
92 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
93 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
94 |
@param aError The response error.
|
williamr@2
|
95 |
*/
|
williamr@2
|
96 |
IMPORT_C void RightUpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
97 |
|
williamr@2
|
98 |
/** Send a 'right down' response.
|
williamr@2
|
99 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
100 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
101 |
@param aError The response error.
|
williamr@2
|
102 |
*/
|
williamr@2
|
103 |
IMPORT_C void RightDownResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
104 |
|
williamr@2
|
105 |
/** Send a 'left up' response.
|
williamr@2
|
106 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
107 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
108 |
@param aError The response error.
|
williamr@2
|
109 |
*/
|
williamr@2
|
110 |
IMPORT_C void LeftUpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
111 |
|
williamr@2
|
112 |
/** Send a 'left down' response.
|
williamr@2
|
113 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
114 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
115 |
@param aError The response error.
|
williamr@2
|
116 |
*/
|
williamr@2
|
117 |
IMPORT_C void LeftDownResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
118 |
|
williamr@2
|
119 |
/** Send a 'root menu' response.
|
williamr@2
|
120 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
121 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
122 |
@param aError The response error.
|
williamr@2
|
123 |
*/
|
williamr@2
|
124 |
IMPORT_C void RootMenuResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
125 |
|
williamr@2
|
126 |
/** Send a 'setup menu' response.
|
williamr@2
|
127 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
128 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
129 |
@param aError The response error.
|
williamr@2
|
130 |
*/
|
williamr@2
|
131 |
IMPORT_C void SetupMenuResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
132 |
|
williamr@2
|
133 |
/** Send a 'contents menu' response.
|
williamr@2
|
134 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
135 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
136 |
@param aError The response error.
|
williamr@2
|
137 |
*/
|
williamr@2
|
138 |
IMPORT_C void ContentsMenuResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
139 |
|
williamr@2
|
140 |
/** Send a 'favorite menu' response.
|
williamr@2
|
141 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
142 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
143 |
@param aError The response error.
|
williamr@2
|
144 |
*/
|
williamr@2
|
145 |
IMPORT_C void FavoriteMenuResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
146 |
|
williamr@2
|
147 |
/** Send an 'exit' response.
|
williamr@2
|
148 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
149 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
150 |
@param aError The response error.
|
williamr@2
|
151 |
*/
|
williamr@2
|
152 |
IMPORT_C void ExitResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
153 |
|
williamr@2
|
154 |
/** Send a '0' response.
|
williamr@2
|
155 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
156 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
157 |
@param aError The response error.
|
williamr@2
|
158 |
*/
|
williamr@2
|
159 |
IMPORT_C void _0Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
160 |
|
williamr@2
|
161 |
/** Send a '1' response.
|
williamr@2
|
162 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
163 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
164 |
@param aError The response error.
|
williamr@2
|
165 |
*/
|
williamr@2
|
166 |
IMPORT_C void _1Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
167 |
|
williamr@2
|
168 |
/** Send a '2' response.
|
williamr@2
|
169 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
170 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
171 |
@param aError The response error.
|
williamr@2
|
172 |
*/
|
williamr@2
|
173 |
IMPORT_C void _2Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
174 |
|
williamr@2
|
175 |
/** Send a '3' response.
|
williamr@2
|
176 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
177 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
178 |
@param aError The response error.
|
williamr@2
|
179 |
*/
|
williamr@2
|
180 |
IMPORT_C void _3Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
181 |
|
williamr@2
|
182 |
/** Send a '4'response.
|
williamr@2
|
183 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
184 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
185 |
@param aError The response error.
|
williamr@2
|
186 |
*/
|
williamr@2
|
187 |
IMPORT_C void _4Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
188 |
|
williamr@2
|
189 |
/** Send a '5' response.
|
williamr@2
|
190 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
191 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
192 |
@param aError The response error.
|
williamr@2
|
193 |
*/
|
williamr@2
|
194 |
IMPORT_C void _5Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
195 |
|
williamr@2
|
196 |
/** Send a '6' response.
|
williamr@2
|
197 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
198 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
199 |
@param aError The response error.
|
williamr@2
|
200 |
*/
|
williamr@2
|
201 |
IMPORT_C void _6Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
202 |
|
williamr@2
|
203 |
/** Send a '7' response.
|
williamr@2
|
204 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
205 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
206 |
@param aError The response error.
|
williamr@2
|
207 |
*/
|
williamr@2
|
208 |
IMPORT_C void _7Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
209 |
|
williamr@2
|
210 |
/** Send a '8' response.
|
williamr@2
|
211 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
212 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
213 |
@param aError The response error.
|
williamr@2
|
214 |
*/
|
williamr@2
|
215 |
IMPORT_C void _8Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
216 |
|
williamr@2
|
217 |
/** Send a '9' response.
|
williamr@2
|
218 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
219 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
220 |
@param aError The response error.
|
williamr@2
|
221 |
*/
|
williamr@2
|
222 |
IMPORT_C void _9Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
223 |
|
williamr@2
|
224 |
/** Send a 'dot' response.
|
williamr@2
|
225 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
226 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
227 |
@param aError The response error.
|
williamr@2
|
228 |
*/
|
williamr@2
|
229 |
IMPORT_C void DotResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
230 |
|
williamr@2
|
231 |
/** Send an 'enter' response.
|
williamr@2
|
232 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
233 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
234 |
@param aError The response error.
|
williamr@2
|
235 |
*/
|
williamr@2
|
236 |
IMPORT_C void EnterResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
237 |
|
williamr@2
|
238 |
/** Send a 'clear' response.
|
williamr@2
|
239 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
240 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
241 |
@param aError The response error.
|
williamr@2
|
242 |
*/
|
williamr@2
|
243 |
IMPORT_C void ClearResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
244 |
|
williamr@2
|
245 |
/** Send a 'channel up' response.
|
williamr@2
|
246 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
247 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
248 |
@param aError The response error.
|
williamr@2
|
249 |
*/
|
williamr@2
|
250 |
IMPORT_C void ChannelUpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
251 |
|
williamr@2
|
252 |
/** Send a 'channel down' response.
|
williamr@2
|
253 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
254 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
255 |
@param aError The response error.
|
williamr@2
|
256 |
*/
|
williamr@2
|
257 |
IMPORT_C void ChannelDownResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
258 |
|
williamr@2
|
259 |
/** Send a 'previous channel' response.
|
williamr@2
|
260 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
261 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
262 |
@param aError The response error.
|
williamr@2
|
263 |
*/
|
williamr@2
|
264 |
IMPORT_C void PreviousChannelResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
265 |
|
williamr@2
|
266 |
/** Send a 'sound select' response.
|
williamr@2
|
267 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
268 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
269 |
@param aError The response error.
|
williamr@2
|
270 |
*/
|
williamr@2
|
271 |
IMPORT_C void SoundSelectResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
272 |
|
williamr@2
|
273 |
/** Send a 'input select' response.
|
williamr@2
|
274 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
275 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
276 |
@param aError The response error.
|
williamr@2
|
277 |
*/
|
williamr@2
|
278 |
IMPORT_C void InputSelectResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
279 |
|
williamr@2
|
280 |
/** Send a 'display information' response.
|
williamr@2
|
281 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
282 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
283 |
@param aError The response error.
|
williamr@2
|
284 |
*/
|
williamr@2
|
285 |
IMPORT_C void DisplayInformationResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
286 |
|
williamr@2
|
287 |
/** Send a 'help' response.
|
williamr@2
|
288 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
289 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
290 |
@param aError The response error.
|
williamr@2
|
291 |
*/
|
williamr@2
|
292 |
IMPORT_C void HelpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
293 |
|
williamr@2
|
294 |
/** Send a 'page up' response.
|
williamr@2
|
295 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
296 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
297 |
@param aError The response error.
|
williamr@2
|
298 |
*/
|
williamr@2
|
299 |
IMPORT_C void PageUpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
300 |
|
williamr@2
|
301 |
/** Send a 'page down' response.
|
williamr@2
|
302 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
303 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
304 |
@param aError The response error.
|
williamr@2
|
305 |
*/
|
williamr@2
|
306 |
IMPORT_C void PageDownResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
307 |
|
williamr@2
|
308 |
/** Send a 'power' response.
|
williamr@2
|
309 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
310 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
311 |
@param aError The response error.
|
williamr@2
|
312 |
*/
|
williamr@2
|
313 |
IMPORT_C void PowerResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
314 |
|
williamr@2
|
315 |
/** Send a 'volume up' response.
|
williamr@2
|
316 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
317 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
318 |
@param aError The response error.
|
williamr@2
|
319 |
*/
|
williamr@2
|
320 |
IMPORT_C void VolumeUpResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
321 |
|
williamr@2
|
322 |
/** Send a 'volume down' response.
|
williamr@2
|
323 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
324 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
325 |
@param aError The response error.
|
williamr@2
|
326 |
*/
|
williamr@2
|
327 |
IMPORT_C void VolumeDownResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
328 |
|
williamr@2
|
329 |
/** Send a 'mute' response.
|
williamr@2
|
330 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
331 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
332 |
@param aError The response error.
|
williamr@2
|
333 |
*/
|
williamr@2
|
334 |
IMPORT_C void MuteResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
335 |
|
williamr@2
|
336 |
/** Send a play response.
|
williamr@2
|
337 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
338 |
@param aStatus Used by RemCon to indicate completion of the request.
|
williamr@2
|
339 |
@param aError The response error.
|
williamr@2
|
340 |
*/
|
williamr@2
|
341 |
IMPORT_C void PlayResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
342 |
|
williamr@2
|
343 |
/** Send a stop response.
|
williamr@2
|
344 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
345 |
@param aStatus Used by RemCon to indicate completion of the request.
|
williamr@2
|
346 |
@param aError The response error.
|
williamr@2
|
347 |
*/
|
williamr@2
|
348 |
IMPORT_C void StopResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
349 |
|
williamr@2
|
350 |
/** Send a 'pause' response.
|
williamr@2
|
351 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
352 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
353 |
@param aError The response error.
|
williamr@2
|
354 |
*/
|
williamr@2
|
355 |
IMPORT_C void PauseResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
356 |
|
williamr@2
|
357 |
/** Send a 'record' response.
|
williamr@2
|
358 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
359 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
360 |
@param aError The response error.
|
williamr@2
|
361 |
*/
|
williamr@2
|
362 |
IMPORT_C void RecordResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
363 |
|
williamr@2
|
364 |
/** Send a 'rewind' response.
|
williamr@2
|
365 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
366 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
367 |
@param aError The response error.
|
williamr@2
|
368 |
*/
|
williamr@2
|
369 |
IMPORT_C void RewindResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
370 |
|
williamr@2
|
371 |
/** Send a 'fast forward' response.
|
williamr@2
|
372 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
373 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
374 |
@param aError The response error.
|
williamr@2
|
375 |
*/
|
williamr@2
|
376 |
IMPORT_C void FastForwardResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
377 |
|
williamr@2
|
378 |
/** Send an 'eject' response.
|
williamr@2
|
379 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
380 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
381 |
@param aError The response error.
|
williamr@2
|
382 |
*/
|
williamr@2
|
383 |
IMPORT_C void EjectResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
384 |
|
williamr@2
|
385 |
/** Send a 'forward' response.
|
williamr@2
|
386 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
387 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
388 |
@param aError The response error.
|
williamr@2
|
389 |
*/
|
williamr@2
|
390 |
IMPORT_C void ForwardResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
391 |
|
williamr@2
|
392 |
/** Send a 'backward' response.
|
williamr@2
|
393 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
394 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
395 |
@param aError The response error.
|
williamr@2
|
396 |
*/
|
williamr@2
|
397 |
IMPORT_C void BackwardResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
398 |
|
williamr@2
|
399 |
/** Send an 'angle' response.
|
williamr@2
|
400 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
401 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
402 |
@param aError The response error.
|
williamr@2
|
403 |
*/
|
williamr@2
|
404 |
IMPORT_C void AngleResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
405 |
|
williamr@2
|
406 |
/** Send a 'subpicture' response.
|
williamr@2
|
407 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
408 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
409 |
@param aError The response error.
|
williamr@2
|
410 |
*/
|
williamr@2
|
411 |
IMPORT_C void SubpictureResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
412 |
|
williamr@2
|
413 |
/** Send a 'pause play function' response.
|
williamr@2
|
414 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
415 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
416 |
@param aError The response error.
|
williamr@2
|
417 |
*/
|
williamr@2
|
418 |
IMPORT_C void PausePlayFunctionResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
419 |
|
williamr@2
|
420 |
/** Send a 'restore volume function' response.
|
williamr@2
|
421 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
422 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
423 |
@param aError The response error.
|
williamr@2
|
424 |
*/
|
williamr@2
|
425 |
IMPORT_C void RestoreVolumeFunctionResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
426 |
|
williamr@2
|
427 |
/** Send a 'tune function' response.
|
williamr@2
|
428 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
429 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
430 |
@param aError The response error.
|
williamr@2
|
431 |
*/
|
williamr@2
|
432 |
IMPORT_C void TuneFunctionResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
433 |
|
williamr@2
|
434 |
/** Send a 'select disk function' response.
|
williamr@2
|
435 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
436 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
437 |
@param aError The response error.
|
williamr@2
|
438 |
*/
|
williamr@2
|
439 |
IMPORT_C void SelectDiskFunctionResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
440 |
|
williamr@2
|
441 |
/** Send a 'select AV input function' response.
|
williamr@2
|
442 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
443 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
444 |
@param aError The response error.
|
williamr@2
|
445 |
*/
|
williamr@2
|
446 |
IMPORT_C void SelectAvInputFunctionResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
447 |
|
williamr@2
|
448 |
/** Send a 'select audio input function' response.
|
williamr@2
|
449 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
450 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
451 |
@param aError The response error.
|
williamr@2
|
452 |
*/
|
williamr@2
|
453 |
IMPORT_C void SelectAudioInputFunctionResponse(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
454 |
|
williamr@2
|
455 |
/** Send an 'F1' response.
|
williamr@2
|
456 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
457 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
458 |
@param aError The response error.
|
williamr@2
|
459 |
*/
|
williamr@2
|
460 |
IMPORT_C void F1Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
461 |
|
williamr@2
|
462 |
/** Send an 'F2' response.
|
williamr@2
|
463 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
464 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
465 |
@param aError The response error.
|
williamr@2
|
466 |
*/
|
williamr@2
|
467 |
IMPORT_C void F2Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
468 |
|
williamr@2
|
469 |
/** Send an 'F3' response.
|
williamr@2
|
470 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
471 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
472 |
@param aError The response error.
|
williamr@2
|
473 |
*/
|
williamr@2
|
474 |
IMPORT_C void F3Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
475 |
|
williamr@2
|
476 |
/** Send an 'F4' response.
|
williamr@2
|
477 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
478 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
479 |
@param aError The response error.
|
williamr@2
|
480 |
*/
|
williamr@2
|
481 |
IMPORT_C void F4Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
482 |
|
williamr@2
|
483 |
/** Send an 'F5' response.
|
williamr@2
|
484 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
485 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
486 |
@param aError The response error.
|
williamr@2
|
487 |
*/
|
williamr@2
|
488 |
IMPORT_C void F5Response(TRequestStatus& aStatus, TInt aError);
|
williamr@2
|
489 |
|
williamr@2
|
490 |
/** Send a response.
|
williamr@2
|
491 |
Only one response per target session can be outstanding at any one time.
|
williamr@2
|
492 |
This function may be used to send a response when it is undesirable to use the
|
williamr@2
|
493 |
'specific' response-sending methods (PlayResponse, StopResponse etc).
|
williamr@2
|
494 |
@param aStatus Used by RemCon to indicate completion of the send request.
|
williamr@2
|
495 |
@param aOperationId The operation ID of the command we are sending a response to.
|
williamr@2
|
496 |
@param aError The response error.
|
williamr@2
|
497 |
*/
|
williamr@2
|
498 |
IMPORT_C void SendResponse(TRequestStatus& aStatus, TRemConCoreApiOperationId aOperationId, TInt aError);
|
williamr@2
|
499 |
|
williamr@2
|
500 |
private:
|
williamr@2
|
501 |
/**
|
williamr@2
|
502 |
Constructor.
|
williamr@2
|
503 |
@param aInterfaceSelector The interface selector.
|
williamr@2
|
504 |
@param aObserver The observer of this interface.
|
williamr@2
|
505 |
*/
|
williamr@2
|
506 |
CRemConCoreApiTarget(CRemConInterfaceSelector& aInterfaceSelector,
|
williamr@2
|
507 |
MRemConCoreApiTargetObserver& aObserver);
|
williamr@2
|
508 |
|
williamr@2
|
509 |
private: // utility
|
williamr@2
|
510 |
/**
|
williamr@2
|
511 |
Utility to send a response.
|
williamr@2
|
512 |
@param aStatus TRequestStatus for the send operation.
|
williamr@2
|
513 |
@param aOperationId The operation ID.
|
williamr@2
|
514 |
*/
|
williamr@2
|
515 |
void SendGenericResponse(TRequestStatus& aStatus,
|
williamr@2
|
516 |
TRemConCoreApiOperationId aOperationId,
|
williamr@2
|
517 |
TInt aError);
|
williamr@2
|
518 |
|
williamr@2
|
519 |
private: // from CRemConInterfaceBase
|
williamr@2
|
520 |
TAny* GetInterfaceIf(TUid aUid);
|
williamr@2
|
521 |
|
williamr@2
|
522 |
private: // from MRemConInterfaceIf
|
williamr@2
|
523 |
void MrcibNewMessage(TUint aOperationId, const TDesC8& aData);
|
williamr@2
|
524 |
|
williamr@2
|
525 |
private: // utility
|
williamr@2
|
526 |
void HandlePlay(const TDesC8& aData, TRemConCoreApiButtonAction aButton);
|
williamr@2
|
527 |
void HandleTuneFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton);
|
williamr@2
|
528 |
void HandleSelectDiskFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton);
|
williamr@2
|
529 |
void HandleSelectAvInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton);
|
williamr@2
|
530 |
void HandleSelectAudioInputFunction(const TDesC8& aData, TRemConCoreApiButtonAction aButton);
|
williamr@2
|
531 |
|
williamr@2
|
532 |
private: // unowned
|
williamr@2
|
533 |
MRemConCoreApiTargetObserver& iObserver;
|
williamr@2
|
534 |
|
williamr@2
|
535 |
private: // owned
|
williamr@2
|
536 |
TBuf8<KRemConCoreApiMaxOperationSpecificDataSize> iRspData;
|
williamr@2
|
537 |
TUint iNumRemotes;
|
williamr@2
|
538 |
TFixedArray<TBool,ELargestOperationId> iOutstandingOperations;
|
williamr@2
|
539 |
};
|
williamr@2
|
540 |
|
williamr@2
|
541 |
#endif // REMCONCOREAPITARGET_H
|