74 // Symbian 2nd phase constructor can leave. |
74 // Symbian 2nd phase constructor can leave. |
75 // ----------------------------------------------------------------------------- |
75 // ----------------------------------------------------------------------------- |
76 // |
76 // |
77 void CLpdVerifierPlugin::ConstructL() |
77 void CLpdVerifierPlugin::ConstructL() |
78 { |
78 { |
|
79 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::ConstructL" ); |
79 BaseConstructL(KNotifierChannel, KNotifierPriority); |
80 BaseConstructL(KNotifierChannel, KNotifierPriority); |
80 |
81 |
81 iRtorProcessor = CLpdRequestorProcessor::NewL(); |
82 iRtorProcessor = CLpdRequestorProcessor::NewL(); |
|
83 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::ConstructL" ); |
82 } |
84 } |
83 |
85 |
84 // ----------------------------------------------------------------------------- |
86 // ----------------------------------------------------------------------------- |
85 // CLpdVerifierPlugin::NewL |
87 // CLpdVerifierPlugin::NewL |
86 // Two-phased constructor. |
88 // Two-phased constructor. |
87 // ----------------------------------------------------------------------------- |
89 // ----------------------------------------------------------------------------- |
88 // |
90 // |
89 CLpdVerifierPlugin* CLpdVerifierPlugin::NewL() |
91 CLpdVerifierPlugin* CLpdVerifierPlugin::NewL() |
90 { |
92 { |
|
93 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::NewL" ); |
91 CLpdVerifierPlugin* self = new (ELeave) CLpdVerifierPlugin; |
94 CLpdVerifierPlugin* self = new (ELeave) CLpdVerifierPlugin; |
92 |
95 |
93 CleanupStack::PushL(self); |
96 CleanupStack::PushL(self); |
94 self->ConstructL(); |
97 self->ConstructL(); |
95 CleanupStack::Pop(self); |
98 CleanupStack::Pop(self); |
96 |
99 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::NewL" ); |
97 return self; |
100 return self; |
98 } |
101 } |
99 |
102 |
100 // Destructor |
103 // Destructor |
101 CLpdVerifierPlugin::~CLpdVerifierPlugin() |
104 CLpdVerifierPlugin::~CLpdVerifierPlugin() |
102 { |
105 { |
|
106 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::~CLpdVerifierPlugin" ); |
103 // Destruction of this plugin should only occur only in shutdown |
107 // Destruction of this plugin should only occur only in shutdown |
104 // or in severe problem situation. |
108 // or in severe problem situation. |
105 |
109 |
106 // A very special scenario is that base class construction leaves and |
110 // A very special scenario is that base class construction leaves and |
107 // this destructor is called. In that case CompleteAllRequests() causes |
111 // this destructor is called. In that case CompleteAllRequests() causes |
116 |
120 |
117 delete iRequestActiveObject; |
121 delete iRequestActiveObject; |
118 iRequestActiveObject = NULL; |
122 iRequestActiveObject = NULL; |
119 delete iRtorProcessor; |
123 delete iRtorProcessor; |
120 iRtorProcessor = NULL; |
124 iRtorProcessor = NULL; |
|
125 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::~CLpdVerifierPlugin" ); |
121 |
126 |
122 } |
127 } |
123 |
128 |
124 // ----------------------------------------------------------------------------- |
129 // ----------------------------------------------------------------------------- |
125 // CLpdVerifierPlugin::HandleNewRequestL |
130 // CLpdVerifierPlugin::HandleNewRequestL |
126 // (other items were commented in a header). |
131 // (other items were commented in a header). |
127 // ----------------------------------------------------------------------------- |
132 // ----------------------------------------------------------------------------- |
128 // |
133 // |
129 void CLpdVerifierPlugin::HandleNewRequestL(TPosQNRequestId /*aRequestId */ ) |
134 void CLpdVerifierPlugin::HandleNewRequestL(TPosQNRequestId /*aRequestId */ ) |
130 { |
135 { |
131 LOCVERIFIERDLGDEBUG( "CLpdVerifierPlugin::HandleNewRequestL" ); |
136 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleNewRequestL" ); |
132 |
137 |
133 // Check whether the notifier is already handling a request |
138 // Check whether the notifier is already handling a request |
134 // If yes, do nothing for now. |
139 // If yes, do nothing for now. |
135 if (iRequestActiveObject) |
140 if (iRequestActiveObject) |
136 { |
141 { |
139 else |
144 else |
140 { |
145 { |
141 iRequestActiveObject = CLpdRequestAO::NewL(*this); |
146 iRequestActiveObject = CLpdRequestAO::NewL(*this); |
142 iRequestActiveObject->ScheduleRequest(); |
147 iRequestActiveObject->ScheduleRequest(); |
143 } |
148 } |
|
149 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNewRequestL" ); |
144 } |
150 } |
145 |
151 |
146 |
152 |
147 // ----------------------------------------------------------------------------- |
153 // ----------------------------------------------------------------------------- |
148 // CLpdVerifierPlugin::HandleRequestCancelled |
154 // CLpdVerifierPlugin::HandleRequestCancelled |
149 // (other items were commented in a header). |
155 // (other items were commented in a header). |
150 // ----------------------------------------------------------------------------- |
156 // ----------------------------------------------------------------------------- |
151 // |
157 // |
152 void CLpdVerifierPlugin::HandleRequestCancelled(TPosQNRequestId aRequestId) |
158 void CLpdVerifierPlugin::HandleRequestCancelled(TPosQNRequestId aRequestId) |
153 { |
159 { |
154 LOCVERIFIERDLGDEBUG( "CLpdVerifierPlugin::HandleRequestCancelled" ); |
160 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleRequestCancelled" ); |
155 // Check whether the request is coming from Uikon Server. |
161 // Check whether the request is coming from Uikon Server. |
156 // If not reject this request. |
162 // If not reject this request. |
157 if (!CheckClientSecureId(KPrivSrvSecureId)) |
163 if (!CheckClientSecureId(KPrivSrvSecureId)) |
158 { |
164 { |
159 return; |
165 return; |
180 HandleDebugAssertError() ); |
186 HandleDebugAssertError() ); |
181 __ASSERT_DEBUG( iNotifier, HandleDebugAssertError() ); |
187 __ASSERT_DEBUG( iNotifier, HandleDebugAssertError() ); |
182 LOCVERIFIERDLGDEBUG( "Notification cancelled" ); |
188 LOCVERIFIERDLGDEBUG( "Notification cancelled" ); |
183 iNotifier->Cancel(); |
189 iNotifier->Cancel(); |
184 } |
190 } |
185 |
191 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleRequestCancelled" ); |
186 } |
192 } |
187 |
193 |
188 // ----------------------------------------------------------------------------- |
194 // ----------------------------------------------------------------------------- |
189 // CLpdVerifierPlugin::HandleAllRequestCancelled |
195 // CLpdVerifierPlugin::HandleAllRequestCancelled |
190 // (other items were commented in a header). |
196 // (other items were commented in a header). |
191 // ----------------------------------------------------------------------------- |
197 // ----------------------------------------------------------------------------- |
192 // |
198 // |
193 void CLpdVerifierPlugin::HandleAllRequestCancelled() |
199 void CLpdVerifierPlugin::HandleAllRequestCancelled() |
194 { |
200 { |
195 LOCVERIFIERDLGDEBUG( "CLpdVerifierPlugin::HandleAllRequestCancelled" ); |
201 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleAllRequestCancelled" ); |
196 if (iCurrentRequest != KPosNullQNRequestId) |
202 if (iCurrentRequest != KPosNullQNRequestId) |
197 { // current request requires some specific behavior |
203 { // current request requires some specific behavior |
198 HandleRequestCancelled(iCurrentRequest); |
204 HandleRequestCancelled(iCurrentRequest); |
199 } |
205 } |
200 |
206 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleAllRequestCancelled" ); |
201 } |
207 } |
202 |
208 |
203 // ----------------------------------------------------------------------------- |
209 // ----------------------------------------------------------------------------- |
204 // CLpdVerifierPlugin::HandleVerificationResultL |
210 // CLpdVerifierPlugin::HandleVerificationResultL |
205 // (other items were commented in a header). |
211 // (other items were commented in a header). |
242 break; |
248 break; |
243 } |
249 } |
244 } |
250 } |
245 |
251 |
246 CompleteCurrentAndContinue(iVerifyResult); // this request was handled |
252 CompleteCurrentAndContinue(iVerifyResult); // this request was handled |
|
253 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleVerificationResultL" ); |
247 } |
254 } |
248 // ----------------------------------------------------------------------------- |
255 // ----------------------------------------------------------------------------- |
249 // CLpdVerifierPlugin::HandleNotificationResultL |
256 // CLpdVerifierPlugin::HandleNotificationResultL |
250 // (other items were commented in a header). |
257 // (other items were commented in a header). |
251 // ----------------------------------------------------------------------------- |
258 // ----------------------------------------------------------------------------- |
252 // |
259 // |
253 void CLpdVerifierPlugin::HandleNotificationResultL(TInt aResultCode) |
260 void CLpdVerifierPlugin::HandleNotificationResultL(TInt aResultCode) |
254 { |
261 { |
255 |
262 |
256 LOCVERIFIERDLGDEBUG1( "CLpdVerifierPlugin::HandleVerificationResultL(%d)", |
263 LOCVERIFIERDLGDEBUG1( "+CLpdVerifierPlugin::HandleVerificationResultL(%d)", |
257 aResultCode ); |
264 aResultCode ); |
258 CompleteRequest(iCurrentRequest, aResultCode); |
265 CompleteRequest(iCurrentRequest, aResultCode); |
259 iCurrentRequest = KPosNullQNRequestId; |
266 iCurrentRequest = KPosNullQNRequestId; |
260 |
267 |
261 switch (aResultCode) |
268 switch (aResultCode) |
282 break; |
289 break; |
283 } |
290 } |
284 } |
291 } |
285 |
292 |
286 iRequestActiveObject->ScheduleRequest(); // handle next req. |
293 iRequestActiveObject->ScheduleRequest(); // handle next req. |
|
294 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNotificationResultL" ); |
287 } |
295 } |
288 |
296 |
289 // ----------------------------------------------------------------------------- |
297 // ----------------------------------------------------------------------------- |
290 // CLpdVerifierPlugin::HandleLeave |
298 // CLpdVerifierPlugin::HandleLeave |
291 // (other items were commented in a header). |
299 // (other items were commented in a header). |
292 // ----------------------------------------------------------------------------- |
300 // ----------------------------------------------------------------------------- |
293 // |
301 // |
294 void CLpdVerifierPlugin::HandleLeave(TInt /*aError*/) |
302 void CLpdVerifierPlugin::HandleLeave(TInt /*aError*/) |
295 { |
303 { |
296 LOCVERIFIERDLGDEBUG1( "CLpdVerifierPlugin::HandleLeave(%d)", aError); |
304 LOCVERIFIERDLGDEBUG1( "+CLpdVerifierPlugin::HandleLeave(%d)", aError); |
297 // In this case user needs feedback about the error situation: |
305 // In this case user needs feedback about the error situation: |
298 |
306 |
299 |
307 |
300 // In case of leave current request is completed with |
308 // In case of leave current request is completed with |
301 // iVerifyResult, but queue handling is still continued. |
309 // iVerifyResult, but queue handling is still continued. |
302 // iVerifyResult is better completion code for request than aError. |
310 // iVerifyResult is better completion code for request than aError. |
303 CompleteCurrentAndContinue(iVerifyResult); |
311 CompleteCurrentAndContinue(iVerifyResult); |
|
312 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleLeave" ); |
304 } |
313 } |
305 |
314 |
306 // ----------------------------------------------------------------------------- |
315 // ----------------------------------------------------------------------------- |
307 // CLpdVerifierPlugin::HandleNextRequest |
316 // CLpdVerifierPlugin::HandleNextRequest |
308 // (other items were commented in a header). |
317 // (other items were commented in a header). |
309 // ----------------------------------------------------------------------------- |
318 // ----------------------------------------------------------------------------- |
310 // |
319 // |
311 void CLpdVerifierPlugin::HandleNextRequest() |
320 void CLpdVerifierPlugin::HandleNextRequest() |
312 { |
321 { |
|
322 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleNextRequest" ); |
313 TRAPD( err, HandleNextRequestL() ); |
323 TRAPD( err, HandleNextRequestL() ); |
314 if (err) |
324 if (err) |
315 { |
325 { |
316 // In case of leave current request is completed with |
326 // In case of leave current request is completed with |
317 // error code, but queue handling is still continued. |
327 // error code, but queue handling is still continued. |
319 // If we couldn't start handling the request it is |
329 // If we couldn't start handling the request it is |
320 // better not to confuse user with an error note. |
330 // better not to confuse user with an error note. |
321 |
331 |
322 CompleteCurrentAndContinue(iVerifyResult); |
332 CompleteCurrentAndContinue(iVerifyResult); |
323 } |
333 } |
|
334 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNextRequest" ); |
324 } |
335 } |
325 |
336 |
326 // ----------------------------------------------------------------------------- |
337 // ----------------------------------------------------------------------------- |
327 // CLpdVerifierPlugin::HandleNextRequestL |
338 // CLpdVerifierPlugin::HandleNextRequestL |
328 // (other items were commented in a header). |
339 // (other items were commented in a header). |
329 // ----------------------------------------------------------------------------- |
340 // ----------------------------------------------------------------------------- |
330 // |
341 // |
331 void CLpdVerifierPlugin::HandleNextRequestL() |
342 void CLpdVerifierPlugin::HandleNextRequestL() |
332 { |
343 { |
333 |
344 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleNextRequestL" ); |
334 // It is better to free previous query resources here, because |
345 // It is better to free previous query resources here, because |
335 // now all callback methods have finished (active object allowed |
346 // now all callback methods have finished (active object allowed |
336 // run to completion) |
347 // run to completion) |
337 this->FreeQueryResources(); |
348 this->FreeQueryResources(); |
338 |
349 |
380 } |
391 } |
381 else |
392 else |
382 { |
393 { |
383 User::Leave(KErrNotSupported); |
394 User::Leave(KErrNotSupported); |
384 } |
395 } |
|
396 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNextRequestL" ); |
385 } |
397 } |
386 |
398 |
387 // ----------------------------------------------------------------------------- |
399 // ----------------------------------------------------------------------------- |
388 // CLpdVerifierPlugin::HandleNextVerificationL |
400 // CLpdVerifierPlugin::HandleNextVerificationL |
389 // (other items were commented in a header). |
401 // (other items were commented in a header). |
390 // ----------------------------------------------------------------------------- |
402 // ----------------------------------------------------------------------------- |
391 // |
403 // |
392 void CLpdVerifierPlugin::HandleNextVerificationL() |
404 void CLpdVerifierPlugin::HandleNextVerificationL() |
393 { |
405 { |
|
406 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleNextVerificationL" ); |
394 __ASSERT_DEBUG( iCurrentRequest != KPosNullQNRequestId, |
407 __ASSERT_DEBUG( iCurrentRequest != KPosNullQNRequestId, |
395 HandleAssertErrorL() ); |
408 HandleAssertErrorL() ); |
396 __ASSERT_DEBUG( !iVerifierQuery, HandleAssertErrorL() ); |
409 __ASSERT_DEBUG( !iVerifierQuery, HandleAssertErrorL() ); |
397 |
410 |
398 CPosRequestor::TRequestType reqType; |
411 CPosRequestor::TRequestType reqType; |
419 // Ownership NOT transferred |
432 // Ownership NOT transferred |
420 iVerifierQuery->SetRequestInfoL(iRtorProcessor); |
433 iVerifierQuery->SetRequestInfoL(iRtorProcessor); |
421 |
434 |
422 iVerifierQuery->StartQueryL(); |
435 iVerifierQuery->StartQueryL(); |
423 } |
436 } |
|
437 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNextVerificationL" ); |
424 } |
438 } |
425 |
439 |
426 // ----------------------------------------------------------------------------- |
440 // ----------------------------------------------------------------------------- |
427 // CLpdVerifierPlugin::HandleNextNotificationL |
441 // CLpdVerifierPlugin::HandleNextNotificationL |
428 // (other items were commented in a header). |
442 // (other items were commented in a header). |
429 // ----------------------------------------------------------------------------- |
443 // ----------------------------------------------------------------------------- |
430 // |
444 // |
431 void CLpdVerifierPlugin::HandleNextNotificationL() |
445 void CLpdVerifierPlugin::HandleNextNotificationL() |
432 { |
446 { |
|
447 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleNextNotificationL" ); |
433 __ASSERT_DEBUG( iCurrentRequest != KPosNullQNRequestId, |
448 __ASSERT_DEBUG( iCurrentRequest != KPosNullQNRequestId, |
434 HandleAssertErrorL() ); |
449 HandleAssertErrorL() ); |
435 |
450 |
436 // There is no differentiation now for periodic and single shot notifications |
451 // There is no differentiation now for periodic and single shot notifications |
437 HandleNextNonPeriodicNotificationL(); |
452 HandleNextNonPeriodicNotificationL(); |
|
453 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNextNotificationL" ); |
438 } |
454 } |
439 // ----------------------------------------------------------------------------- |
455 // ----------------------------------------------------------------------------- |
440 // CLpdVerifierPlugin::HandleNextNonPeriodicNotificationL |
456 // CLpdVerifierPlugin::HandleNextNonPeriodicNotificationL |
441 // (other items were commented in a header). |
457 // (other items were commented in a header). |
442 // ----------------------------------------------------------------------------- |
458 // ----------------------------------------------------------------------------- |
443 // |
459 // |
444 void CLpdVerifierPlugin::HandleNextNonPeriodicNotificationL() |
460 void CLpdVerifierPlugin::HandleNextNonPeriodicNotificationL() |
445 { |
461 { |
446 |
462 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleNextNonPeriodicNotificationL" ); |
447 __ASSERT_DEBUG( iCurrentRequest != KPosNullQNRequestId, |
463 __ASSERT_DEBUG( iCurrentRequest != KPosNullQNRequestId, |
448 HandleAssertErrorL() ); |
464 HandleAssertErrorL() ); |
449 __ASSERT_DEBUG( !iNotifier, HandleAssertErrorL() ); |
465 __ASSERT_DEBUG( !iNotifier, HandleAssertErrorL() ); |
450 |
466 |
451 if (RequestSource() != EPosRequestSourceNetwork) |
467 if (RequestSource() != EPosRequestSourceNetwork) |
460 iRtorProcessor->iRequestDecision=decision; |
476 iRtorProcessor->iRequestDecision=decision; |
461 |
477 |
462 iNotifier = CLpdNotifierQueryLauncher::NewL(*this); |
478 iNotifier = CLpdNotifierQueryLauncher::NewL(*this); |
463 iNotifier->SetRequestInfoL(iRtorProcessor); |
479 iNotifier->SetRequestInfoL(iRtorProcessor); |
464 iNotifier->StartQueryL(); |
480 iNotifier->StartQueryL(); |
|
481 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleNextNonPeriodicNotificationL" ); |
465 } |
482 } |
466 |
483 |
467 |
484 |
468 // ----------------------------------------------------------------------------- |
485 // ----------------------------------------------------------------------------- |
469 // CLpdVerifierPlugin::CompleteCurrentAndContinue |
486 // CLpdVerifierPlugin::CompleteCurrentAndContinue |
470 // (other items were commented in a header). |
487 // (other items were commented in a header). |
471 // ----------------------------------------------------------------------------- |
488 // ----------------------------------------------------------------------------- |
472 // |
489 // |
473 void CLpdVerifierPlugin::CompleteCurrentAndContinue(TInt aResultCode) |
490 void CLpdVerifierPlugin::CompleteCurrentAndContinue(TInt aResultCode) |
474 { |
491 { |
|
492 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::CompleteCurrentAndContinue" ); |
475 if (iCurrentRequest != KPosNullQNRequestId) |
493 if (iCurrentRequest != KPosNullQNRequestId) |
476 { |
494 { |
477 CompleteRequest(iCurrentRequest, aResultCode); |
495 CompleteRequest(iCurrentRequest, aResultCode); |
478 } |
496 } |
479 iCurrentRequest = KPosNullQNRequestId; |
497 iCurrentRequest = KPosNullQNRequestId; |
480 |
498 |
481 __ASSERT_DEBUG( iRequestActiveObject, HandleDebugAssertError() ); |
499 __ASSERT_DEBUG( iRequestActiveObject, HandleDebugAssertError() ); |
482 iRequestActiveObject->ScheduleRequest(); // handle next req. |
500 iRequestActiveObject->ScheduleRequest(); // handle next req. |
|
501 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::CompleteCurrentAndContinue" ); |
483 } |
502 } |
484 |
503 |
485 // ----------------------------------------------------------------------------- |
504 // ----------------------------------------------------------------------------- |
486 // CLpdVerifierPlugin::FreeQueryResources |
505 // CLpdVerifierPlugin::FreeQueryResources |
487 // (other items were commented in a header). |
506 // (other items were commented in a header). |
488 // ----------------------------------------------------------------------------- |
507 // ----------------------------------------------------------------------------- |
489 // |
508 // |
490 void CLpdVerifierPlugin::FreeQueryResources() |
509 void CLpdVerifierPlugin::FreeQueryResources() |
491 { |
510 { |
|
511 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::FreeQueryResources" ); |
492 iCurrentRequest = KPosNullQNRequestId; |
512 iCurrentRequest = KPosNullQNRequestId; |
493 delete iVerifierQuery; |
513 delete iVerifierQuery; |
494 iVerifierQuery = NULL; |
514 iVerifierQuery = NULL; |
495 iVerifyResult = KErrGeneral; |
515 iVerifyResult = KErrGeneral; |
496 delete iNotifier; |
516 delete iNotifier; |
498 if (iRtorProcessor) |
518 if (iRtorProcessor) |
499 { // if already construction fails iRtorProcessor may |
519 { // if already construction fails iRtorProcessor may |
500 // be NULL, otherwise it points to an instance. |
520 // be NULL, otherwise it points to an instance. |
501 iRtorProcessor->ResetAndDestroyRequestors(); |
521 iRtorProcessor->ResetAndDestroyRequestors(); |
502 } |
522 } |
|
523 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::FreeQueryResources" ); |
503 } |
524 } |
504 |
525 |
505 // ----------------------------------------------------------------------------- |
526 // ----------------------------------------------------------------------------- |
506 // CLpdVerifierPlugin::HandleAssertErrorL |
527 // CLpdVerifierPlugin::HandleAssertErrorL |
507 // (other items were commented in a header). |
528 // (other items were commented in a header). |
508 // ----------------------------------------------------------------------------- |
529 // ----------------------------------------------------------------------------- |
509 // |
530 // |
510 void CLpdVerifierPlugin::HandleAssertErrorL() const |
531 void CLpdVerifierPlugin::HandleAssertErrorL() const |
511 { |
532 { |
|
533 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleAssertErrorL" ); |
512 #ifdef _DEBUG |
534 #ifdef _DEBUG |
513 User::Panic(KPanicText, KLpdErrGeneral); |
535 User::Panic(KPanicText, KLpdErrGeneral); |
514 #else |
536 #else |
515 User::Leave( KErrCorrupt ); |
537 User::Leave( KErrCorrupt ); |
516 #endif |
538 #endif |
|
539 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleAssertErrorL" ); |
517 } |
540 } |
518 |
541 |
519 // ----------------------------------------------------------------------------- |
542 // ----------------------------------------------------------------------------- |
520 // CLpdVerifierPlugin::HandleDebugAssertError |
543 // CLpdVerifierPlugin::HandleDebugAssertError |
521 // (other items were commented in a header). |
544 // (other items were commented in a header). |
522 // ----------------------------------------------------------------------------- |
545 // ----------------------------------------------------------------------------- |
523 // |
546 // |
524 void CLpdVerifierPlugin::HandleDebugAssertError() const |
547 void CLpdVerifierPlugin::HandleDebugAssertError() const |
525 { |
548 { |
|
549 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::HandleDebugAssertError" ); |
526 #ifdef _DEBUG |
550 #ifdef _DEBUG |
527 User::Panic(KPanicText, KLpdErrGeneral); |
551 User::Panic(KPanicText, KLpdErrGeneral); |
528 #endif |
552 #endif |
|
553 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::HandleDebugAssertError" ); |
529 } |
554 } |
530 |
555 |
531 |
556 |
532 // ----------------------------------------------------------------------------- |
557 // ----------------------------------------------------------------------------- |
533 // CLpdVerifierPlugin::CheckRequestTypeL |
558 // CLpdVerifierPlugin::CheckRequestTypeL |
536 // @param aCurrentRequest request id |
561 // @param aCurrentRequest request id |
537 // @return TRequestType type of request enum |
562 // @return TRequestType type of request enum |
538 // ----------------------------------------------------------------------------- |
563 // ----------------------------------------------------------------------------- |
539 CPosRequestor::TRequestType CLpdVerifierPlugin::CheckRequestTypeL() |
564 CPosRequestor::TRequestType CLpdVerifierPlugin::CheckRequestTypeL() |
540 { |
565 { |
|
566 LOCVERIFIERDLGDEBUG( "+CLpdVerifierPlugin::CheckRequestTypeL" ); |
541 CPosRequestor::TRequestType reqType = CPosRequestor::ENetworkTypeUnknown; |
567 CPosRequestor::TRequestType reqType = CPosRequestor::ENetworkTypeUnknown; |
542 if (RequestorCountL() > 0) |
568 if (RequestorCountL() > 0) |
543 { |
569 { |
544 CPosRequestor* requestor = RequestorLC(0); |
570 CPosRequestor* requestor = RequestorLC(0); |
545 reqType = requestor->RequestType(); |
571 reqType = requestor->RequestType(); |
546 CleanupStack::PopAndDestroy(requestor); |
572 CleanupStack::PopAndDestroy(requestor); |
547 } |
573 } |
|
574 LOCVERIFIERDLGDEBUG( "-CLpdVerifierPlugin::CheckRequestTypeL" ); |
548 return reqType; |
575 return reqType; |
549 } |
576 } |
550 |
577 |
551 |
578 |
552 // End of File |
579 // End of File |