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 StoreRequestData( asyCommandParamRecord.iNameRecord, trId, ETrue ); |
151 StoreRequestDataL( 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 |
596 //Send request to ASY Proxy Handler |
596 //Send request to ASY Proxy Handler |
597 trId = iCallback->HandleASYCommsL( command, aASYCommandParam ); |
597 trId = iCallback->HandleASYCommsL( command, aASYCommandParam ); |
598 |
598 |
599 //Stored request data is used when response is received from ASY |
599 //Stored request data is used when response is received from ASY |
600 //(i.e. HandleValueMessageL) |
600 //(i.e. HandleValueMessageL) |
601 StoreRequestData( aASYCommandParam.iNameRecord, trId, EFalse ); |
601 StoreRequestDataL( aASYCommandParam.iNameRecord, trId, EFalse ); |
602 |
602 |
603 //Store this object to queue to be able to receive response from ASY |
603 //Store this object to queue to be able to receive response from ASY |
604 iCallback-> RegisterControlMessageL( EGetValue, this ); |
604 iCallback-> RegisterControlMessageL( EGetValue, this ); |
605 |
605 |
606 } |
606 } |
607 // ----------------------------------------------------------------------------- |
607 // ----------------------------------------------------------------------------- |
608 // CAccSrvConnectionHandler::StoreRequestData |
608 // CAccSrvConnectionHandler::StoreRequestDataL |
609 // ----------------------------------------------------------------------------- |
609 // ----------------------------------------------------------------------------- |
610 // |
610 // |
611 void CAccSrvConnectionHandler::StoreRequestData( TAccPolNameRecord aName, |
611 void CAccSrvConnectionHandler::StoreRequestDataL( TAccPolNameRecord aName, |
612 TInt aTrId, |
612 TInt aTrId, |
613 TBool aUpdateConnectionNotification ) |
613 TBool aUpdateConnectionNotification ) |
614 { |
614 { |
615 COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestData()" ); |
615 COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestDataL()" ); |
616 |
616 |
617 TAccSrvRequestData requestData; |
617 TAccSrvRequestData requestData; |
618 requestData.iName = aName; |
618 requestData.iName = aName; |
619 requestData.iTrId = aTrId; |
619 requestData.iTrId = aTrId; |
620 requestData.iUpdateNotification = aUpdateConnectionNotification; |
620 requestData.iUpdateNotification = aUpdateConnectionNotification; |
621 |
621 |
622 iRequestDataArray.Append( requestData ); |
622 iRequestDataArray.AppendL( requestData ); |
623 |
623 |
624 COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestData - return void" ); |
624 COM_TRACE_( "[AccFW:AccServer] CAccSrvConnectionHandler::StoreRequestDataL - return void" ); |
625 } |
625 } |
626 |
626 |
627 // ----------------------------------------------------------------------------- |
627 // ----------------------------------------------------------------------------- |
628 // CAccSrvConnectionHandler::FindRequestData |
628 // CAccSrvConnectionHandler::FindRequestData |
629 // |
629 // |