1 /* |
|
2 * Copyright (c) 2003-2007 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 MNssRecognizeInitCompleteHandler interface class handles events |
|
15 * generated by RecognizeHandler::RecognizeInit(). |
|
16 * |
|
17 */ |
|
18 |
|
19 |
|
20 #ifndef NSSVASMRECOGNIZEINITCOMPLETEHANDLER_H |
|
21 #define NSSVASMRECOGNIZEINITCOMPLETEHANDLER_H |
|
22 |
|
23 // INCLUDES |
|
24 |
|
25 #include <e32base.h> |
|
26 #include <e32def.h> |
|
27 |
|
28 // CLASS DECLARATION |
|
29 |
|
30 /** |
|
31 * RecognizezInit event handler class. |
|
32 * Handles events generated by MNssRecognitionHandler::RecognizeInit(). |
|
33 * |
|
34 * @lib NssVASApi.lib |
|
35 * @since 2.0 |
|
36 */ |
|
37 |
|
38 class MNssRecognizeInitCompleteHandler |
|
39 { |
|
40 |
|
41 public: //enum |
|
42 |
|
43 enum TNssRecognizeInitError |
|
44 { |
|
45 EVasErrorNone, |
|
46 EVasRecognizeInitFailed, |
|
47 EVasNoTagInContexts, |
|
48 EVasRecognizeUndefinedError10, // for place holder |
|
49 EVasRecognizeUndefinedError9, |
|
50 EVasRecognizeUndefinedError8, |
|
51 EVasRecognizeUndefinedError7, |
|
52 EVasRecognizeUndefinedError6, |
|
53 EVasRecognizeUndefinedError5, |
|
54 EVasRecognizeUndefinedError4, |
|
55 EVasRecognizeUndefinedError3, |
|
56 EVasRecognizeUndefinedError2, |
|
57 EVasRecognizeUndefinedError1 |
|
58 }; |
|
59 |
|
60 public: // New functions |
|
61 |
|
62 /** |
|
63 * Recognizer Initialization Complete Event - The Recognizer |
|
64 * has been initialized. |
|
65 * |
|
66 * @since 2.0 |
|
67 * @param aErrorCode EVasErrorNone if initialization was successfull |
|
68 */ |
|
69 virtual void HandleRecognizeInitComplete( TNssRecognizeInitError aErrorCode ) = 0; |
|
70 |
|
71 /** |
|
72 * Pre-sampling has been started. Samples will be discarded until |
|
73 * MNssRecognitionHandler::Recognize is called. |
|
74 * |
|
75 * @since 3.2 |
|
76 * @param "TInt aErrorCode" KErrNone if start of pre sampling was successful |
|
77 */ |
|
78 virtual void HandlePreSamplingStarted( TInt /*aErrorCode*/ ) {}; |
|
79 |
|
80 }; |
|
81 |
|
82 #endif // NSSVASMRECOGNIZEINITCOMPLETEHANDLER_H |
|
83 |
|
84 // End of File |
|