sl@0
|
1 |
// Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
|
sl@0
|
2 |
// All rights reserved.
|
sl@0
|
3 |
// This component and the accompanying materials are made available
|
sl@0
|
4 |
// under the terms of "Eclipse Public License v1.0"
|
sl@0
|
5 |
// which accompanies this distribution, and is available
|
sl@0
|
6 |
// at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
sl@0
|
7 |
//
|
sl@0
|
8 |
// Initial Contributors:
|
sl@0
|
9 |
// Nokia Corporation - initial contribution.
|
sl@0
|
10 |
//
|
sl@0
|
11 |
// Contributors:
|
sl@0
|
12 |
//
|
sl@0
|
13 |
// Description:
|
sl@0
|
14 |
//
|
sl@0
|
15 |
|
sl@0
|
16 |
#ifndef __SPEECHRECOGNITIONCUSTOMCOMMANDPARSER_H__
|
sl@0
|
17 |
#define __SPEECHRECOGNITIONCUSTOMCOMMANDPARSER_H__
|
sl@0
|
18 |
|
sl@0
|
19 |
// INCLUDE FILES
|
sl@0
|
20 |
#include <mmf/common/mmfcontroller.h>
|
sl@0
|
21 |
#include <mmf/common/speechrecognitioncustomcommandimplementor.h>
|
sl@0
|
22 |
#include <mmf/common/speechrecognitiondataclient.h>
|
sl@0
|
23 |
|
sl@0
|
24 |
// CLASS DECLARATION
|
sl@0
|
25 |
|
sl@0
|
26 |
/**
|
sl@0
|
27 |
@publishedAll
|
sl@0
|
28 |
@released
|
sl@0
|
29 |
|
sl@0
|
30 |
This is the main class of Speech Recognition Custom Commands Parser.
|
sl@0
|
31 |
|
sl@0
|
32 |
@since 8.0
|
sl@0
|
33 |
*/
|
sl@0
|
34 |
class CSpeechRecognitionCustomCommandParser : public CMMFCustomCommandParserBase
|
sl@0
|
35 |
{
|
sl@0
|
36 |
public:
|
sl@0
|
37 |
|
sl@0
|
38 |
/**
|
sl@0
|
39 |
Factory function for creating this class.
|
sl@0
|
40 |
|
sl@0
|
41 |
@param aImplementor
|
sl@0
|
42 |
A reference to a custom commands implementor.
|
sl@0
|
43 |
|
sl@0
|
44 |
@return A pointer to a CSpeechRecognitionCustomCommandParser object.
|
sl@0
|
45 |
|
sl@0
|
46 |
@since 8.0
|
sl@0
|
47 |
*/
|
sl@0
|
48 |
IMPORT_C static CSpeechRecognitionCustomCommandParser* NewL(
|
sl@0
|
49 |
MSpeechRecognitionCustomCommandImplementor&
|
sl@0
|
50 |
aImplementor);
|
sl@0
|
51 |
|
sl@0
|
52 |
/**
|
sl@0
|
53 |
Destructor.
|
sl@0
|
54 |
|
sl@0
|
55 |
@since 8.0
|
sl@0
|
56 |
*/
|
sl@0
|
57 |
IMPORT_C ~CSpeechRecognitionCustomCommandParser();
|
sl@0
|
58 |
|
sl@0
|
59 |
/**
|
sl@0
|
60 |
@internalTechnology
|
sl@0
|
61 |
|
sl@0
|
62 |
Handles the request from the client.
|
sl@0
|
63 |
|
sl@0
|
64 |
@param aMessage
|
sl@0
|
65 |
The message containing the information of the request.
|
sl@0
|
66 |
|
sl@0
|
67 |
@since 8.0
|
sl@0
|
68 |
*/
|
sl@0
|
69 |
void HandleRequest(TMMFMessage& aMessage);
|
sl@0
|
70 |
|
sl@0
|
71 |
private:
|
sl@0
|
72 |
/**
|
sl@0
|
73 |
C++ constructor for a CSpeechRecognitionCustomCommandParser class.
|
sl@0
|
74 |
|
sl@0
|
75 |
@param aImplementor
|
sl@0
|
76 |
A reference to a custom commands implementor.
|
sl@0
|
77 |
|
sl@0
|
78 |
@since 8.0
|
sl@0
|
79 |
*/
|
sl@0
|
80 |
CSpeechRecognitionCustomCommandParser(
|
sl@0
|
81 |
MSpeechRecognitionCustomCommandImplementor& aImplementor);
|
sl@0
|
82 |
|
sl@0
|
83 |
/**
|
sl@0
|
84 |
Private method to handle the request from the client.
|
sl@0
|
85 |
|
sl@0
|
86 |
@param aMessage
|
sl@0
|
87 |
The message containing the information of the request.
|
sl@0
|
88 |
|
sl@0
|
89 |
@since 8.0
|
sl@0
|
90 |
*/
|
sl@0
|
91 |
void DoHandleRequestL(TMMFMessage& aMessage);
|
sl@0
|
92 |
|
sl@0
|
93 |
/**
|
sl@0
|
94 |
Adds a new pronunciation for the given model into the specified lexicon.
|
sl@0
|
95 |
|
sl@0
|
96 |
@param aMessage
|
sl@0
|
97 |
The message containing the information of the request.
|
sl@0
|
98 |
|
sl@0
|
99 |
@since 8.0
|
sl@0
|
100 |
*/
|
sl@0
|
101 |
void DoAddPronunciationL(TMMFMessage& aMessage);
|
sl@0
|
102 |
|
sl@0
|
103 |
/**
|
sl@0
|
104 |
Adds a new rule for the given pronunciation into the specified grammar.
|
sl@0
|
105 |
|
sl@0
|
106 |
@param aMessage
|
sl@0
|
107 |
The message containing the information of the request.
|
sl@0
|
108 |
|
sl@0
|
109 |
@since 8.0
|
sl@0
|
110 |
*/
|
sl@0
|
111 |
void DoAddRuleL(TMMFMessage& aMessage);
|
sl@0
|
112 |
|
sl@0
|
113 |
/**
|
sl@0
|
114 |
Cancels the current operation.
|
sl@0
|
115 |
|
sl@0
|
116 |
@since 8.0
|
sl@0
|
117 |
*/
|
sl@0
|
118 |
void DoCancel();
|
sl@0
|
119 |
|
sl@0
|
120 |
/**
|
sl@0
|
121 |
Commits uncommitted database operations to the database.
|
sl@0
|
122 |
|
sl@0
|
123 |
@since 8.0
|
sl@0
|
124 |
*/
|
sl@0
|
125 |
void DoCommitChangesL();
|
sl@0
|
126 |
|
sl@0
|
127 |
/**
|
sl@0
|
128 |
Creates a new grammar.
|
sl@0
|
129 |
|
sl@0
|
130 |
@param aMessage
|
sl@0
|
131 |
A message containing the information of the request.
|
sl@0
|
132 |
|
sl@0
|
133 |
@since 8.0
|
sl@0
|
134 |
*/
|
sl@0
|
135 |
void DoCreateGrammarL(TMMFMessage& aMessage);
|
sl@0
|
136 |
|
sl@0
|
137 |
/**
|
sl@0
|
138 |
Creates a new lexicon.
|
sl@0
|
139 |
|
sl@0
|
140 |
@param aMessage
|
sl@0
|
141 |
The message containing the information of the request.
|
sl@0
|
142 |
|
sl@0
|
143 |
@since 8.0
|
sl@0
|
144 |
*/
|
sl@0
|
145 |
void DoCreateLexiconL(TMMFMessage& aMessage);
|
sl@0
|
146 |
|
sl@0
|
147 |
/**
|
sl@0
|
148 |
Creates a new model bank.
|
sl@0
|
149 |
|
sl@0
|
150 |
@param aMessage
|
sl@0
|
151 |
The message containing the information of the request.
|
sl@0
|
152 |
|
sl@0
|
153 |
@since 8.0
|
sl@0
|
154 |
*/
|
sl@0
|
155 |
void DoCreateModelBankL(TMMFMessage& aMessage);
|
sl@0
|
156 |
|
sl@0
|
157 |
/**
|
sl@0
|
158 |
Ends the current recognition session. Resources allocated for recognition are freed.
|
sl@0
|
159 |
|
sl@0
|
160 |
@since 8.0
|
sl@0
|
161 |
*/
|
sl@0
|
162 |
void DoEndRecSessionL();
|
sl@0
|
163 |
|
sl@0
|
164 |
/**
|
sl@0
|
165 |
Returns all grammar IDs that belong to the current client, whose UID was set with
|
sl@0
|
166 |
SetClientUid().
|
sl@0
|
167 |
|
sl@0
|
168 |
@since 8.0
|
sl@0
|
169 |
*/
|
sl@0
|
170 |
void DoGetAllClientGrammarIDsL();
|
sl@0
|
171 |
|
sl@0
|
172 |
/**
|
sl@0
|
173 |
Returns all lexicon IDs that belong to the current client, whose UID was set with
|
sl@0
|
174 |
SetClientUid().
|
sl@0
|
175 |
|
sl@0
|
176 |
@since 8.0
|
sl@0
|
177 |
*/
|
sl@0
|
178 |
void DoGetAllClientLexiconIDsL();
|
sl@0
|
179 |
|
sl@0
|
180 |
/**
|
sl@0
|
181 |
Returns all model bank IDs that belong to the current client, whose UID was set with
|
sl@0
|
182 |
SetClientUid().
|
sl@0
|
183 |
|
sl@0
|
184 |
@since 8.0
|
sl@0
|
185 |
*/
|
sl@0
|
186 |
void DoGetAllClientModelBankIDsL();
|
sl@0
|
187 |
|
sl@0
|
188 |
/**
|
sl@0
|
189 |
Returns all grammar IDs that exist (for all clients).
|
sl@0
|
190 |
|
sl@0
|
191 |
@return An error code indicating if the function call was successful. KErrNone on success, otherwise
|
sl@0
|
192 |
another of the system-wide error codes.
|
sl@0
|
193 |
|
sl@0
|
194 |
@since 8.0
|
sl@0
|
195 |
*/
|
sl@0
|
196 |
void DoGetAllGrammarIDsL();
|
sl@0
|
197 |
|
sl@0
|
198 |
/**
|
sl@0
|
199 |
Returns all lexicon IDs that exist (for all clients).
|
sl@0
|
200 |
|
sl@0
|
201 |
@since 8.0
|
sl@0
|
202 |
*/
|
sl@0
|
203 |
void DoGetAllLexiconIDsL();
|
sl@0
|
204 |
|
sl@0
|
205 |
/**
|
sl@0
|
206 |
Returns all model bank IDs that exist (for all clients).
|
sl@0
|
207 |
|
sl@0
|
208 |
@since 8.0
|
sl@0
|
209 |
*/
|
sl@0
|
210 |
void DoGetAllModelBankIDsL();
|
sl@0
|
211 |
|
sl@0
|
212 |
/**
|
sl@0
|
213 |
Returns all model IDs that exist in the specified model bank.
|
sl@0
|
214 |
|
sl@0
|
215 |
@param aMessage
|
sl@0
|
216 |
The message containing the information of the request.
|
sl@0
|
217 |
|
sl@0
|
218 |
@since 8.0
|
sl@0
|
219 |
*/
|
sl@0
|
220 |
void DoGetAllModelIDsL(TMMFMessage& aMessage);
|
sl@0
|
221 |
|
sl@0
|
222 |
/**
|
sl@0
|
223 |
Returns all pronunciation IDs that exist in the specified lexicon.
|
sl@0
|
224 |
|
sl@0
|
225 |
@param aMessage
|
sl@0
|
226 |
The message containing the information of the request.
|
sl@0
|
227 |
|
sl@0
|
228 |
@since 8.0
|
sl@0
|
229 |
*/
|
sl@0
|
230 |
void DoGetAllPronunciationIDsL(TMMFMessage& aMessage);
|
sl@0
|
231 |
|
sl@0
|
232 |
/**
|
sl@0
|
233 |
Returns all rule IDs that exist in the specified grammar.
|
sl@0
|
234 |
|
sl@0
|
235 |
@param aMessage
|
sl@0
|
236 |
The message containing the information of the request.
|
sl@0
|
237 |
|
sl@0
|
238 |
@since 8.0
|
sl@0
|
239 |
*/
|
sl@0
|
240 |
void DoGetAllRuleIDsL(TMMFMessage& aMessage);
|
sl@0
|
241 |
|
sl@0
|
242 |
/**
|
sl@0
|
243 |
Returns the number of models available for training system wide, based on available disk space.
|
sl@0
|
244 |
|
sl@0
|
245 |
@param aMessage
|
sl@0
|
246 |
The message containing the information of the request.
|
sl@0
|
247 |
|
sl@0
|
248 |
@since 8.0
|
sl@0
|
249 |
*/
|
sl@0
|
250 |
void DoGetAvailableStorageL(TMMFMessage& aMessage);
|
sl@0
|
251 |
|
sl@0
|
252 |
/**
|
sl@0
|
253 |
Returns the engine properties.
|
sl@0
|
254 |
|
sl@0
|
255 |
@param aMessage
|
sl@0
|
256 |
The message containing the information of the request.
|
sl@0
|
257 |
|
sl@0
|
258 |
@since 8.0
|
sl@0
|
259 |
*/
|
sl@0
|
260 |
void DoGetEnginePropertiesL(TMMFMessage& aMessage);
|
sl@0
|
261 |
|
sl@0
|
262 |
/**
|
sl@0
|
263 |
Returns the number of models in the specified model bank.
|
sl@0
|
264 |
|
sl@0
|
265 |
@param aMessage
|
sl@0
|
266 |
The message containing the information of the request.
|
sl@0
|
267 |
|
sl@0
|
268 |
@since 8.0
|
sl@0
|
269 |
*/
|
sl@0
|
270 |
void DoGetModelCountL(TMMFMessage& aMessage);
|
sl@0
|
271 |
|
sl@0
|
272 |
/**
|
sl@0
|
273 |
Checks if the rule is valid or not.
|
sl@0
|
274 |
|
sl@0
|
275 |
@param aMessage
|
sl@0
|
276 |
The message containing the information of the request.
|
sl@0
|
277 |
|
sl@0
|
278 |
@since 8.0
|
sl@0
|
279 |
*/
|
sl@0
|
280 |
void DoGetRuleValidityL(TMMFMessage& aMessage);
|
sl@0
|
281 |
|
sl@0
|
282 |
/**
|
sl@0
|
283 |
Returns the duration of the utterance for the specified model.
|
sl@0
|
284 |
|
sl@0
|
285 |
@param aMessage
|
sl@0
|
286 |
The message containing the information of the request.
|
sl@0
|
287 |
|
sl@0
|
288 |
@since 8.0
|
sl@0
|
289 |
*/
|
sl@0
|
290 |
void DoGetUtteranceDurationL(TMMFMessage& aMessage);
|
sl@0
|
291 |
|
sl@0
|
292 |
/**
|
sl@0
|
293 |
Loads the specified grammar into the recognizer; done prior to recognition.
|
sl@0
|
294 |
|
sl@0
|
295 |
@param aMessage
|
sl@0
|
296 |
The message containing the information of the request.
|
sl@0
|
297 |
|
sl@0
|
298 |
@since 8.0
|
sl@0
|
299 |
*/
|
sl@0
|
300 |
void DoLoadGrammarL(TMMFMessage& aMessage);
|
sl@0
|
301 |
|
sl@0
|
302 |
/**
|
sl@0
|
303 |
Loads the specified lexicon into the recognizer; done prior to recognition.
|
sl@0
|
304 |
|
sl@0
|
305 |
@param aMessage
|
sl@0
|
306 |
The message containing the information of the request.
|
sl@0
|
307 |
|
sl@0
|
308 |
@since 8.0
|
sl@0
|
309 |
*/
|
sl@0
|
310 |
void DoLoadLexiconL(TMMFMessage& aMessage);
|
sl@0
|
311 |
|
sl@0
|
312 |
/**
|
sl@0
|
313 |
Loads the specified model bank into the recognizer; done prior to recognition.
|
sl@0
|
314 |
|
sl@0
|
315 |
@param aMessage
|
sl@0
|
316 |
The message containing the information of the request.
|
sl@0
|
317 |
|
sl@0
|
318 |
@since 8.0
|
sl@0
|
319 |
*/
|
sl@0
|
320 |
void DoLoadModelsL(TMMFMessage& aMessage);
|
sl@0
|
321 |
|
sl@0
|
322 |
/**
|
sl@0
|
323 |
Plays the previously trained utterance.
|
sl@0
|
324 |
|
sl@0
|
325 |
@param aMessage
|
sl@0
|
326 |
The message containing the information of the request.
|
sl@0
|
327 |
|
sl@0
|
328 |
@since 8.0
|
sl@0
|
329 |
*/
|
sl@0
|
330 |
void DoPlayUtteranceL(TMMFMessage& aMessage);
|
sl@0
|
331 |
|
sl@0
|
332 |
/**
|
sl@0
|
333 |
Initiates recognition; performed following loading of model bank, lexicon, and grammar.
|
sl@0
|
334 |
|
sl@0
|
335 |
@param aMessage
|
sl@0
|
336 |
The message containing the information of the request.
|
sl@0
|
337 |
|
sl@0
|
338 |
@since 8.0
|
sl@0
|
339 |
*/
|
sl@0
|
340 |
void DoRecognizeL(TMMFMessage& aMessage);
|
sl@0
|
341 |
|
sl@0
|
342 |
/**
|
sl@0
|
343 |
Records user utterance for training and recognition.
|
sl@0
|
344 |
|
sl@0
|
345 |
@param aMessage
|
sl@0
|
346 |
The message containing the information of the request.
|
sl@0
|
347 |
|
sl@0
|
348 |
@since 8.0
|
sl@0
|
349 |
*/
|
sl@0
|
350 |
void DoRecordL(TMMFMessage& aMessage);
|
sl@0
|
351 |
|
sl@0
|
352 |
/**
|
sl@0
|
353 |
Removes the specified grammar from the permanent storage.
|
sl@0
|
354 |
|
sl@0
|
355 |
Removing a grammar will remove all rules within the grammar.
|
sl@0
|
356 |
|
sl@0
|
357 |
@param aMessage
|
sl@0
|
358 |
The message containing the information of the request.
|
sl@0
|
359 |
|
sl@0
|
360 |
@since 8.0
|
sl@0
|
361 |
*/
|
sl@0
|
362 |
void DoRemoveGrammarL(TMMFMessage& aMessage);
|
sl@0
|
363 |
|
sl@0
|
364 |
/**
|
sl@0
|
365 |
Removes the specified lexicon from the permanent storage.
|
sl@0
|
366 |
|
sl@0
|
367 |
Removing a lexicon will remove all pronunciations within the lexicon.
|
sl@0
|
368 |
|
sl@0
|
369 |
@param aMessage
|
sl@0
|
370 |
The message containing the information of the request.
|
sl@0
|
371 |
|
sl@0
|
372 |
@since 8.0
|
sl@0
|
373 |
*/
|
sl@0
|
374 |
void DoRemoveLexiconL(TMMFMessage& aMessage);
|
sl@0
|
375 |
|
sl@0
|
376 |
/**
|
sl@0
|
377 |
Removes the specified model bank from the permanent storage.
|
sl@0
|
378 |
|
sl@0
|
379 |
Removing a model bank will remove all models within the model bank.
|
sl@0
|
380 |
|
sl@0
|
381 |
@param aMessage
|
sl@0
|
382 |
The message containing the information of the request.
|
sl@0
|
383 |
|
sl@0
|
384 |
@since 8.0
|
sl@0
|
385 |
*/
|
sl@0
|
386 |
void DoRemoveModelBankL(TMMFMessage& aMessage);
|
sl@0
|
387 |
|
sl@0
|
388 |
/**
|
sl@0
|
389 |
Removes the specified model from the specified model bank permanently.
|
sl@0
|
390 |
|
sl@0
|
391 |
@param aMessage
|
sl@0
|
392 |
The message containing the information of the request.
|
sl@0
|
393 |
|
sl@0
|
394 |
@since 8.0
|
sl@0
|
395 |
*/
|
sl@0
|
396 |
void DoRemoveModelL(TMMFMessage& aMessage);
|
sl@0
|
397 |
|
sl@0
|
398 |
/**
|
sl@0
|
399 |
Removes the specified pronunciation from the specified lexicon permanently.
|
sl@0
|
400 |
|
sl@0
|
401 |
@param aMessage
|
sl@0
|
402 |
The message containing the information of the request.
|
sl@0
|
403 |
|
sl@0
|
404 |
@since 8.0
|
sl@0
|
405 |
*/
|
sl@0
|
406 |
void DoRemovePronunciationL(TMMFMessage& aMessage);
|
sl@0
|
407 |
|
sl@0
|
408 |
/**
|
sl@0
|
409 |
Removes the specified rule from the specified grammar permanently.
|
sl@0
|
410 |
|
sl@0
|
411 |
@param aMessage
|
sl@0
|
412 |
The message containing the information of the request.
|
sl@0
|
413 |
|
sl@0
|
414 |
@since 8.0
|
sl@0
|
415 |
*/
|
sl@0
|
416 |
void DoRemoveRuleL(TMMFMessage& aMessage);
|
sl@0
|
417 |
|
sl@0
|
418 |
/**
|
sl@0
|
419 |
Sets the UID of the client.
|
sl@0
|
420 |
|
sl@0
|
421 |
@param aMessage
|
sl@0
|
422 |
The message containing the information of the request.
|
sl@0
|
423 |
|
sl@0
|
424 |
@since 8.0
|
sl@0
|
425 |
*/
|
sl@0
|
426 |
void DoSetClientUidL(TMMFMessage& aMessage);
|
sl@0
|
427 |
|
sl@0
|
428 |
/**
|
sl@0
|
429 |
Starts a new recognition session.
|
sl@0
|
430 |
|
sl@0
|
431 |
@param aMessage
|
sl@0
|
432 |
The message containing the information of the request.
|
sl@0
|
433 |
|
sl@0
|
434 |
@since 8.0
|
sl@0
|
435 |
*/
|
sl@0
|
436 |
void DoStartRecSessionL(TMMFMessage& aMessage);
|
sl@0
|
437 |
|
sl@0
|
438 |
/**
|
sl@0
|
439 |
Trains a new model into the specified model bank.
|
sl@0
|
440 |
|
sl@0
|
441 |
@param aMessage
|
sl@0
|
442 |
The message containing the information of the request.
|
sl@0
|
443 |
|
sl@0
|
444 |
@since 8.0
|
sl@0
|
445 |
*/
|
sl@0
|
446 |
void DoTrainL(TMMFMessage& aMessage);
|
sl@0
|
447 |
|
sl@0
|
448 |
/**
|
sl@0
|
449 |
Unloads the specified rule from the specified grammar in temporary
|
sl@0
|
450 |
memory, previously loaded with LoadGrammarL().
|
sl@0
|
451 |
|
sl@0
|
452 |
The rule in the permanent storage remains intact.
|
sl@0
|
453 |
|
sl@0
|
454 |
@param aMessage
|
sl@0
|
455 |
The message containing the information of the request.
|
sl@0
|
456 |
|
sl@0
|
457 |
@since 8.0
|
sl@0
|
458 |
*/
|
sl@0
|
459 |
void DoUnloadRuleL(TMMFMessage& aMessage);
|
sl@0
|
460 |
|
sl@0
|
461 |
/**
|
sl@0
|
462 |
Loads the specified parameters into the engine.
|
sl@0
|
463 |
|
sl@0
|
464 |
@param aMessage
|
sl@0
|
465 |
The message containing the information of the request.
|
sl@0
|
466 |
|
sl@0
|
467 |
@since 8.0
|
sl@0
|
468 |
*/
|
sl@0
|
469 |
void DoLoadEngineParametersL(TMMFMessage& aMessage);
|
sl@0
|
470 |
|
sl@0
|
471 |
/**
|
sl@0
|
472 |
Copies the pronunciation ID array stored by a previous GetAllPronunciationIDs call.
|
sl@0
|
473 |
|
sl@0
|
474 |
@param aMessage
|
sl@0
|
475 |
The message containing the information of the request.
|
sl@0
|
476 |
|
sl@0
|
477 |
@since 8.0
|
sl@0
|
478 |
*/
|
sl@0
|
479 |
void DoCopyPronunciationIDArrayL(TMMFMessage& aMessage);
|
sl@0
|
480 |
|
sl@0
|
481 |
/**
|
sl@0
|
482 |
Copy the model ID array stored by a previous GetAllModelIDs call.
|
sl@0
|
483 |
|
sl@0
|
484 |
@param aMessage
|
sl@0
|
485 |
The message containing the information of the request.
|
sl@0
|
486 |
|
sl@0
|
487 |
@since 8.0
|
sl@0
|
488 |
*/
|
sl@0
|
489 |
void DoCopyModelIDArrayL(TMMFMessage& aMessage);
|
sl@0
|
490 |
|
sl@0
|
491 |
/**
|
sl@0
|
492 |
Copies the rule ID array stored by a previous GetAllRuleIDs call.
|
sl@0
|
493 |
|
sl@0
|
494 |
@param aMessage
|
sl@0
|
495 |
The message containing the information of the request.
|
sl@0
|
496 |
|
sl@0
|
497 |
@since 8.0
|
sl@0
|
498 |
*/
|
sl@0
|
499 |
void DoCopyRuleIDArrayL(TMMFMessage& aMessage);
|
sl@0
|
500 |
/**
|
sl@0
|
501 |
Copies the grammar ID array stored by a previous GetAllGrammarIDs call.
|
sl@0
|
502 |
|
sl@0
|
503 |
@param aMessage
|
sl@0
|
504 |
The message containing the information of the request.
|
sl@0
|
505 |
|
sl@0
|
506 |
@since 8.0
|
sl@0
|
507 |
*/
|
sl@0
|
508 |
void DoCopyGrammarIDArrayL(TMMFMessage& aMessage);
|
sl@0
|
509 |
|
sl@0
|
510 |
/**
|
sl@0
|
511 |
Copies the lexicon ID array stored by a previous GetAllLexiconIDs call.
|
sl@0
|
512 |
|
sl@0
|
513 |
@param aMessage
|
sl@0
|
514 |
The message containing the information of the request.
|
sl@0
|
515 |
|
sl@0
|
516 |
@since 8.0
|
sl@0
|
517 |
*/
|
sl@0
|
518 |
void DoCopyLexiconIDArrayL(TMMFMessage& aMessage);
|
sl@0
|
519 |
|
sl@0
|
520 |
/**
|
sl@0
|
521 |
Copies the modelBank ID array stored by a previous GetAllModelBankIDs call.
|
sl@0
|
522 |
|
sl@0
|
523 |
@param aMessage
|
sl@0
|
524 |
The message containing the information of the request.
|
sl@0
|
525 |
|
sl@0
|
526 |
@since 8.0
|
sl@0
|
527 |
*/
|
sl@0
|
528 |
void DoCopyModelBankIDArrayL(TMMFMessage& aMessage);
|
sl@0
|
529 |
|
sl@0
|
530 |
/**
|
sl@0
|
531 |
Externalises the result set into a descriptor, so that it can be copied into an array.
|
sl@0
|
532 |
*/
|
sl@0
|
533 |
void DoExternalizeResultSetL();
|
sl@0
|
534 |
|
sl@0
|
535 |
/**
|
sl@0
|
536 |
Copies the previously externalised result set into a message. The message must be the same size as
|
sl@0
|
537 |
the stored externalized result set.
|
sl@0
|
538 |
*/
|
sl@0
|
539 |
void DoCopyResultSetL(TMMFMessage& aMessage);
|
sl@0
|
540 |
|
sl@0
|
541 |
|
sl@0
|
542 |
/**
|
sl@0
|
543 |
Extracts an array from first parameter of TMMFMessage.
|
sl@0
|
544 |
|
sl@0
|
545 |
@param aMessage
|
sl@0
|
546 |
The message to copy the array from.
|
sl@0
|
547 |
@param aArray
|
sl@0
|
548 |
The array to copy into.
|
sl@0
|
549 |
|
sl@0
|
550 |
@since 8.0
|
sl@0
|
551 |
*/
|
sl@0
|
552 |
void DoExtractIntArrayFromData1L(TMMFMessage& aMessage, RArray<TInt>& aArray);
|
sl@0
|
553 |
|
sl@0
|
554 |
/**
|
sl@0
|
555 |
Extracts an array from second parameter of TMMFMessage.
|
sl@0
|
556 |
|
sl@0
|
557 |
@param aMessage
|
sl@0
|
558 |
The message to copy array from.
|
sl@0
|
559 |
@param aArray
|
sl@0
|
560 |
The array to copy into.
|
sl@0
|
561 |
|
sl@0
|
562 |
@since 8.0
|
sl@0
|
563 |
*/
|
sl@0
|
564 |
void DoExtractIntArrayFromData2L(TMMFMessage& aMessage, RArray<TInt>& aArray);
|
sl@0
|
565 |
|
sl@0
|
566 |
/**
|
sl@0
|
567 |
Extracts an integer array from the descriptor.
|
sl@0
|
568 |
|
sl@0
|
569 |
@param aDescriptor
|
sl@0
|
570 |
The descriptor containing an integer.
|
sl@0
|
571 |
@param aArray
|
sl@0
|
572 |
The array to copy into.
|
sl@0
|
573 |
|
sl@0
|
574 |
@since 8.0
|
sl@0
|
575 |
*/
|
sl@0
|
576 |
void DoExtractIntArrayL(TDes8& aDescriptor, RArray<TInt>& aArray);
|
sl@0
|
577 |
|
sl@0
|
578 |
|
sl@0
|
579 |
|
sl@0
|
580 |
/**
|
sl@0
|
581 |
Copies the specified integer array given into a TMMFMessage.
|
sl@0
|
582 |
|
sl@0
|
583 |
@param aMessage
|
sl@0
|
584 |
The message to copy the array into.
|
sl@0
|
585 |
@param aArray
|
sl@0
|
586 |
The array to copy from.
|
sl@0
|
587 |
|
sl@0
|
588 |
@since 8.0
|
sl@0
|
589 |
*/
|
sl@0
|
590 |
void DoCopyIntArrayL(TMMFMessage& aMessage, const RArray<TInt>& aArray);
|
sl@0
|
591 |
|
sl@0
|
592 |
|
sl@0
|
593 |
private:
|
sl@0
|
594 |
// reference to the Custom Command Implementor class
|
sl@0
|
595 |
MSpeechRecognitionCustomCommandImplementor& iImplementor;
|
sl@0
|
596 |
|
sl@0
|
597 |
RArray<TPronunciationID> iPronunciationIDs;
|
sl@0
|
598 |
RArray<TModelID> iModelIDs;
|
sl@0
|
599 |
RArray<TRuleID> iRuleIDs;
|
sl@0
|
600 |
|
sl@0
|
601 |
RArray<TGrammarID> iGrammarIDs;
|
sl@0
|
602 |
RArray<TLexiconID> iLexiconIDs;
|
sl@0
|
603 |
RArray<TModelBankID> iModelBankIDs;
|
sl@0
|
604 |
|
sl@0
|
605 |
|
sl@0
|
606 |
CSDClientResultSet* iResultSet;
|
sl@0
|
607 |
CBufFlat* iResultCopyBuffer;
|
sl@0
|
608 |
|
sl@0
|
609 |
// Remove?
|
sl@0
|
610 |
// TAny* iReservedPtr_1; // reserved for future expansion
|
sl@0
|
611 |
// TAny* iReservedPtr_2; // reserved for future expansion
|
sl@0
|
612 |
};
|
sl@0
|
613 |
#endif // of __SPEECHRECOGNITIONCUSTOMCOMMANDPARSER_H__
|
sl@0
|
614 |
|
sl@0
|
615 |
// End of file
|