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