388 } |
388 } |
389 } |
389 } |
390 |
390 |
391 if ( ( startFinalPhase ) && ( iAutolock ) ) |
391 if ( ( startFinalPhase ) && ( iAutolock ) ) |
392 { |
392 { |
393 Dprint( (_L("--> CSCPLockSettingEventHandler::RunL-startFinalPhase") )); |
|
394 // Autolock activation/deactivation was requested |
393 // Autolock activation/deactivation was requested |
395 TRAPD( err, SetAutolockStateL( iState ) ); |
394 TRAPD( err, SetAutolockStateL( iState ) ); |
396 |
395 |
397 if ( err != KErrNone ) |
396 if ( err != KErrNone ) |
398 { |
397 { |
399 // If the call failed, send the result as the message status |
398 // If the call failed, send the result as the message status |
400 Dprint( (_L("--> CSCPLockSettingEventHandler::RunL-err!=Kerrnone") )); |
|
401 iMessageStatus = err; |
399 iMessageStatus = err; |
402 } |
400 } |
403 else if ( !iState ) |
401 else if ( !iState ) |
404 { |
402 { |
405 // Inform the session-class that an unlock-message has been sent |
403 // Inform the session-class that an unlock-message has been sent |
406 // (the server won't respond to Autolock until the handler finishes) |
404 // (the server won't respond to Autolock until the handler finishes) |
407 Dprint( (_L("--> CSCPLockSettingEventHandler::RunL-!iState") )); |
|
408 iSession->LockOperationPending( ESCPCommandUnlockPhone, &iStatus ); |
405 iSession->LockOperationPending( ESCPCommandUnlockPhone, &iStatus ); |
409 iUnlockSent = ETrue; |
406 iUnlockSent = ETrue; |
410 finalCall = EFalse; |
407 finalCall = EFalse; |
411 SetActive(); // Wait for the session-class to complete this call |
408 SetActive(); // Wait for the session-class to complete this call |
412 } |
409 } |