telephonyserverplugins/common_tsy/commontsy/src/mmutility/CMmTsyBase.cpp
changeset 69 b982c3e940f3
parent 0 3553901f7fa8
--- a/telephonyserverplugins/common_tsy/commontsy/src/mmutility/CMmTsyBase.cpp	Mon Aug 09 17:43:08 2010 +0100
+++ b/telephonyserverplugins/common_tsy/commontsy/src/mmutility/CMmTsyBase.cpp	Tue Sep 14 17:55:14 2010 +0100
@@ -291,5 +291,32 @@
 
 #endif
 
+// ---------------------------------------------------------------------------
+// CMmTsyBase::ResetReqHandle
+// Resets the request handle in the right req handle store
+// (other items were commented in a header).
+// ---------------------------------------------------------------------------
+//
+TBool CMmTsyBase::ResetReqHandle(const TTsyReqHandle aTsyReqHandle, const TInt aIpc)
+    {
+    TInt max = GetMaxNumberOfSubsystems();
+    CMmSubTsyBase** subTsyPtr = GetSubsystemArrayPtr();
+    TBool ret = EFalse;
+    
+    for ( TInt i = 0 ; max > i; i++ )
+        {
+         //check which custom object handles this IPC
+        if ( ( NULL != subTsyPtr[i] ) 
+        && ( EFalse != subTsyPtr[i]->SupportingIPC( aIpc ) ) )
+               {
+               //call reset handle method of the right custom object
+               ret = subTsyPtr[i]->ResetReqHandle( aTsyReqHandle, aIpc );
+               i = max;
+               }
+        }
+    return ret;
+    }
+
+
 //  End of File