84 // ----------------------------------------------------------------------------- |
82 // ----------------------------------------------------------------------------- |
85 // |
83 // |
86 TInt CSecModUISyncWrapper::Initialize(CUnifiedKeyStore& aKeyStore) |
84 TInt CSecModUISyncWrapper::Initialize(CUnifiedKeyStore& aKeyStore) |
87 { |
85 { |
88 LOG_ENTERFN("CSecModUISyncWrapper::Initialize"); |
86 LOG_ENTERFN("CSecModUISyncWrapper::Initialize"); |
89 iOperation = EOperationInit; |
87 if( !IsActive() && !iWait.IsStarted() ) |
90 iObject = STATIC_CAST(TAny*, &aKeyStore); |
88 { |
91 aKeyStore.Initialize(iStatus); |
89 iOperation = EOperationInit; |
92 SetActive(); |
90 iObject = STATIC_CAST(TAny*, &aKeyStore); |
93 iWait.Start(); |
91 aKeyStore.Initialize(iStatus); |
94 iOperation = EOperationNone; |
92 SetActive(); |
95 LOG_LEAVEFN("CSecModUISyncWrapper::Initialize"); |
93 iWait.Start(); |
96 return iStatus.Int(); |
94 iOperation = EOperationNone; |
|
95 LOG_LEAVEFN("CSecModUISyncWrapper::Initialize"); |
|
96 return iStatus.Int(); |
|
97 } |
|
98 LOG_LEAVEFN("CSecModUISyncWrapper::Initialize - KErrInUse"); |
|
99 return KErrInUse; |
97 } |
100 } |
98 |
101 |
99 // ----------------------------------------------------------------------------- |
102 // ----------------------------------------------------------------------------- |
100 // CSecModUIModel::GetAuthObjectInterface(...) |
103 // CSecModUIModel::GetAuthObjectInterface(...) |
101 // ----------------------------------------------------------------------------- |
104 // ----------------------------------------------------------------------------- |
102 // |
105 // |
103 TInt CSecModUISyncWrapper::GetAuthObjectInterface( |
106 TInt CSecModUISyncWrapper::GetAuthObjectInterface( |
104 MCTToken& aToken, MCTTokenInterface*& aTokenInterface) |
107 MCTToken& aToken, MCTTokenInterface*& aTokenInterface) |
105 { |
108 { |
106 LOG_ENTERFN("CSecModUISyncWrapper::GetAuthObjectInterface"); |
109 LOG_ENTERFN("CSecModUISyncWrapper::GetAuthObjectInterface"); |
107 iOperation = EOperationGetAOInterface; |
110 if( !IsActive() && !iWait.IsStarted() ) |
108 iObject = STATIC_CAST(TAny*, &aToken); |
111 { |
109 const TUid KUidInterfaceAO = { KCTInterfaceAuthenticationObject }; |
112 iOperation = EOperationGetAOInterface; |
110 aToken.GetInterface(KUidInterfaceAO, aTokenInterface, iStatus); |
113 iObject = STATIC_CAST(TAny*, &aToken); |
111 iOperation = EOperationGetAOInterface; |
114 const TUid KUidInterfaceAO = { KCTInterfaceAuthenticationObject }; |
112 SetActive(); |
115 aToken.GetInterface(KUidInterfaceAO, aTokenInterface, iStatus); |
113 iWait.Start(); |
116 iOperation = EOperationGetAOInterface; |
114 iOperation = EOperationNone; |
117 SetActive(); |
115 LOG_LEAVEFN("CSecModUISyncWrapper::GetAuthObjectInterface"); |
118 iWait.Start(); |
116 return iStatus.Int(); |
119 iOperation = EOperationNone; |
117 } |
120 LOG_LEAVEFN("CSecModUISyncWrapper::GetAuthObjectInterface"); |
118 |
121 return iStatus.Int(); |
|
122 } |
|
123 LOG_LEAVEFN("CSecModUISyncWrapper::GetAuthObjectInterface - KErrInUse"); |
|
124 return KErrInUse; |
|
125 } |
|
126 |
119 // ----------------------------------------------------------------------------- |
127 // ----------------------------------------------------------------------------- |
120 // CSecModUISyncWrapper::ListAuthObjects(...) |
128 // CSecModUISyncWrapper::ListAuthObjects(...) |
121 // ----------------------------------------------------------------------------- |
129 // ----------------------------------------------------------------------------- |
122 // |
130 // |
123 TInt CSecModUISyncWrapper::ListAuthObjects( |
131 TInt CSecModUISyncWrapper::ListAuthObjects( |
124 MCTAuthenticationObjectList& aAuthObjList, |
132 MCTAuthenticationObjectList& aAuthObjList, |
125 RMPointerArray<MCTAuthenticationObject>& aAuthObjects) |
133 RMPointerArray<MCTAuthenticationObject>& aAuthObjects) |
126 { |
134 { |
127 LOG_ENTERFN("CSecModUISyncWrapper::ListAuthObjects"); |
135 LOG_ENTERFN("CSecModUISyncWrapper::ListAuthObjects"); |
128 iOperation = EOperationListAOs; |
136 if( !IsActive() && !iWait.IsStarted() ) |
129 iObject = STATIC_CAST(TAny*, &aAuthObjList); |
137 { |
130 aAuthObjList.List( aAuthObjects, iStatus ); |
138 iOperation = EOperationListAOs; |
131 iOperation = EOperationListAOs; |
139 iObject = STATIC_CAST(TAny*, &aAuthObjList); |
132 SetActive(); |
140 aAuthObjList.List( aAuthObjects, iStatus ); |
133 iWait.Start(); |
141 iOperation = EOperationListAOs; |
134 iOperation = EOperationNone; |
142 SetActive(); |
135 LOG_LEAVEFN("CSecModUISyncWrapper::ListAuthObjects"); |
143 iWait.Start(); |
136 return iStatus.Int(); |
144 iOperation = EOperationNone; |
137 } |
145 LOG_LEAVEFN("CSecModUISyncWrapper::ListAuthObjects"); |
138 |
146 return iStatus.Int(); |
|
147 } |
|
148 LOG_LEAVEFN("CSecModUISyncWrapper::ListAuthObjects - KErrInUse"); |
|
149 return KErrInUse; |
|
150 } |
|
151 |
139 // ----------------------------------------------------------------------------- |
152 // ----------------------------------------------------------------------------- |
140 // CSecModUISyncWrapper::ListKeys(...) |
153 // CSecModUISyncWrapper::ListKeys(...) |
141 // ----------------------------------------------------------------------------- |
154 // ----------------------------------------------------------------------------- |
142 // |
155 // |
143 TInt CSecModUISyncWrapper::ListKeys( |
156 TInt CSecModUISyncWrapper::ListKeys( |
144 MCTKeyStore& aKeyStore, |
157 MCTKeyStore& aKeyStore, |
145 RMPointerArray<CCTKeyInfo>& aKeysInfos, |
158 RMPointerArray<CCTKeyInfo>& aKeysInfos, |
146 const TCTKeyAttributeFilter& aFilter) |
159 const TCTKeyAttributeFilter& aFilter) |
147 { |
160 { |
148 LOG_ENTERFN("CSecModUISyncWrapper::ListKeys"); |
161 LOG_ENTERFN("CSecModUISyncWrapper::ListKeys"); |
149 iOperation = EOperationListKeys; |
162 if( !IsActive() && !iWait.IsStarted() ) |
150 iObject = STATIC_CAST(TAny*, &aKeyStore); |
163 { |
151 aKeyStore.List(aKeysInfos, aFilter, iStatus); |
164 iOperation = EOperationListKeys; |
152 SetActive(); |
165 iObject = STATIC_CAST(TAny*, &aKeyStore); |
153 iWait.Start(); |
166 aKeyStore.List(aKeysInfos, aFilter, iStatus); |
154 iOperation = EOperationNone; |
167 SetActive(); |
155 LOG_LEAVEFN("CSecModUISyncWrapper::ListKeys"); |
168 iWait.Start(); |
156 return iStatus.Int(); |
169 iOperation = EOperationNone; |
|
170 LOG_LEAVEFN("CSecModUISyncWrapper::ListKeys"); |
|
171 return iStatus.Int(); |
|
172 } |
|
173 LOG_LEAVEFN("CSecModUISyncWrapper::ListKeys - KErrInUse"); |
|
174 return KErrInUse; |
157 } |
175 } |
158 |
176 |
159 // ----------------------------------------------------------------------------- |
177 // ----------------------------------------------------------------------------- |
160 // CSecModUISyncWrapper::DeleteKey(...) |
178 // CSecModUISyncWrapper::DeleteKey(...) |
161 // ----------------------------------------------------------------------------- |
179 // ----------------------------------------------------------------------------- |
162 // |
180 // |
163 TInt CSecModUISyncWrapper::DeleteKey( |
181 TInt CSecModUISyncWrapper::DeleteKey( |
164 CUnifiedKeyStore& aKeyStore, |
182 CUnifiedKeyStore& aKeyStore, |
165 TCTTokenObjectHandle aHandle) |
183 TCTTokenObjectHandle aHandle) |
166 { |
184 { |
167 LOG_ENTERFN("CSecModUISyncWrapper::DeleteKey"); |
185 LOG_ENTERFN("CSecModUISyncWrapper::DeleteKey"); |
168 iOperation = EOperationDelKey; |
186 if( !IsActive() && !iWait.IsStarted() ) |
169 iObject = STATIC_CAST(TAny*, &aKeyStore); |
187 { |
170 aKeyStore.DeleteKey(aHandle, iStatus); |
188 iOperation = EOperationDelKey; |
171 SetActive(); |
189 iObject = STATIC_CAST(TAny*, &aKeyStore); |
172 iWait.Start(); |
190 aKeyStore.DeleteKey(aHandle, iStatus); |
173 iOperation = EOperationNone; |
191 SetActive(); |
174 LOG_LEAVEFN("CSecModUISyncWrapper::DeleteKey"); |
192 iWait.Start(); |
175 return iStatus.Int(); |
193 iOperation = EOperationNone; |
176 } |
194 LOG_LEAVEFN("CSecModUISyncWrapper::DeleteKey"); |
177 |
195 return iStatus.Int(); |
|
196 } |
|
197 LOG_LEAVEFN("CSecModUISyncWrapper::DeleteKey - KErrInUse"); |
|
198 return KErrInUse; |
|
199 } |
|
200 |
178 // ----------------------------------------------------------------------------- |
201 // ----------------------------------------------------------------------------- |
179 // CSecModUISyncWrapper::ChangeReferenceData(MCTAuthenticationObject& aAuthObject) |
202 // CSecModUISyncWrapper::ChangeReferenceData(MCTAuthenticationObject& aAuthObject) |
180 // ----------------------------------------------------------------------------- |
203 // ----------------------------------------------------------------------------- |
181 // |
204 // |
182 TInt CSecModUISyncWrapper::ChangeReferenceData( |
205 TInt CSecModUISyncWrapper::ChangeReferenceData( |
183 MCTAuthenticationObject& aAuthObject) |
206 MCTAuthenticationObject& aAuthObject) |
184 { |
207 { |
185 LOG_ENTERFN("CSecModUISyncWrapper::ChangeReferenceData"); |
208 LOG_ENTERFN("CSecModUISyncWrapper::ChangeReferenceData"); |
186 iOperation = EOperationChangeReferenceData; |
209 if( !IsActive() && !iWait.IsStarted() ) |
187 iObject = STATIC_CAST(TAny*, &aAuthObject); |
210 { |
188 aAuthObject.ChangeReferenceData(iStatus); |
211 iOperation = EOperationChangeReferenceData; |
189 SetActive(); |
212 iObject = STATIC_CAST(TAny*, &aAuthObject); |
190 iWait.Start(); |
213 aAuthObject.ChangeReferenceData(iStatus); |
191 iOperation = EOperationNone; |
214 SetActive(); |
192 LOG_LEAVEFN("CSecModUISyncWrapper::ChangeReferenceData"); |
215 iWait.Start(); |
193 return iStatus.Int(); |
216 iOperation = EOperationNone; |
|
217 LOG_LEAVEFN("CSecModUISyncWrapper::ChangeReferenceData"); |
|
218 return iStatus.Int(); |
|
219 } |
|
220 LOG_LEAVEFN("CSecModUISyncWrapper::ChangeReferenceData - KErrInUse"); |
|
221 return KErrInUse; |
194 } |
222 } |
195 |
223 |
196 // ----------------------------------------------------------------------------- |
224 // ----------------------------------------------------------------------------- |
197 // CSecModUIModel::UnblockAuthObject(MCTAuthenticationObject& aAuthObject) |
225 // CSecModUIModel::UnblockAuthObject(MCTAuthenticationObject& aAuthObject) |
198 // ----------------------------------------------------------------------------- |
226 // ----------------------------------------------------------------------------- |
199 // |
227 // |
200 TInt CSecModUISyncWrapper::UnblockAuthObject( |
228 TInt CSecModUISyncWrapper::UnblockAuthObject( |
201 MCTAuthenticationObject& aAuthObject) |
229 MCTAuthenticationObject& aAuthObject) |
202 { |
230 { |
203 LOG_ENTERFN("CSecModUISyncWrapper::UnblockAuthObject"); |
231 LOG_ENTERFN("CSecModUISyncWrapper::UnblockAuthObject"); |
204 iOperation = EOperationUnblockAO; |
232 if( !IsActive() && !iWait.IsStarted() ) |
205 iObject = STATIC_CAST(TAny*, &aAuthObject); |
233 { |
206 aAuthObject.Unblock(iStatus); |
234 iOperation = EOperationUnblockAO; |
207 SetActive(); |
235 iObject = STATIC_CAST(TAny*, &aAuthObject); |
208 iWait.Start(); |
236 aAuthObject.Unblock(iStatus); |
209 iOperation = EOperationNone; |
237 SetActive(); |
210 LOG_LEAVEFN("CSecModUISyncWrapper::UnblockAuthObject"); |
238 iWait.Start(); |
211 return iStatus.Int(); |
239 iOperation = EOperationNone; |
|
240 LOG_LEAVEFN("CSecModUISyncWrapper::UnblockAuthObject"); |
|
241 return iStatus.Int(); |
|
242 } |
|
243 LOG_LEAVEFN("CSecModUISyncWrapper::UnblockAuthObject - KErrInUse"); |
|
244 return KErrInUse; |
212 } |
245 } |
213 |
246 |
214 // ----------------------------------------------------------------------------- |
247 // ----------------------------------------------------------------------------- |
215 // CSecModUIModel::EnableAuthObject(MCTAuthenticationObject& aAuthObject) |
248 // CSecModUIModel::EnableAuthObject(MCTAuthenticationObject& aAuthObject) |
216 // ----------------------------------------------------------------------------- |
249 // ----------------------------------------------------------------------------- |
217 // |
250 // |
218 TInt CSecModUISyncWrapper::EnableAuthObject( |
251 TInt CSecModUISyncWrapper::EnableAuthObject( |
219 MCTAuthenticationObject& aAuthObject) |
252 MCTAuthenticationObject& aAuthObject) |
220 { |
253 { |
221 LOG_ENTERFN("CSecModUISyncWrapper::EnableAuthObject"); |
254 LOG_ENTERFN("CSecModUISyncWrapper::EnableAuthObject"); |
222 iOperation = EOperationEnableAO; |
255 if( !IsActive() && !iWait.IsStarted() ) |
223 iObject = STATIC_CAST(TAny*, &aAuthObject); |
256 { |
224 aAuthObject.Enable(iStatus); |
257 iOperation = EOperationEnableAO; |
225 iOperation = EOperationUnblockAO; |
258 iObject = STATIC_CAST(TAny*, &aAuthObject); |
226 SetActive(); |
259 aAuthObject.Enable(iStatus); |
227 iWait.Start(); |
260 iOperation = EOperationUnblockAO; |
228 iOperation = EOperationNone; |
261 SetActive(); |
229 LOG_LEAVEFN("CSecModUISyncWrapper::EnableAuthObject"); |
262 iWait.Start(); |
230 return iStatus.Int(); |
263 iOperation = EOperationNone; |
231 } |
264 LOG_LEAVEFN("CSecModUISyncWrapper::EnableAuthObject"); |
232 |
265 return iStatus.Int(); |
|
266 } |
|
267 LOG_LEAVEFN("CSecModUISyncWrapper::EnableAuthObject - KErrInUse"); |
|
268 return KErrInUse; |
|
269 } |
|
270 |
233 // ----------------------------------------------------------------------------- |
271 // ----------------------------------------------------------------------------- |
234 // CSecModUIModel::DisableAuthObject(MCTAuthenticationObject& aAuthObject) |
272 // CSecModUIModel::DisableAuthObject(MCTAuthenticationObject& aAuthObject) |
235 // ----------------------------------------------------------------------------- |
273 // ----------------------------------------------------------------------------- |
236 // |
274 // |
237 TInt CSecModUISyncWrapper::DisableAuthObject( |
275 TInt CSecModUISyncWrapper::DisableAuthObject( |
238 MCTAuthenticationObject& aAuthObject) |
276 MCTAuthenticationObject& aAuthObject) |
239 { |
277 { |
240 LOG_ENTERFN("CSecModUISyncWrapper::DisableAuthObject"); |
278 LOG_ENTERFN("CSecModUISyncWrapper::DisableAuthObject"); |
241 iOperation = EOperationDisableAO; |
279 if( !IsActive() && !iWait.IsStarted() ) |
242 iObject = STATIC_CAST(TAny*, &aAuthObject); |
280 { |
243 aAuthObject.Disable(iStatus); |
281 iOperation = EOperationDisableAO; |
244 SetActive(); |
282 iObject = STATIC_CAST(TAny*, &aAuthObject); |
245 iWait.Start(); |
283 aAuthObject.Disable(iStatus); |
246 iOperation = EOperationNone; |
284 SetActive(); |
247 LOG_LEAVEFN("CSecModUISyncWrapper::DisableAuthObject"); |
285 iWait.Start(); |
248 return iStatus.Int(); |
286 iOperation = EOperationNone; |
249 } |
287 LOG_LEAVEFN("CSecModUISyncWrapper::DisableAuthObject"); |
250 |
288 return iStatus.Int(); |
|
289 } |
|
290 LOG_LEAVEFN("CSecModUISyncWrapper::DisableAuthObject - KErrInUse"); |
|
291 return KErrInUse; |
|
292 } |
|
293 |
251 // ----------------------------------------------------------------------------- |
294 // ----------------------------------------------------------------------------- |
252 // CSecModUISyncWrapper::CloseAuthObject(MCTAuthenticationObject& aAuthObject) |
295 // CSecModUISyncWrapper::CloseAuthObject(MCTAuthenticationObject& aAuthObject) |
253 // ----------------------------------------------------------------------------- |
296 // ----------------------------------------------------------------------------- |
254 // |
297 // |
255 TInt CSecModUISyncWrapper::CloseAuthObject( |
298 TInt CSecModUISyncWrapper::CloseAuthObject( |
256 MCTAuthenticationObject& aAuthObject) |
299 MCTAuthenticationObject& aAuthObject) |
257 { |
300 { |
258 LOG_ENTERFN("CSecModUISyncWrapper::CloseAuthObject"); |
301 LOG_ENTERFN("CSecModUISyncWrapper::CloseAuthObject"); |
259 iOperation = EOperationCloseAO; |
302 if( !IsActive() && !iWait.IsStarted() ) |
260 iObject = STATIC_CAST(TAny*, &aAuthObject); |
303 { |
261 aAuthObject.Close(iStatus); |
304 iOperation = EOperationCloseAO; |
262 SetActive(); |
305 iObject = STATIC_CAST(TAny*, &aAuthObject); |
263 iWait.Start(); |
306 aAuthObject.Close(iStatus); |
264 iOperation = EOperationNone; |
307 SetActive(); |
265 LOG_LEAVEFN("CSecModUISyncWrapper::CloseAuthObject"); |
308 iWait.Start(); |
266 return iStatus.Int(); |
309 iOperation = EOperationNone; |
|
310 LOG_LEAVEFN("CSecModUISyncWrapper::CloseAuthObject"); |
|
311 return iStatus.Int(); |
|
312 } |
|
313 LOG_LEAVEFN("SecModUISyncWrapper::CloseAuthObject - KErrInUse"); |
|
314 return KErrInUse; |
267 } |
315 } |
268 |
316 |
269 // ----------------------------------------------------------------------------- |
317 // ----------------------------------------------------------------------------- |
270 // CSecModUIModel::TimeRemaining(...) |
318 // CSecModUIModel::TimeRemaining(...) |
271 // ----------------------------------------------------------------------------- |
319 // ----------------------------------------------------------------------------- |
272 // |
320 // |
273 TInt CSecModUISyncWrapper::TimeRemaining( |
321 TInt CSecModUISyncWrapper::TimeRemaining( |
274 MCTAuthenticationObject& aAuthObject, |
322 MCTAuthenticationObject& aAuthObject, |
275 TInt& aStime ) |
323 TInt& aStime ) |
276 { |
324 { |
277 LOG_ENTERFN("CSecModUISyncWrapper::TimeRemaining"); |
325 LOG_ENTERFN("CSecModUISyncWrapper::TimeRemaining"); |
278 iOperation = EOperationTimeRemAO; |
326 if( !IsActive() && !iWait.IsStarted() ) |
279 iObject = STATIC_CAST(TAny*, &aAuthObject); |
327 { |
280 aAuthObject.TimeRemaining(aStime, iStatus); |
328 iOperation = EOperationTimeRemAO; |
281 SetActive(); |
329 iObject = STATIC_CAST(TAny*, &aAuthObject); |
282 iWait.Start(); |
330 aAuthObject.TimeRemaining(aStime, iStatus); |
283 iOperation = EOperationNone; |
331 SetActive(); |
284 LOG_LEAVEFN("CSecModUISyncWrapper::TimeRemaining"); |
332 iWait.Start(); |
285 return iStatus.Int(); |
333 iOperation = EOperationNone; |
|
334 LOG_LEAVEFN("CSecModUISyncWrapper::TimeRemaining"); |
|
335 return iStatus.Int(); |
|
336 } |
|
337 LOG_LEAVEFN("CSecModUISyncWrapper::TimeRemaining - KErrInUse"); |
|
338 return KErrInUse; |
286 } |
339 } |
287 |
340 |
288 // ----------------------------------------------------------------------------- |
341 // ----------------------------------------------------------------------------- |
289 // CSecModUISyncWrapper::DoCancel |
342 // CSecModUISyncWrapper::DoCancel |
290 // Cancels the ongoing operation if possible. |
343 // Cancels the ongoing operation if possible. |
294 { |
347 { |
295 LOG_ENTERFN("CSecModUISyncWrapper::DoCancel"); |
348 LOG_ENTERFN("CSecModUISyncWrapper::DoCancel"); |
296 switch ( iOperation ) |
349 switch ( iOperation ) |
297 { |
350 { |
298 case EOperationInit: |
351 case EOperationInit: |
299 { |
352 { |
300 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationInit"); |
353 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationInit"); |
301 STATIC_CAST(CUnifiedKeyStore*, iObject)->CancelInitialize(); |
354 STATIC_CAST(CUnifiedKeyStore*, iObject)->CancelInitialize(); |
302 break; |
355 break; |
303 } |
356 } |
304 case EOperationGetAOInterface: |
357 case EOperationGetAOInterface: |
305 { |
358 { |
306 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationGetAOInterface"); |
359 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationGetAOInterface"); |
307 STATIC_CAST(MCTToken*, iObject)->CancelGetInterface(); |
360 STATIC_CAST(MCTToken*, iObject)->CancelGetInterface(); |
308 break; |
361 break; |
309 } |
362 } |
310 case EOperationListAOs: |
363 case EOperationListAOs: |
311 { |
364 { |
312 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationListAOs"); |
365 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationListAOs"); |
313 STATIC_CAST(MCTAuthenticationObjectList*, iObject)->CancelList(); |
366 STATIC_CAST(MCTAuthenticationObjectList*, iObject)->CancelList(); |
314 break; |
367 break; |
315 } |
368 } |
316 case EOperationListKeys: |
369 case EOperationListKeys: |
317 { |
370 { |
318 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationListKeys"); |
371 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationListKeys"); |
319 STATIC_CAST(MCTKeyStore*, iObject)->CancelList(); |
372 STATIC_CAST(MCTKeyStore*, iObject)->CancelList(); |
320 break; |
373 break; |
321 } |
374 } |
322 case EOperationDelKey: |
375 case EOperationDelKey: |
323 { |
376 { |
324 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationDelKey"); |
377 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationDelKey"); |
325 STATIC_CAST(CUnifiedKeyStore*, iObject)->CancelDeleteKey(); |
378 STATIC_CAST(CUnifiedKeyStore*, iObject)->CancelDeleteKey(); |
326 break; |
379 break; |
327 } |
380 } |
328 case EOperationChangeReferenceData: |
381 case EOperationChangeReferenceData: |
329 { |
382 { |
330 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationChangeReferenceData"); |
383 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationChangeReferenceData"); |
331 STATIC_CAST(MCTAuthenticationObject*, iObject)-> |
384 STATIC_CAST(MCTAuthenticationObject*, iObject)-> |
332 CancelChangeReferenceData(); |
385 CancelChangeReferenceData(); |
333 break; |
386 break; |
334 } |
387 } |
335 case EOperationUnblockAO: |
388 case EOperationUnblockAO: |
336 { |
389 { |
337 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationInit"); |
390 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationInit"); |
338 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelUnblock(); |
391 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelUnblock(); |
339 break; |
392 break; |
340 } |
393 } |
341 case EOperationEnableAO: |
394 case EOperationEnableAO: |
342 { |
395 { |
343 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationEnableAO"); |
396 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationEnableAO"); |
344 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelEnable(); |
397 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelEnable(); |
345 break; |
398 break; |
346 } |
399 } |
347 case EOperationDisableAO: |
400 case EOperationDisableAO: |
348 { |
401 { |
349 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationDisableAO"); |
402 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationDisableAO"); |
350 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelDisable(); |
403 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelDisable(); |
351 break; |
404 break; |
352 } |
405 } |
353 case EOperationCloseAO: |
406 case EOperationCloseAO: |
354 { |
407 { |
355 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationCloseAO"); |
408 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationCloseAO"); |
356 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelClose(); |
409 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelClose(); |
357 break; |
410 break; |
358 } |
411 } |
359 case EOperationTimeRemAO: |
412 case EOperationTimeRemAO: |
360 { |
413 { |
361 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationTimeRemAO"); |
414 LOG_WRITE("CSecModUISyncWrapper::DoCancel: EOperationTimeRemAO"); |
362 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelTimeRemaining(); |
415 STATIC_CAST(MCTAuthenticationObject*, iObject)->CancelTimeRemaining(); |
363 break; |
416 break; |
364 } |
417 } |
365 default: |
418 default: |
366 { |
419 { |
367 break; |
420 break; |
368 } |
421 } |
369 } |
422 } |
370 if (iWait.IsStarted()) |
423 if (iWait.IsStarted()) |
371 { |
424 { |
372 iWait.AsyncStop(); |
425 iWait.AsyncStop(); |
373 } |
426 } |
374 LOG_LEAVEFN("CSecModUISyncWrapper::DoCancel"); |
427 LOG_LEAVEFN("CSecModUISyncWrapper::DoCancel"); |
375 } |
428 } |
376 |
429 |
377 // ----------------------------------------------------------------------------- |
430 // ----------------------------------------------------------------------------- |
378 // CSecModUISyncWrapper::RunL |
431 // CSecModUISyncWrapper::RunL |
379 // If no errors happened, stop. Show an error note if needed. |
432 // If no errors happened, stop. Show an error note if needed. |
380 // ----------------------------------------------------------------------------- |
433 // ----------------------------------------------------------------------------- |
381 // |
434 // |
382 void CSecModUISyncWrapper::RunL() |
435 void CSecModUISyncWrapper::RunL() |
383 { |
436 { |
384 iWait.AsyncStop(); |
437 iWait.AsyncStop(); |
385 } |
438 } |
386 |
439 |
387 // ----------------------------------------------------------------------------- |
|
388 // CSecModUISyncWrapper::HandleErrorL() |
|
389 // Shows an error note according to status of operation, |
|
390 // ----------------------------------------------------------------------------- |
|
391 // |
|
392 void CSecModUISyncWrapper::HandleErrorL() |
|
393 { |
|
394 |
|
395 } |
|
396 |
|
397 |
|
398 // End of File |
|
399 |
|