|
1 /* |
|
2 * Copyright (c) 2004 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: Vocabulary handling stub functions. |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 |
|
21 |
|
22 |
|
23 // INCLUDE FILES |
|
24 #include "asrsvocmanhwdevice.h" |
|
25 |
|
26 // ============================ MEMBER FUNCTIONS =============================== |
|
27 |
|
28 // ----------------------------------------------------------------------------- |
|
29 // CASRSVocManHwDevice::CASRSVocManHwDevice |
|
30 // C++ default constructor can NOT contain any code, that |
|
31 // might leave. |
|
32 // ----------------------------------------------------------------------------- |
|
33 // |
|
34 CASRSVocManHwDevice::CASRSVocManHwDevice() |
|
35 : iVMAlgorithm( NULL ) |
|
36 { |
|
37 } |
|
38 |
|
39 // ----------------------------------------------------------------------------- |
|
40 // CASRSVocManHwDevice::ConstructL |
|
41 // Symbian 2nd phase constructor can leave. |
|
42 // ----------------------------------------------------------------------------- |
|
43 // |
|
44 void CASRSVocManHwDevice::ConstructL() |
|
45 { |
|
46 User::Leave( KErrNotSupported ); |
|
47 } |
|
48 |
|
49 // ----------------------------------------------------------------------------- |
|
50 // CASRSVocManHwDevice::NewL |
|
51 // Two-phased constructor. |
|
52 // ----------------------------------------------------------------------------- |
|
53 // |
|
54 EXPORT_C CASRSVocManHwDevice* CASRSVocManHwDevice::NewL() |
|
55 { |
|
56 CASRSVocManHwDevice* self = new ( ELeave ) CASRSVocManHwDevice; |
|
57 |
|
58 CleanupStack::PushL( self ); |
|
59 self->ConstructL(); |
|
60 CleanupStack::Pop(); |
|
61 |
|
62 return self; |
|
63 } |
|
64 |
|
65 |
|
66 // ----------------------------------------------------------------------------- |
|
67 // CASRSVocManHwDevice::~CASRSVocManHwDevice |
|
68 // Destructor. |
|
69 // ----------------------------------------------------------------------------- |
|
70 // |
|
71 EXPORT_C CASRSVocManHwDevice::~CASRSVocManHwDevice() |
|
72 { |
|
73 } |
|
74 |
|
75 |
|
76 // ----------------------------------------------------------------------------- |
|
77 // CASRSVocManHwDevice::AdaptL |
|
78 // Updates given scores |
|
79 // (other items were commented in a header). |
|
80 // ----------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C void CASRSVocManHwDevice::AdaptL( |
|
83 const TSIRuleVariantID /*aCorrectRuleVariantID*/, |
|
84 CSIRule& /*aRule*/ ) |
|
85 { |
|
86 User::Leave( KErrNotSupported ); |
|
87 } |
|
88 |
|
89 // ----------------------------------------------------------------------------- |
|
90 // CASRSVocManHwDevice::Prune |
|
91 // Give information which items can be pruned |
|
92 // (other items were commented in a header). |
|
93 // ----------------------------------------------------------------------------- |
|
94 // |
|
95 EXPORT_C TBool CASRSVocManHwDevice::Prune( |
|
96 const CSIGrammar& /*aGrammar*/, |
|
97 const TUint32 /*aMinNumber*/, |
|
98 RArray<TSIRuleVariantInfo>& /*aPrunedItems*/ ) |
|
99 { |
|
100 return EFalse; |
|
101 } |
|
102 |
|
103 // ----------------------------------------------------------------------------- |
|
104 // CASRSVocManHwDevice::ComputeNRuleVariantsL |
|
105 // Determine how many rule variants can be added to grammar |
|
106 // (other items were commented in a header). |
|
107 // ----------------------------------------------------------------------------- |
|
108 // |
|
109 EXPORT_C void CASRSVocManHwDevice::ComputeNRuleVariantsL( |
|
110 const CSIGrammar& /*aGrammar*/, |
|
111 const TUint32 /*aTargetNRuleVariants*/, |
|
112 const TUint32 /*aMaxNRuleVariants*/, |
|
113 const RArray<TUint>& /*aNewRuleScores*/, |
|
114 RArray<TUint>& /*aNNewRuleVariants*/, |
|
115 TUint32& /*aNPrune*/ ) |
|
116 { |
|
117 User::Leave( KErrNotSupported ); |
|
118 } |
|
119 |
|
120 // ----------------------------------------------------------------------------- |
|
121 // CASRSVocManHwDevice::InitializeL |
|
122 // Initializes the HW device. |
|
123 // You only need this function, if you have called ClearL(). |
|
124 // (other items were commented in a header). |
|
125 // ----------------------------------------------------------------------------- |
|
126 // |
|
127 void CASRSVocManHwDevice::InitializeL() |
|
128 { |
|
129 User::Leave( KErrNotSupported ); |
|
130 } |
|
131 |
|
132 // ----------------------------------------------------------------------------- |
|
133 // CASRSVocManHwDevice::Clear |
|
134 // Clears the HW device. |
|
135 // You don't need this function, destructor does the same better |
|
136 // (other items were commented in a header). |
|
137 // ----------------------------------------------------------------------------- |
|
138 // |
|
139 void CASRSVocManHwDevice::Clear() |
|
140 { |
|
141 } |
|
142 |
|
143 // ----------------------------------------------------------------------------- |
|
144 // CASRSVocManHwDevice::CustomInterface |
|
145 // Returns a custom interface. None implemented yet. |
|
146 // (other items were commented in a header). |
|
147 // ----------------------------------------------------------------------------- |
|
148 // |
|
149 TAny* CASRSVocManHwDevice::CustomInterface(TUid /*aInterfaceUid*/) |
|
150 { |
|
151 return( NULL ); |
|
152 } |
|
153 |
|
154 // ========================== OTHER EXPORTED FUNCTIONS ========================= |
|
155 |
|
156 // for DLL goodness |
|
157 #ifndef EKA2 |
|
158 GLDEF_C TInt E32Dll( TDllReason /*aReason*/ ) |
|
159 { |
|
160 return KErrNone; |
|
161 } |
|
162 #endif |
|
163 |
|
164 |
|
165 // End of File |