supl/locationsuplfw/gateway/src/epos_csuplipcsubsession.cpp
branchRCL_3
changeset 20 2b4ea9893b66
parent 19 02ba3f1733c6
child 21 6b6920c56e2f
equal deleted inserted replaced
19:02ba3f1733c6 20:2b4ea9893b66
    32 #include "epos_csuplipcsubsession.h"
    32 #include "epos_csuplipcsubsession.h"
    33 #include "epos_suplparameters.h"
    33 #include "epos_suplparameters.h"
    34 #include "epos_csuplsettings.h"
    34 #include "epos_csuplsettings.h"
    35 #include "epos_csuplsettingsinternal.h"
    35 #include "epos_csuplsettingsinternal.h"
    36 #include "epos_csuplsettingparams.h"
    36 #include "epos_csuplsettingparams.h"
    37 #include "epos_suplgeocellinfo.h"
       
    38 
       
    39 
    37 
    40 // CONSTANTS
    38 // CONSTANTS
    41 //#ifdef _DEBUG
    39 //#ifdef _DEBUG
    42 _LIT(KTraceFileName, "SUPL_GW::epos_csuplipcsubsession.cpp");
    40 _LIT(KTraceFileName, "SUPL_GW::epos_csuplipcsubsession.cpp");
    43 //#endif
    41 //#endif
   553 //
   551 //
   554     
   552     
   555 TInt CSuplIPCSubSession::PackPositionData(const RMessage2& aMessage)
   553 TInt CSuplIPCSubSession::PackPositionData(const RMessage2& aMessage)
   556 	{
   554 	{
   557 	DEBUG_TRACE("CSuplIPCSubSession::PackPositionData", __LINE__)
   555 	DEBUG_TRACE("CSuplIPCSubSession::PackPositionData", __LINE__)
   558     TPositionInfo& info = PositionInfo(iPositionBuffer);
   556     PositionInfo(iPositionBuffer);
   559  
       
   560     TPtr8 ptrToBuffer = iPositionBuffer->Des();
   557     TPtr8 ptrToBuffer = iPositionBuffer->Des();
   561     return SuplGlobal::Write(aMessage, 0, ptrToBuffer);
   558     return SuplGlobal::Write(aMessage, 0, ptrToBuffer);
   562     }
   559     }
   563  
   560  
   564 // ---------------------------------------------------------
   561 // ---------------------------------------------------------
   568 // ---------------------------------------------------------
   565 // ---------------------------------------------------------
   569 //
   566 //
   570 TInt CSuplIPCSubSession::PackServerAddressData(const RMessage2& aMessage)
   567 TInt CSuplIPCSubSession::PackServerAddressData(const RMessage2& aMessage)
   571     {
   568     {
   572     DEBUG_TRACE("CSuplIPCSubSession::PackServerAddressData", __LINE__)
   569     DEBUG_TRACE("CSuplIPCSubSession::PackServerAddressData", __LINE__)
   573     TDes& info = ServerAddress(iPositionBuffer);
   570 
   574  
   571     ServerAddress(iPositionBuffer);
   575     TPtr8 ptrToBuffer = iPositionBuffer->Des();
   572     TPtr8 ptrToBuffer = iPositionBuffer->Des();
   576     return SuplGlobal::Write(aMessage, 0, ptrToBuffer);
   573     return SuplGlobal::Write(aMessage, 0, ptrToBuffer);
   577     }
   574     }
   578     
   575     
   579 //---------------------------------------------------------------------------------------------------
   576 //---------------------------------------------------------------------------------------------------
   585 //
   582 //
   586     
   583     
   587 TInt CSuplIPCSubSession::PackTriggerData(const RMessage2& aMessage)
   584 TInt CSuplIPCSubSession::PackTriggerData(const RMessage2& aMessage)
   588 	{
   585 	{
   589 	DEBUG_TRACE("CSuplIPCSubSession::PackTriggerData", __LINE__)
   586 	DEBUG_TRACE("CSuplIPCSubSession::PackTriggerData", __LINE__)
   590     TSuplTriggerFireInfo& info = TriggerInfo(iPositionBuffer);
   587 
   591  
   588     TriggerInfo(iPositionBuffer);
   592     TPtr8 ptrToBuffer = iPositionBuffer->Des();
   589     TPtr8 ptrToBuffer = iPositionBuffer->Des();
   593     return SuplGlobal::Write(aMessage, 2, ptrToBuffer);
   590     return SuplGlobal::Write(aMessage, 2, ptrToBuffer);
   594     }
   591     }
   595 
   592 
   596 // ---------------------------------------------------------
   593 // ---------------------------------------------------------
   741     	
   738     	
   742 	iSuplSessnReq->NotifyTriggerFiredRequestL(iSuplSession,fireInfo);				
   739 	iSuplSessnReq->NotifyTriggerFiredRequestL(iSuplSession,fireInfo);				
   743 						
   740 						
   744 	CleanupStack::Pop(fireInfoBuf);	    		
   741 	CleanupStack::Pop(fireInfoBuf);	    		
   745 	}
   742 	}
   746 
       
   747 // ---------------------------------------------------------
   743 // ---------------------------------------------------------
   748 // CSuplIPCSubSession::HandleLocationConversionL
   744 // CSuplIPCSubSession::HandleLocationConversionL
   749 //
   745 //
   750 // (other items were commented in a header).
   746 // (other items were commented in a header).
   751 // ---------------------------------------------------------
   747 // ---------------------------------------------------------
   788         User::Leave(KErrNotFound);
   784         User::Leave(KErrNotFound);
   789         }
   785         }
   790     iSuplSessnReq->CancelLocationConversionRequest();
   786     iSuplSessnReq->CancelLocationConversionRequest();
   791     SuplGlobal::RequestComplete(aMessage, KErrNone);
   787     SuplGlobal::RequestComplete(aMessage, KErrNone);
   792     CompleteRunSession(KErrCancel);            
   788     CompleteRunSession(KErrCancel);            
   793     }
   789     }	
   794 	
       
   795 // End of File
   790 // End of File