|
1 /* |
|
2 * Copyright (c) 2002 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 MNssCoreSrsDBEventHandler provides interface to handle events |
|
15 * from Save and Delete utterance data into SRS. |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef MNSSCORESRSDBEVENTHANDLER_H |
|
21 #define MNSSCORESRSDBEVENTHANDLER_H |
|
22 |
|
23 |
|
24 /** |
|
25 * The MNssCoreSrsDBEventHandler provides interface to handle events |
|
26 * from Save and Delete utterance data into SRS. |
|
27 * |
|
28 * @lib NssVasApi.lib |
|
29 * @since 2.0 |
|
30 */ |
|
31 class MNssCoreSrsDBEventHandler |
|
32 { |
|
33 public: |
|
34 |
|
35 enum TNssSrsDBResult |
|
36 { |
|
37 EVasSuccess, |
|
38 EVasPending, |
|
39 EVasCommitFailed, |
|
40 EVasAddPronunciationFailed, |
|
41 EVasAddRuleFailed, |
|
42 EVasRemovePronunciationFailed, |
|
43 EVasRemoveRuleFailed, |
|
44 EVasRemoveModelFailed, |
|
45 EVasInvalidState, |
|
46 // for Context portal |
|
47 EVasCreateGrammarFailed, |
|
48 EVasCreateModelBankFailed, |
|
49 EVasCreateLexiconFailed, |
|
50 EVasRemoveGrammarFailed, |
|
51 EVasRemoveModelBankFailed, |
|
52 EVasRemoveLexiconFailed, |
|
53 // for generic error |
|
54 EVasUnexpectedRequest, // Unexpected request from client, when the state is not Idle |
|
55 EVasUnexpectedEvent, |
|
56 EVasInUse, // VAS resource is currently in use. |
|
57 EVasDiskFull, // SRF disk is full |
|
58 EVasInvalidParameter, |
|
59 EVasDBOperationError, |
|
60 EVasNoMemory |
|
61 }; |
|
62 |
|
63 /** |
|
64 * Callback |
|
65 * @param None |
|
66 * @return None |
|
67 */ |
|
68 virtual void HandleSaveSrsDBCompleted()=0; |
|
69 |
|
70 /** |
|
71 * Callback |
|
72 * @param None |
|
73 * @return None |
|
74 */ |
|
75 virtual void HandleDeleteSrsDBCompleted()=0; |
|
76 |
|
77 /** |
|
78 * Callback |
|
79 * @param None |
|
80 * @return None |
|
81 */ |
|
82 virtual void HandleResetSrsDBCompleted()=0; |
|
83 |
|
84 /** |
|
85 * Callback |
|
86 * @param None |
|
87 * @return None |
|
88 */ |
|
89 virtual void HandleSrsDBError(TNssSrsDBResult aResult)=0; |
|
90 |
|
91 |
|
92 }; |
|
93 |
|
94 #endif |