telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmsecuritytsy.cpp
branchRCL_3
changeset 18 17af172ffa5f
parent 0 3553901f7fa8
child 19 630d2f34d719
--- a/telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmsecuritytsy.cpp	Thu Jul 15 19:58:53 2010 +0300
+++ b/telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmsecuritytsy.cpp	Thu Aug 19 11:03:36 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
 // All rights reserved.
 // This component and the accompanying materials are made available
 // under the terms of "Eclipse Public License v1.0"
@@ -105,7 +105,7 @@
                 REINTERPRET_CAST( TUint32*, dataPtr ) );
             break;
                 case EMobilePhoneGetLockInfo:
-            ret = GetLockInfoL( aPackage );
+            ret = GetLockInfoL( aTsyReqHandle, aPackage );
             break;
         // Notify Change of Lock Information
         case EMobilePhoneNotifyLockInfoChange:
@@ -288,7 +288,7 @@
 // (other items were commented in a header).
 // ---------------------------------------------------------------------------
 //
-TInt CMmSecurityTsy::GetLockInfoL( const TDataPackage& aPackage ) 
+TInt CMmSecurityTsy::GetLockInfoL( const TTsyReqHandle aTsyReqHandle, const TDataPackage& aPackage ) 
     {
 TFLOGSTRING("LTSY: CMmSecurityTsy::GetLockInfoL - Client call");
     
@@ -302,13 +302,18 @@
         //save pointer to client side for completion
         iRetGetLockInfo = data;
 
+#ifdef REQHANDLE_TIMER
+        iMmPhoneTsy->SetTypeOfResponse( CMmPhoneTsy::EMultimodePhoneGetLockInfo, aTsyReqHandle );
+#else
+        iMmPhoneTsy->iTsyReqHandleStore->SetTsyReqHandle( 
+                    CMmPhoneTsy::EMultimodePhoneGetLockInfo, aTsyReqHandle );
+#endif //REQHANDLE_TIMER
+
         ret = iMmPhoneTsy->iMmPhoneExtInterface->GetLockInfoL( aPackage );
          
-        if ( KErrNone == ret )
+        if ( KErrNone != ret )
             {
-            //save req handle type
-            iMmPhoneTsy->iReqHandleType = 
-                CMmPhoneTsy::EMultimodePhoneGetLockInfo;
+            iMmPhoneTsy->iTsyReqHandleStore->ResetTsyReqHandle( CMmPhoneTsy::EMultimodePhoneGetLockInfo );
             }
         }