uiservicetab/vimpstengine/src/cvimpstenginerequestmapper.cpp
branchRCL_3
changeset 9 9fdee5e1da30
parent 0 5e5d6b214f4f
equal deleted inserted replaced
8:796276a1bdcc 9:9fdee5e1da30
    18 // INCLUDE FILES
    18 // INCLUDE FILES
    19 
    19 
    20 #include "cvimpstenginerequestmapper.h"
    20 #include "cvimpstenginerequestmapper.h"
    21 
    21 
    22 #include "cvimpstenginerequest.h"
    22 #include "cvimpstenginerequest.h"
    23 #include "vimpstdebugtrace.h"
    23 
       
    24 #include "uiservicetabtracer.h"
    24 
    25 
    25 // ---------------------------------------------------------
    26 // ---------------------------------------------------------
    26 // CVIMPSTEngineRequestMapper::two phase constructor
    27 // CVIMPSTEngineRequestMapper::two phase constructor
    27 // 
    28 // 
    28 // ---------------------------------------------------------	
    29 // ---------------------------------------------------------	
    69 // ---------------------------------------------------------	
    70 // ---------------------------------------------------------	
    70 CVIMPSTEngineRequest* CVIMPSTEngineRequestMapper::CreateRequestL
    71 CVIMPSTEngineRequest* CVIMPSTEngineRequestMapper::CreateRequestL
    71 											(TXIMPRequestId& aRequestId, 
    72 											(TXIMPRequestId& aRequestId, 
    72 											TBool aIsWait, TXimpOperation aType)
    73 											TBool aIsWait, TXimpOperation aType)
    73 	{
    74 	{
       
    75 	TRACER_AUTO;
    74 	CVIMPSTEngineRequest* req = CVIMPSTEngineRequest::NewL(aRequestId,aType );
    76 	CVIMPSTEngineRequest* req = CVIMPSTEngineRequest::NewL(aRequestId,aType );
    75 	CleanupStack::PushL(req);	
    77 	CleanupStack::PushL(req);	
    76 	TInt status( iRequestArray.Append( req ) );
    78 	TInt status( iRequestArray.Append( req ) );
    77 	User::LeaveIfError( status );
    79 	User::LeaveIfError( status );
    78 		
    80 		
    90 // CVIMPSTEngineRequestMapper::FindRequestId
    92 // CVIMPSTEngineRequestMapper::FindRequestId
    91 // 
    93 // 
    92 // ---------------------------------------------------------		
    94 // ---------------------------------------------------------		
    93 CVIMPSTEngineRequest* CVIMPSTEngineRequestMapper::FindRequestId(const TXIMPRequestId& aRequestId )
    95 CVIMPSTEngineRequest* CVIMPSTEngineRequestMapper::FindRequestId(const TXIMPRequestId& aRequestId )
    94 	{
    96 	{
       
    97 	TRACER_AUTO;
    95 	TInt count = iRequestArray.Count() ;
    98 	TInt count = iRequestArray.Count() ;
    96 	TXIMPRequestId reqId ;
    99 	TXIMPRequestId reqId ;
    97 	CVIMPSTEngineRequest *req = NULL;
   100 	CVIMPSTEngineRequest *req = NULL;
    98 	for (TInt i=0; i < count; i++)
   101 	for (TInt i=0; i < count; i++)
    99 		{
   102 		{
   113 // CVIMPSTEngineRequestMapper::RemoveRequestId
   116 // CVIMPSTEngineRequestMapper::RemoveRequestId
   114 // 
   117 // 
   115 // ---------------------------------------------------------		
   118 // ---------------------------------------------------------		
   116 void CVIMPSTEngineRequestMapper::RemoveRequestId(const TXIMPRequestId& aRequestId )
   119 void CVIMPSTEngineRequestMapper::RemoveRequestId(const TXIMPRequestId& aRequestId )
   117     {
   120     {
       
   121 	TRACER_AUTO;
   118     TInt count = iRequestArray.Count() ;
   122     TInt count = iRequestArray.Count() ;
   119     for (TInt i=0; i < count; i++)
   123     for (TInt i=0; i < count; i++)
   120         {
   124         {
   121         if( iRequestArray[i]->GetRequestId() == aRequestId)         
   125         if( iRequestArray[i]->GetRequestId() == aRequestId)         
   122             {
   126             {