|
1 /* |
|
2 * Copyright (c) 2003-2006 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: The MNssAdaptationItem interface class handles speaker adaptation, |
|
15 * when the client wants to decide herself, when to adapt. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef NSSVASMADAPTATIONITEM_H |
|
21 #define NSSVASMADAPTATIONITEM_H |
|
22 |
|
23 // INCLUDES |
|
24 #include <e32std.h> |
|
25 #include <nssvasmadaptationeventhandler.h> |
|
26 #include <nssvasmtag.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * MNssAdaptationItem event handler class. |
|
32 * Contains adaptation data. |
|
33 * |
|
34 * @lib NssVASApi.lib |
|
35 * @since 2.8 |
|
36 */ |
|
37 class MNssAdaptationItem |
|
38 { |
|
39 |
|
40 public: //enum |
|
41 |
|
42 enum TNssRejectTagError |
|
43 { |
|
44 EVasErrorNone, |
|
45 EVasRejectTagFailed, |
|
46 EVasNoTagInContexts, |
|
47 EVasRecognizeUndefinedError10, // for place holder |
|
48 EVasRecognizeUndefinedError9, |
|
49 EVasRecognizeUndefinedError8, |
|
50 EVasRecognizeUndefinedError7, |
|
51 EVasRecognizeUndefinedError6, |
|
52 EVasRecognizeUndefinedError5, |
|
53 EVasRecognizeUndefinedError4, |
|
54 EVasRecognizeUndefinedError3, |
|
55 EVasRecognizeUndefinedError2, |
|
56 EVasRecognizeUndefinedError1 |
|
57 }; |
|
58 |
|
59 public: // New functions |
|
60 |
|
61 /** |
|
62 * AdaptL - Adapts the models using utterance and result, from which the ad |
|
63 * |
|
64 * @since 2.0 |
|
65 * @param aHandler Event handler for this adaptation |
|
66 * @param aCorrect Index of correct result in the list of results |
|
67 */ |
|
68 virtual void AdaptL( MNssAdaptationEventHandler *aHandler, TInt aCorrect ) = 0; |
|
69 |
|
70 /** |
|
71 * Adapts the models using the tag information |
|
72 * |
|
73 * @since 3.2 |
|
74 * @param aHandler Event handler for this adaptation |
|
75 * @param aTag Selected tag |
|
76 */ |
|
77 virtual void AdaptL( MNssAdaptationEventHandler* aHandler, |
|
78 MNssTag& aTag ) = 0; |
|
79 |
|
80 /** |
|
81 * ~MNssAdaptationItem - Destructor |
|
82 * @since 2.0 |
|
83 */ |
|
84 virtual ~MNssAdaptationItem() {}; |
|
85 |
|
86 }; |
|
87 |
|
88 #endif // NSSVASMADAPTATIONITEM_H |
|
89 |
|
90 // End of File |