accessoryservices/accessoryserver/src/Server/AccSrvConnectionHandler.cpp
branchRCL_3
changeset 81 24127ea5a236
parent 61 8cb079868133
equal deleted inserted replaced
71:fdcef27a50b8 81:24127ea5a236
   146 			    TInt trId = iCallback->HandleASYCommsL( ECmdAccessoryUpdated,
   146 			    TInt trId = iCallback->HandleASYCommsL( ECmdAccessoryUpdated,
   147         		                               		asyCommandParamRecord );
   147         		                               		asyCommandParamRecord );
   148 
   148 
   149 	    		//Stored request data is used when response is received from ASY
   149 	    		//Stored request data is used when response is received from ASY
   150 		    	//(i.e. HandleValueMessageL)
   150 		    	//(i.e. HandleValueMessageL)
   151     			StoreRequestDataL( asyCommandParamRecord.iNameRecord, trId, ETrue );
   151     			StoreRequestData( asyCommandParamRecord.iNameRecord, trId, ETrue );
   152 
   152 
   153 	    		//Store this object to queue to be able to receive response from ASY
   153 	    		//Store this object to queue to be able to receive response from ASY
   154     			iCallback->RegisterControlMessageL( ESetValue, this );
   154     			iCallback->RegisterControlMessageL( ESetValue, this );
   155 
   155 
   156     			//closes notfier connection
   156     			//closes notfier connection
   611     //Send request to ASY Proxy Handler
   611     //Send request to ASY Proxy Handler
   612     trId = iCallback->HandleASYCommsL( command, aASYCommandParam );
   612     trId = iCallback->HandleASYCommsL( command, aASYCommandParam );
   613 
   613 
   614     //Stored request data is used when response is received from ASY
   614     //Stored request data is used when response is received from ASY
   615     //(i.e. HandleValueMessageL)
   615     //(i.e. HandleValueMessageL)
   616     StoreRequestDataL( aASYCommandParam.iNameRecord, trId, EFalse );
   616     StoreRequestData( aASYCommandParam.iNameRecord, trId, EFalse );
   617 
   617 
   618     //Store this object to queue to be able to receive response from ASY
   618     //Store this object to queue to be able to receive response from ASY
   619     iCallback-> RegisterControlMessageL( EGetValue, this );
   619     iCallback-> RegisterControlMessageL( EGetValue, this );
   620 
   620 
   621     }
   621     }
   622 // -----------------------------------------------------------------------------
   622 // -----------------------------------------------------------------------------
   623 // CAccSrvConnectionHandler::StoreRequestDataL
   623 // CAccSrvConnectionHandler::StoreRequestData
   624 // -----------------------------------------------------------------------------
   624 // -----------------------------------------------------------------------------
   625 //
   625 //
   626 void CAccSrvConnectionHandler::StoreRequestDataL( TAccPolNameRecord aName,
   626 void CAccSrvConnectionHandler::StoreRequestData( TAccPolNameRecord aName,
   627                                                  TInt aTrId,
   627                                                  TInt aTrId,
   628                                                  TBool aUpdateConnectionNotification )
   628                                                  TBool aUpdateConnectionNotification )
   629     {
   629     {
   630     COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestDataL()" );
   630     COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestData()" );
   631 
   631 
   632     TAccSrvRequestData requestData;
   632     TAccSrvRequestData requestData;
   633     requestData.iName = aName;
   633     requestData.iName = aName;
   634     requestData.iTrId = aTrId;
   634     requestData.iTrId = aTrId;
   635     requestData.iUpdateNotification = aUpdateConnectionNotification;
   635     requestData.iUpdateNotification = aUpdateConnectionNotification;
   636 
   636 
   637     iRequestDataArray.AppendL( requestData );
   637     iRequestDataArray.Append( requestData );
   638 
   638 
   639     COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestDataL - return void" );
   639     COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestData - return void" );
   640     }
   640     }
   641 
   641 
   642 // -----------------------------------------------------------------------------
   642 // -----------------------------------------------------------------------------
   643 // CAccSrvConnectionHandler::FindRequestData
   643 // CAccSrvConnectionHandler::FindRequestData
   644 //
   644 //