telephonyserverplugins/common_tsy/commontsy/src/mmsms/cmmbroadcasttsy.cpp
branchRCL_3
changeset 74 9200f38b1324
parent 66 07a122eea281
child 82 042fd2753b8f
equal deleted inserted replaced
70:4814c5a49428 74:9200f38b1324
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 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".
   166             TRAP( leaveCode, ret = DoExtFuncL( aTsyReqHandle, aIpc, 
   166             TRAP( leaveCode, ret = DoExtFuncL( aTsyReqHandle, aIpc, 
   167                 aPackage ); );
   167                 aPackage ); );
   168 
   168 
   169             if ( KErrNone != leaveCode )
   169             if ( KErrNone != leaveCode )
   170                 {
   170                 {
   171                 ReqCompleted( aTsyReqHandle, leaveCode );
   171 				// reset request handle to indicate the request is no longer ongoing
       
   172                 iTsyReqHandleStore->FindAndResetTsyReqHandle(aTsyReqHandle);
       
   173                 ReqCompleted( aTsyReqHandle, leaveCode );				
   172                 }
   174                 }
   173 
       
   174             // save request handle
   175             // save request handle
   175             if ( EMultimodeBroadcastReqHandleUnknown != iReqHandleType )
   176             else if ( EMultimodeBroadcastReqHandleUnknown != iReqHandleType )
   176                 {
   177                 {
   177 #ifdef REQHANDLE_TIMER
   178 #ifdef REQHANDLE_TIMER
   178                 SetTypeOfResponse( iReqHandleType, aTsyReqHandle );
   179                 SetTypeOfResponse( iReqHandleType, aTsyReqHandle );
   179 #else
   180 #else
   180                 //Never comes here ? See SetTypeOfResponse.
   181                 //Never comes here ? See SetTypeOfResponse.
   181                 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, 
   182                 iTsyReqHandleStore->SetTsyReqHandle( iReqHandleType, 
   182                     aTsyReqHandle );
   183                     aTsyReqHandle );
   183 #endif // REQHANDLE_TIMER
   184 #endif // REQHANDLE_TIMER
   184                 // We've finished with this value now. Clear it so it doesn't leak
       
   185                 //  up to any other instances of this method down the call stack
       
   186                 iReqHandleType = EMultimodeBroadcastReqHandleUnknown;
       
   187                 }
   185                 }
       
   186             // We've finished with this value now. Clear it so it doesn't leak
       
   187             //  up to any other instances of this method down the call stack
       
   188             iReqHandleType = EMultimodeBroadcastReqHandleUnknown;
   188             break;
   189             break;
   189         }
   190         }
   190 
   191 
   191     return ret;
   192     return ret;
   192     }
   193     }