telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmsecuritytsy.cpp
changeset 53 12b52b1a573e
parent 44 8b72faa1200f
child 73 70d75957b98f
equal deleted inserted replaced
52:60785a088077 53:12b52b1a573e
   109         case EMobilePhoneNotifySecurityCapsChange:
   109         case EMobilePhoneNotifySecurityCapsChange:
   110             ret = NotifySecurityCapsChange(
   110             ret = NotifySecurityCapsChange(
   111                 REINTERPRET_CAST( TUint32*, dataPtr ) );
   111                 REINTERPRET_CAST( TUint32*, dataPtr ) );
   112             break;
   112             break;
   113                 case EMobilePhoneGetLockInfo:
   113                 case EMobilePhoneGetLockInfo:
   114             ret = GetLockInfoL( aPackage );
   114             ret = GetLockInfoL( aTsyReqHandle, aPackage );
   115             break;
   115             break;
   116         // Notify Change of Lock Information
   116         // Notify Change of Lock Information
   117         case EMobilePhoneNotifyLockInfoChange:
   117         case EMobilePhoneNotifyLockInfoChange:
   118             ret = NotifyLockInfoChange(  
   118             ret = NotifyLockInfoChange(  
   119                 REINTERPRET_CAST( RMobilePhone::TMobilePhoneLock*, dataPtr ),
   119                 REINTERPRET_CAST( RMobilePhone::TMobilePhoneLock*, dataPtr ),
   292 // CMmSecurityTsy::GetLockInfoL
   292 // CMmSecurityTsy::GetLockInfoL
   293 // This method retrieves the current status and setting of a lock.   
   293 // This method retrieves the current status and setting of a lock.   
   294 // (other items were commented in a header).
   294 // (other items were commented in a header).
   295 // ---------------------------------------------------------------------------
   295 // ---------------------------------------------------------------------------
   296 //
   296 //
   297 TInt CMmSecurityTsy::GetLockInfoL( const TDataPackage& aPackage ) 
   297 TInt CMmSecurityTsy::GetLockInfoL( const TTsyReqHandle aTsyReqHandle, const TDataPackage& aPackage )
   298     {
   298     {
   299 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSECURITYTSY_GETLOCKINFOL_1, "LTSY: CMmSecurityTsy::GetLockInfoL - Client call");
   299 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSECURITYTSY_GETLOCKINFOL_1, "LTSY: CMmSecurityTsy::GetLockInfoL - Client call");
   300     
   300     
   301     TInt ret ( KErrArgument );
   301     TInt ret ( KErrArgument );
   302     
   302     
   306         data->MaxLength() )
   306         data->MaxLength() )
   307         {   
   307         {   
   308         //save pointer to client side for completion
   308         //save pointer to client side for completion
   309         iRetGetLockInfo = data;
   309         iRetGetLockInfo = data;
   310 
   310 
       
   311 #ifdef REQHANDLE_TIMER
       
   312         iMmPhoneTsy->SetTypeOfResponse( CMmPhoneTsy::EMultimodePhoneGetLockInfo, aTsyReqHandle );
       
   313 #else
       
   314         iMmPhoneTsy->iTsyReqHandleStore->SetTsyReqHandle( 
       
   315                     CMmPhoneTsy::EMultimodePhoneGetLockInfo, aTsyReqHandle );
       
   316 #endif //REQHANDLE_TIMER
       
   317 
   311         ret = iMmPhoneTsy->iMmPhoneExtInterface->GetLockInfoL( aPackage );
   318         ret = iMmPhoneTsy->iMmPhoneExtInterface->GetLockInfoL( aPackage );
   312          
   319          
   313         if ( KErrNone == ret )
   320         if ( KErrNone != ret )
   314             {
   321             {
   315             //save req handle type
   322             iMmPhoneTsy->iTsyReqHandleStore->ResetTsyReqHandle( CMmPhoneTsy::EMultimodePhoneGetLockInfo );
   316             iMmPhoneTsy->iReqHandleType = 
       
   317                 CMmPhoneTsy::EMultimodePhoneGetLockInfo;
       
   318             }
   323             }
   319         }
   324         }
   320 
   325 
   321     return ret;
   326     return ret;
   322     }
   327     }