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: For test ui voice recognition api modules |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 // [INCLUDE FILES] |
|
21 #include <e32svr.h> |
|
22 #include <stifparser.h> |
|
23 #include <stiftestinterface.h> |
|
24 #include <vuicvoicerecog.h> |
|
25 #include <vuicvoicerecogdialog.h> |
|
26 |
|
27 #include "testdomuivoicerengn.h" |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CTestDOMUiVoiceRengn::TestVuicVocRecogNewL |
|
30 // ----------------------------------------------------------------------------- |
|
31 // |
|
32 TInt CTestDOMUiVoiceRengn::TestVuicVocRecogNewL( CStifItemParser& /*aItem*/ ) |
|
33 { |
|
34 |
|
35 // Print to UI |
|
36 _LIT( Ktestdomuivoicerecgnin, "testdomuivoicerecgnin" ); |
|
37 _LIT( KTestVuicVocRecogNewL, "In TestVuicVocRecogNewL" ); |
|
38 TestModuleIf().Printf( 0, Ktestdomuivoicerecgnin, KTestVuicVocRecogNewL ); |
|
39 // Print to log file |
|
40 iLog->Log( KTestVuicVocRecogNewL ); |
|
41 |
|
42 TInt Err = KErrNone; |
|
43 |
|
44 iVoiceRecog = CVoiceRecog::NewL(); |
|
45 STIF_ASSERT_NOT_NULL( iVoiceRecog ); |
|
46 |
|
47 return Err; |
|
48 } |
|
49 |
|
50 // ----------------------------------------------------------------------------- |
|
51 // CTestDOMUiVoiceRengn::TestVuicVocRecogNewLCL |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 TInt CTestDOMUiVoiceRengn::TestVuicVocRecogNewLCL( CStifItemParser& /*aItem*/ ) |
|
55 { |
|
56 |
|
57 // Print to UI |
|
58 _LIT( Ktestdomuivoicerecgnin, "testdomuivoicerecgnin" ); |
|
59 _LIT( KTestVuicVocRecogNewLC, "In TestVuicVocRecogNewLC" ); |
|
60 TestModuleIf().Printf( 0, Ktestdomuivoicerecgnin, KTestVuicVocRecogNewLC ); |
|
61 // Print to log file |
|
62 iLog->Log( KTestVuicVocRecogNewLC ); |
|
63 |
|
64 TInt Err = KErrNone; |
|
65 |
|
66 iVoiceRecog = CVoiceRecog::NewLC(); |
|
67 CleanupStack::Pop( iVoiceRecog ); |
|
68 STIF_ASSERT_NOT_NULL( iVoiceRecog ); |
|
69 |
|
70 return Err; |
|
71 } |
|