telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.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".
   223         TRAP( trapError, ret = DoExtFuncL( aTsyReqHandle, aIpc, aPackage ); );
   223         TRAP( trapError, ret = DoExtFuncL( aTsyReqHandle, aIpc, aPackage ); );
   224 
   224 
   225         if ( KErrNone != trapError )
   225         if ( KErrNone != trapError )
   226             {
   226             {
   227             // error handling. Object cannot be created.
   227             // error handling. Object cannot be created.
   228             ResetReqHandle(aTsyReqHandle, aIpc);
   228             ret = trapError;
   229 		    ret = trapError;            
   229             }
   230 			}
   230         if ( KErrNone != ret )
   231       		if ( KErrNone != ret )
       
   232             {
   231             {
   233             ReqCompleted( aTsyReqHandle, ret );
   232             ReqCompleted( aTsyReqHandle, ret );
   234             }
   233             }
   235         }
   234         }
   236 
   235 
  6908         }
  6907         }
  6909 
  6908 
  6910     return KErrNone;
  6909     return KErrNone;
  6911     }
  6910     }
  6912 
  6911 
  6913 TBool CMmCustomTsy::ResetReqHandle( const TTsyReqHandle aTsyReqHandle, TInt aIpc )
       
  6914     {
       
  6915     TBool ret = CMmTsyBase::ResetReqHandle(aTsyReqHandle, aIpc);
       
  6916     if(!ret)
       
  6917         {
       
  6918         ret = iTsyReqHandleStore->FindAndResetTsyReqHandle( aTsyReqHandle );
       
  6919         }
       
  6920     return ret;
       
  6921     }
       
  6922     
       
  6923 
       
  6924 //  End of File
  6912 //  End of File