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