telephonyserverplugins/common_tsy/commontsy/src/mmutility/cmmtsyreqhandlestore.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".
   211     }
   211     }
   212 TFLOGSTRING3("TSY:CMmTsyReqHandleStore::ResetTsyReqHandle aIndex=%d, ret=%d", aIndex, ret);
   212 TFLOGSTRING3("TSY:CMmTsyReqHandleStore::ResetTsyReqHandle aIndex=%d, ret=%d", aIndex, ret);
   213     return ret;
   213     return ret;
   214 }
   214 }
   215 
   215 
   216 // ---------------------------------------------------------------------------
       
   217 // CMmTsyReqHandleStore::FindAndResetTsyReqHandle
       
   218 // Finds and resets all TSY req handle of a given value.
       
   219 // (other items were commented in a header).
       
   220 // ---------------------------------------------------------------------------
       
   221 //
       
   222 TBool CMmTsyReqHandleStore::FindAndResetTsyReqHandle( const TTsyReqHandle aTsyReqHandle )
       
   223     {
       
   224         TInt ret = EFalse;  
       
   225         for( TInt i = 0; i < iNumOfRequests  ; i++ )
       
   226             {
       
   227             if( *( iReqHandles + i ) == aTsyReqHandle )
       
   228                 {
       
   229                     //reset req handle
       
   230 					ResetTsyReqHandle(i);
       
   231                     ret = ETrue;
       
   232                 }
       
   233             }
       
   234         return ret;
       
   235     }
       
   236 
       
   237 #ifdef REQHANDLE_TIMER
   216 #ifdef REQHANDLE_TIMER
   238 
   217 
   239 // ---------------------------------------------------------------------------
   218 // ---------------------------------------------------------------------------
   240 // CMmTsyReqHandleStore::PostponeTimeout
   219 // CMmTsyReqHandleStore::PostponeTimeout
   241 // Sets a new Timeout for the given handle
   220 // Sets a new Timeout for the given handle