telephonyserverplugins/common_tsy/commontsy/src/mmutility/CMmTsyBase.cpp
branchRCL_3
changeset 82 042fd2753b8f
parent 74 9200f38b1324
equal deleted inserted replaced
74:9200f38b1324 82:042fd2753b8f
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
   289         }
   289         }
   290     }
   290     }
   291 
   291 
   292 #endif
   292 #endif
   293 
   293 
   294 // ---------------------------------------------------------------------------
       
   295 // CMmTsyBase::ResetReqHandle
       
   296 // Resets the request handle in the right req handle store
       
   297 // (other items were commented in a header).
       
   298 // ---------------------------------------------------------------------------
       
   299 //
       
   300 TBool CMmTsyBase::ResetReqHandle(const TTsyReqHandle aTsyReqHandle, const TInt aIpc)
       
   301     {
       
   302     TInt max = GetMaxNumberOfSubsystems();
       
   303     CMmSubTsyBase** subTsyPtr = GetSubsystemArrayPtr();
       
   304     TBool ret = EFalse;
       
   305     
       
   306     for ( TInt i = 0 ; max > i; i++ )
       
   307         {
       
   308          //check which custom object handles this IPC
       
   309         if ( ( NULL != subTsyPtr[i] ) 
       
   310         && ( EFalse != subTsyPtr[i]->SupportingIPC( aIpc ) ) )
       
   311                {
       
   312                //call reset handle method of the right custom object
       
   313                ret = subTsyPtr[i]->ResetReqHandle( aTsyReqHandle, aIpc );
       
   314                i = max;
       
   315                }
       
   316         }
       
   317     return ret;
       
   318     }
       
   319 
       
   320 
       
   321 //  End of File
   294 //  End of File
   322 
   295