1717 |
1717 |
1718 TPosition posInfo; |
1718 TPosition posInfo; |
1719 TOMASuplUtcTime UtcTime; |
1719 TOMASuplUtcTime UtcTime; |
1720 TOMASuplPositionEstimate PosEstimate; |
1720 TOMASuplPositionEstimate PosEstimate; |
1721 TDateTime TimeStamp; |
1721 TDateTime TimeStamp; |
1722 //coverity[var_decl] |
1722 TInt ZoneCode,Zone,altitude, HorizontalAccuracy; |
1723 TInt ZoneCode,Zone,altitude,AltitudeUncertainty, HorizontalAccuracy; |
1723 TInt AltitudeUncertainty = 0; |
1724 TOMASuplAltitudeInfo AltitudeInfo; |
1724 TOMASuplAltitudeInfo AltitudeInfo; |
1725 TInt latitude,longitude; |
1725 TInt latitude,longitude; |
1726 TOMASuplPositionEstimate::TOMASuplLatitudeSign LatSign; |
1726 TOMASuplPositionEstimate::TOMASuplLatitudeSign LatSign; |
1727 TOMASuplAltitudeInfo::TOMASuplAltitudeDirection altitudeDirection; |
1727 TOMASuplAltitudeInfo::TOMASuplAltitudeDirection altitudeDirection; |
1728 TOMASuplUncertainty Uncertainty; |
1728 TOMASuplUncertainty Uncertainty; |
1774 iTrace->Trace(msg,KTraceFileName, __LINE__); |
1774 iTrace->Trace(msg,KTraceFileName, __LINE__); |
1775 msg.Copy(_L("Altitude ")); |
1775 msg.Copy(_L("Altitude ")); |
1776 msg.AppendNum(altitude); |
1776 msg.AppendNum(altitude); |
1777 iTrace->Trace(msg,KTraceFileName, __LINE__); |
1777 iTrace->Trace(msg,KTraceFileName, __LINE__); |
1778 msg.Copy(_L("Altitude uncertainty ")); |
1778 msg.Copy(_L("Altitude uncertainty ")); |
1779 //coverity[uninit_use_in_call] |
|
1780 msg.AppendNum(AltitudeUncertainty); |
1779 msg.AppendNum(AltitudeUncertainty); |
1781 iTrace->Trace(msg,KTraceFileName, __LINE__); |
1780 iTrace->Trace(msg,KTraceFileName, __LINE__); |
1782 |
1781 |
1783 // Convert uncertainty to meters |
1782 // Convert uncertainty to meters |
1784 TReal pwrMjr, pwrMnr, pwrAlt; |
1783 TReal pwrMjr, pwrMnr, pwrAlt; |
1903 |
1902 |
1904 TPosition posInfo; |
1903 TPosition posInfo; |
1905 TOMASuplUtcTime UtcTime; |
1904 TOMASuplUtcTime UtcTime; |
1906 TOMASuplPositionEstimate PosEstimate; |
1905 TOMASuplPositionEstimate PosEstimate; |
1907 TDateTime TimeStamp; |
1906 TDateTime TimeStamp; |
1908 //coverity[var_decl] |
1907 TInt ZoneCode,Zone,altitude, HorizontalAccuracy; |
1909 TInt ZoneCode,Zone,altitude,AltitudeUncertainty, HorizontalAccuracy; |
1908 TInt AltitudeUncertainty = 0; |
1910 TOMASuplAltitudeInfo AltitudeInfo; |
1909 TOMASuplAltitudeInfo AltitudeInfo; |
1911 TInt latitude,longitude; |
1910 TInt latitude,longitude; |
1912 TOMASuplPositionEstimate::TOMASuplLatitudeSign LatSign; |
1911 TOMASuplPositionEstimate::TOMASuplLatitudeSign LatSign; |
1913 TOMASuplAltitudeInfo::TOMASuplAltitudeDirection AltitudeDirection; |
1912 TOMASuplAltitudeInfo::TOMASuplAltitudeDirection AltitudeDirection; |
1914 TOMASuplUncertainty Uncertainty; |
1913 TOMASuplUncertainty Uncertainty; |
1929 OrientationMajorAxis); |
1928 OrientationMajorAxis); |
1930 // Convert uncertainty to meters |
1929 // Convert uncertainty to meters |
1931 TReal pwrMjr, pwrMnr, pwrAlt; |
1930 TReal pwrMjr, pwrMnr, pwrAlt; |
1932 Math::Pow(pwrMjr, 1.1, UncertaintySemiMajor); |
1931 Math::Pow(pwrMjr, 1.1, UncertaintySemiMajor); |
1933 Math::Pow(pwrMnr, 1.1, UncertaintySemiMinor); |
1932 Math::Pow(pwrMnr, 1.1, UncertaintySemiMinor); |
1934 //coverity[uninit_use] |
|
1935 Math::Pow(pwrAlt, 1.070000, AltitudeUncertainty); |
1933 Math::Pow(pwrAlt, 1.070000, AltitudeUncertainty); |
1936 UncertaintySemiMajorReal = 10 * (pwrMjr -1); |
1934 UncertaintySemiMajorReal = 10 * (pwrMjr -1); |
1937 UncertaintySemiMinorReal = 10 * (pwrMnr -1); |
1935 UncertaintySemiMinorReal = 10 * (pwrMnr -1); |
1938 AltitudeUncertaintyReal = 10 * (pwrAlt -1); |
1936 AltitudeUncertaintyReal = 10 * (pwrAlt -1); |
1939 |
1937 |
2177 { |
2175 { |
2178 msg.Copy(_L("The device is in ON LINE mode.")); |
2176 msg.Copy(_L("The device is in ON LINE mode.")); |
2179 iTrace->Trace(msg,KTraceFileName, __LINE__); |
2177 iTrace->Trace(msg,KTraceFileName, __LINE__); |
2180 } |
2178 } |
2181 |
2179 |
2182 /*CSuplSettings::TSuplSettingsUsage usage = iSuplSettings->SUPLUsage(); |
2180 CSuplSettings::TSuplSettingsUsage usage = iSuplSettings->SUPLUsage(); |
2183 |
2181 |
2184 if (usage == CSuplSettings::ESuplUsageDisabled) |
2182 if (usage == CSuplSettings::ESuplUsageDisabled) |
2185 { |
2183 { |
2186 msg.Copy(_L("SUPL Usage is disabled")); |
2184 msg.Copy(_L("SUPL Usage is disabled")); |
2187 iTrace->Trace(msg,KTraceFileName, __LINE__); |
2185 iTrace->Trace(msg,KTraceFileName, __LINE__); |
2188 iSessionObserver.TerminateSession(this, KErrGeneral); |
2186 iSessionObserver.TerminateSession(this, KErrGeneral); |
2189 return; |
2187 return; |
2190 }*/ |
2188 } |
2191 |
2189 |
2192 COMASuplAsnMessageBase::TSuplMessageType messageType = aDecodedAsnMessage->MessageType(); |
2190 COMASuplAsnMessageBase::TSuplMessageType messageType = aDecodedAsnMessage->MessageType(); |
2193 |
2191 |
2194 if(messageType == COMASuplAsnMessageBase::ESUPL_INIT && aErrorCode == KErrNone) |
2192 if(messageType == COMASuplAsnMessageBase::ESUPL_INIT && aErrorCode == KErrNone) |
2195 { |
2193 { |
2197 } |
2195 } |
2198 else //Other messages than SUPL_INIT.... Send End |
2196 else //Other messages than SUPL_INIT.... Send End |
2199 { |
2197 { |
2200 CreateCloneMessageL(aDecodedAsnMessage); |
2198 CreateCloneMessageL(aDecodedAsnMessage); |
2201 UpdateSuplSessionIDL(); |
2199 UpdateSuplSessionIDL(); |
|
2200 if (iRequestType == ESUPL_NETWORK && messageType == COMASuplAsnMessageBase::ESUPL_INIT) |
|
2201 { |
|
2202 ServerAddressCheckForSuplInitL(); |
|
2203 } |
2202 |
2204 |
2203 iSuplSessionState = ESUPL_INITIALIZED; |
2205 iSuplSessionState = ESUPL_INITIALIZED; |
2204 iSuplMsgType = ESUPL_END; |
2206 iSuplMsgType = ESUPL_END; |
2205 |
2207 |
2206 if((aErrorCode == KErrCompletion && messageType == COMASuplAsnMessageBase::ESUPL_INIT) || |
2208 if((aErrorCode == KErrCompletion && messageType == COMASuplAsnMessageBase::ESUPL_INIT) || |
3620 iTrace->Trace(_L("Failed to Generate First messsage from POS...still continueing.."), KTraceFileName, __LINE__); |
3622 iTrace->Trace(_L("Failed to Generate First messsage from POS...still continueing.."), KTraceFileName, __LINE__); |
3621 iIsFirstPOSMessage = EFalse; |
3623 iIsFirstPOSMessage = EFalse; |
3622 return; |
3624 return; |
3623 } |
3625 } |
3624 } |
3626 } |
3625 //Comment to ignore coverity missing break error |
|
3626 //coverity[MISSING_BREAK :FALSE] |
|
3627 |
|
3628 case COMASuplState::ESUPL_POS_INIT: |
3627 case COMASuplState::ESUPL_POS_INIT: |
3629 { |
3628 { |
3630 cancelSendRequestor = EFalse; |
3629 cancelSendRequestor = EFalse; |
3631 iSuplSessionState = ESUPL_GENERATE; |
3630 iSuplSessionState = ESUPL_GENERATE; |
3632 iSuplMsgType = ESUPL_END; |
3631 iSuplMsgType = ESUPL_END; |
4697 |
4696 |
4698 // ----------------------------------------------------------------------------- |
4697 // ----------------------------------------------------------------------------- |
4699 // COMASuplSession::SettingsUsageUICompletedL |
4698 // COMASuplSession::SettingsUsageUICompletedL |
4700 // |
4699 // |
4701 // ----------------------------------------------------------------------------- |
4700 // ----------------------------------------------------------------------------- |
4702 /*void COMASuplSession::SettingsUsageUICompletedL(TInt aError) |
4701 void COMASuplSession::SettingsUsageUICompletedL(TInt aError) |
4703 { |
4702 { |
4704 iUIFlag = EFalse; |
4703 iUIFlag = EFalse; |
4705 TBuf<64> msg; |
4704 TBuf<64> msg; |
4706 msg.Copy(_L("SUPL Usage UI completed with ... ")); |
4705 msg.Copy(_L("SUPL Usage UI completed with ... ")); |
4707 msg.AppendNum(aError); |
4706 msg.AppendNum(aError); |
4743 msg.AppendNum(aError); |
4742 msg.AppendNum(aError); |
4744 iTrace->Trace(msg,KTraceFileName, __LINE__); |
4743 iTrace->Trace(msg,KTraceFileName, __LINE__); |
4745 iSessionObserver.TerminateSession(this, KErrGeneral); |
4744 iSessionObserver.TerminateSession(this, KErrGeneral); |
4746 return; |
4745 return; |
4747 } |
4746 } |
4748 }*/ |
4747 } |
4749 |
4748 |
4750 // ----------------------------------------------------------------------------- |
4749 // ----------------------------------------------------------------------------- |
4751 // COMASuplSession::CheckForSuplUsageL |
4750 // COMASuplSession::CheckForSuplUsageL |
4752 // |
4751 // |
4753 // ----------------------------------------------------------------------------- |
4752 // ----------------------------------------------------------------------------- |
4754 void COMASuplSession::CheckForSuplUsageL() |
4753 void COMASuplSession::CheckForSuplUsageL() |
4755 { |
4754 { |
4756 iTrace->Trace(_L("COMASuplSession::CheckForSuplUsageL Start"), KTraceFileName, __LINE__); |
4755 iTrace->Trace(_L("COMASuplSession::CheckForSuplUsageL Start"), KTraceFileName, __LINE__); |
4757 |
4756 |
4758 /*if (iSuplUsage >= 1) |
4757 if (iSuplUsage >= 1) |
4759 { |
4758 { |
4760 CSuplSettings::TSuplSettingsUsage usage = iSuplSettings->SUPLUsage(); |
4759 CSuplSettings::TSuplSettingsUsage usage = iSuplSettings->SUPLUsage(); |
4761 if (usage == CSuplSettings::ESuplUsageDisabled) |
4760 if (usage == CSuplSettings::ESuplUsageDisabled) |
4762 { |
4761 { |
4763 iTrace->Trace(_L("CheckForSuplUsageL, SUPL disabled"), KTraceFileName, __LINE__); |
4762 iTrace->Trace(_L("CheckForSuplUsageL, SUPL disabled"), KTraceFileName, __LINE__); |
4764 iSessionObserver.TerminateSession(this, KErrGeneral); |
4763 iSessionObserver.TerminateSession(this, KErrGeneral); |
4765 } |
4764 } |
4766 else if (usage == CSuplSettings::ESuplUsageAutomatic) |
4765 else if (usage == CSuplSettings::ESuplUsageAutomatic) |
4767 { */ |
4766 { |
4768 if (iNwInitError) |
4767 if (iNwInitError) |
4769 { |
4768 { |
4770 iNwInitError = EFalse; |
4769 iNwInitError = EFalse; |
4771 HandleSuplInitErrorL(iNwInitCompletionCode); |
4770 HandleSuplInitErrorL(iNwInitCompletionCode); |
4772 } |
4771 } |
4773 else |
4772 else |
4774 { |
4773 { |
4775 if (iRoaming) |
4774 iTrace->Trace(_L("CheckForSuplUsageL, Initializing"), KTraceFileName, __LINE__); |
4776 HandleRoamingCheckCompleteL(KErrNone, EFalse); |
4775 InitializeL(iRequestID); |
4777 else |
4776 } |
4778 { |
4777 } |
4779 iEtelRoamingCheck = ETrue; |
|
4780 iProtocolManager.CheckForRoaming(); |
|
4781 } |
|
4782 //InitializeL(iRequestID); |
|
4783 } |
|
4784 /*} |
|
4785 |
4778 |
4786 else if (usage == CSuplSettings::ESuplUsageHomeAutomatic || usage == CSuplSettings::ESuplUsageAlwaysAsk) |
4779 else if (usage == CSuplSettings::ESuplUsageHomeAutomatic || usage == CSuplSettings::ESuplUsageAlwaysAsk) |
4787 { |
4780 { |
4788 if (iRoaming) |
4781 if (iRoaming) |
4789 HandleRoamingCheckCompleteL(KErrNone, EFalse); |
4782 HandleRoamingCheckCompleteL(KErrNone, EFalse); |
4876 iEtelRoamingCheck = EFalse; |
4869 iEtelRoamingCheck = EFalse; |
4877 if (aErrorCode == KErrNone) |
4870 if (aErrorCode == KErrNone) |
4878 { |
4871 { |
4879 iUsageHomeNW = aHomeNw; |
4872 iUsageHomeNW = aHomeNw; |
4880 iConnRequestor->UpdateSLPListForHomeUsage(iUsageHomeNW); |
4873 iConnRequestor->UpdateSLPListForHomeUsage(iUsageHomeNW); |
4881 //CSuplSettings::TSuplSettingsUsage usage = iSuplSettings->SUPLUsage(); |
4874 CSuplSettings::TSuplSettingsUsage usage = iSuplSettings->SUPLUsage(); |
4882 |
4875 |
4883 /*if (usage == CSuplSettings::ESuplUsageAlwaysAsk) |
4876 if (usage == CSuplSettings::ESuplUsageAlwaysAsk) |
4884 { |
4877 { |
4885 TInt err; |
4878 TInt err; |
4886 if (!aHomeNw) |
4879 if (!aHomeNw) |
4887 { |
4880 { |
4888 iTrace->Trace(_L("Invoking LaunchSuplUsageSettingsUI, user is roaming"), KTraceFileName, __LINE__); |
4881 iTrace->Trace(_L("Invoking LaunchSuplUsageSettingsUI, user is roaming"), KTraceFileName, __LINE__); |
4940 { |
4933 { |
4941 iTrace->Trace(_L("Invoking HandleSuplErrorL"), KTraceFileName, __LINE__); |
4934 iTrace->Trace(_L("Invoking HandleSuplErrorL"), KTraceFileName, __LINE__); |
4942 HandleSuplErrorL(err); |
4935 HandleSuplErrorL(err); |
4943 } |
4936 } |
4944 |
4937 |
4945 }*/ |
4938 } |
4946 //else if (usage == CSuplSettings::ESuplUsageHomeAutomatic) |
4939 else if (usage == CSuplSettings::ESuplUsageHomeAutomatic) |
4947 //{ |
4940 { |
4948 //if (!aHomeNw) |
4941 if (!aHomeNw) |
4949 // { |
4942 { |
4950 //TInt err = KErrNone; |
4943 TInt err; |
4951 //if (!iSuplSettings->IsUIActive() ) |
4944 //if (!iSuplSettings->IsUIActive() ) |
4952 { |
4945 { |
4953 //iTrace->Trace(_L("Invoking LaunchSuplUsageSettingsUI, user is roaming"), KTraceFileName, __LINE__); |
4946 iTrace->Trace(_L("Invoking LaunchSuplUsageSettingsUI, user is roaming"), KTraceFileName, __LINE__); |
4954 //err = iProtocolManager.LaunchSuplUsageSettingsUI(this, ETrue); |
4947 err = iProtocolManager.LaunchSuplUsageSettingsUI(this, ETrue); |
4955 |
4948 |
4956 if(iSuplMsgType == ESUPL_INIT) |
4949 if(iSuplMsgType == ESUPL_INIT) |
4957 { |
4950 { |
4958 iTrace->Trace(_L("Dialog timer started"), KTraceFileName, __LINE__); |
4951 iTrace->Trace(_L("Dialog timer started"), KTraceFileName, __LINE__); |
4959 |
4952 |
4988 } |
4981 } |
4989 } |
4982 } |
4990 } |
4983 } |
4991 |
4984 |
4992 |
4985 |
4993 /* if(!iSuplSettings->IsUIActive() && KErrNone != err) |
4986 if(!iSuplSettings->IsUIActive() && KErrNone != err) |
4994 { |
4987 { |
4995 SetSuplUsageFlag(); |
4988 SetSuplUsageFlag(); |
4996 } |
4989 } |
4997 else |
4990 else |
4998 { |
4991 { |
4999 iTrace->Trace(_L("Invoking HandleSuplErrorL"), KTraceFileName, __LINE__); |
4992 iTrace->Trace(_L("Invoking HandleSuplErrorL"), KTraceFileName, __LINE__); |
5000 HandleSuplErrorL(err); |
4993 HandleSuplErrorL(err); |
5001 }*/ |
4994 } |
5002 |
4995 } |
5003 |
4996 else |
5004 |
4997 { |
5005 if (iNwInitError) |
4998 if (iNwInitError) |
5006 { |
4999 { |
5007 iNwInitError = EFalse; |
5000 iNwInitError = EFalse; |
5008 HandleSuplInitErrorL(iNwInitCompletionCode); |
5001 HandleSuplInitErrorL(iNwInitCompletionCode); |
5009 } |
5002 } |
5010 else |
5003 else |
5011 InitializeL(iRequestID); |
5004 InitializeL(iRequestID); |
5012 |
5005 } |
|
5006 } |
5013 } |
5007 } |
5014 else |
5008 else |
5015 { |
5009 { |
5016 iSessionObserver.TerminateSession(this, KErrGeneral); |
5010 iSessionObserver.TerminateSession(this, KErrGeneral); |
5017 } |
5011 } |
5077 TBool COMASuplSession::GetSuplUsageFlag() |
5071 TBool COMASuplSession::GetSuplUsageFlag() |
5078 { |
5072 { |
5079 return iUsageDialog; |
5073 return iUsageDialog; |
5080 } |
5074 } |
5081 |
5075 |
5082 /*void COMASuplSession::StartUsageDialogLaunchL() |
5076 void COMASuplSession::StartUsageDialogLaunchL() |
5083 { |
5077 { |
5084 iTrace->Trace(_L("COMASuplSession::StartUsageDialogLaunchL"), KTraceFileName, __LINE__); |
5078 iTrace->Trace(_L("COMASuplSession::StartUsageDialogLaunchL"), KTraceFileName, __LINE__); |
5085 ReSetSuplUsageFlag(); |
5079 ReSetSuplUsageFlag(); |
5086 iTrace->Trace(_L("COMASuplSession::StartUsageDialogLaunchL, flag reset done"), KTraceFileName, __LINE__); |
5080 iTrace->Trace(_L("COMASuplSession::StartUsageDialogLaunchL, flag reset done"), KTraceFileName, __LINE__); |
5087 |
5081 |
5283 else |
5277 else |
5284 { |
5278 { |
5285 iTrace->Trace(_L("Timer Expired for SUPL Dialog"), KTraceFileName, __LINE__); |
5279 iTrace->Trace(_L("Timer Expired for SUPL Dialog"), KTraceFileName, __LINE__); |
5286 |
5280 |
5287 |
5281 |
5288 //if (!iIapDialogShown) |
5282 if (!iIapDialogShown) |
5289 // iProtocolManager.LaunchSuplDialogTimeoutUI(this); |
5283 iProtocolManager.LaunchSuplDialogTimeoutUI(this); |
5290 // else |
5284 else |
5291 // iIapDlgTimerExpired = ETrue; |
5285 iIapDlgTimerExpired = ETrue; |
5292 |
5286 |
5293 } |
5287 } |
5294 return; |
5288 return; |
5295 } |
5289 } |
5296 |
5290 |
5297 // ----------------------------------------------------------------------------- |
5291 // ----------------------------------------------------------------------------- |
5298 // COMASuplSession::SettingsTimeOutUICompletedL |
5292 // COMASuplSession::SettingsTimeOutUICompletedL |
5299 // |
5293 // |
5300 // ----------------------------------------------------------------------------- |
5294 // ----------------------------------------------------------------------------- |
5301 void COMASuplSession::SettingsTimeOutUICompletedL(TInt /*aError*/) |
5295 void COMASuplSession::SettingsTimeOutUICompletedL(TInt aError) |
5302 { |
5296 { |
5303 |
5297 |
5304 // TBuf<64> msg; |
5298 TBuf<64> msg; |
5305 // msg.Copy(_L("SUPL Timeout UI completed with ... ")); |
5299 msg.Copy(_L("SUPL Timeout UI completed with ... ")); |
5306 // msg.AppendNum(aError); |
5300 msg.AppendNum(aError); |
5307 // iTrace->Trace(msg,KTraceFileName, __LINE__); |
5301 iTrace->Trace(msg,KTraceFileName, __LINE__); |
5308 // iSessionObserver.TerminateSession(this, KErrGeneral); |
5302 iSessionObserver.TerminateSession(this, KErrGeneral); |
5309 return; |
5303 return; |
5310 |
5304 |
5311 } |
5305 } |
5312 |
5306 |
5313 // ----------------------------------------------------------------------------- |
5307 // ----------------------------------------------------------------------------- |
5482 iTrace->Trace(_L("End of COMASuplSession::RunTriggerSessionL"), KTraceFileName, __LINE__); |
5476 iTrace->Trace(_L("End of COMASuplSession::RunTriggerSessionL"), KTraceFileName, __LINE__); |
5483 } |
5477 } |
5484 |
5478 |
5485 void COMASuplSession::GetPeriodicTriggerParams() |
5479 void COMASuplSession::GetPeriodicTriggerParams() |
5486 { |
5480 { |
5487 iTrace->Trace(_L("COMASuplSession::GetPeriodicTriggerParams"), |
5481 iTrace->Trace(_L("COMASuplSession::GetPeriodicTriggerParams"), KTraceFileName, __LINE__); |
5488 KTraceFileName, __LINE__); |
5482 iTriggerParams.Get(iNumFixes, iInterval, iStartTime); |
5489 TInt ret = iTriggerParams.Get(iNumFixes, iInterval, iStartTime); |
5483 iTotalNoOfFixes = iNumFixes; |
5490 if (KErrNone == ret) |
5484 iStartTimeCopy = iStartTime; |
5491 { |
5485 } |
5492 iTotalNoOfFixes = iNumFixes; |
|
5493 iStartTimeCopy = iStartTime; |
|
5494 } |
|
5495 } |
|
5496 |
5486 |
5497 void COMASuplSession::StartPeriodicTriggerTimer() |
5487 void COMASuplSession::StartPeriodicTriggerTimer() |
5498 { |
5488 { |
5499 if (iNumFixes != 0) |
5489 if (iNumFixes != 0) |
5500 { |
5490 { |
5621 { |
5611 { |
5622 requestType = CTriggerParams::ENetworkInitiated; |
5612 requestType = CTriggerParams::ENetworkInitiated; |
5623 } |
5613 } |
5624 |
5614 |
5625 CTriggerParams* activeSessionParam = CTriggerParams::NewLC(); |
5615 CTriggerParams* activeSessionParam = CTriggerParams::NewLC(); |
5626 TTime endTime; |
|
5627 endTime.HomeTime(); |
|
5628 TTimeIntervalSeconds period; |
|
5629 period = iNumFixes * iInterval; |
|
5630 endTime = endTime + period; |
|
5631 activeSessionParam->Set(iSETSessionUniqueId,iRequestorName,ETrue,ETrue,CTriggerParams::EPeriodic,requestType,iNumFixes,iInterval); |
5616 activeSessionParam->Set(iSETSessionUniqueId,iRequestorName,ETrue,ETrue,CTriggerParams::EPeriodic,requestType,iNumFixes,iInterval); |
5632 activeSessionParam->SetTriggerEndTime(endTime); |
|
5633 |
|
5634 iTrace->Trace(_L("Session Id : "), KTraceFileName, __LINE__); |
5617 iTrace->Trace(_L("Session Id : "), KTraceFileName, __LINE__); |
5635 TBuf<64> sessionId; |
5618 TBuf<64> sessionId; |
5636 sessionId.AppendNum(iSETSessionUniqueId); |
5619 sessionId.AppendNum(iSETSessionUniqueId); |
5637 iTrace->Trace(sessionId, KTraceFileName, __LINE__); |
5620 iTrace->Trace(sessionId, KTraceFileName, __LINE__); |
5638 |
5621 |
5693 iTrace->Trace(_L("iNetworkPrivacy is not null"), KTraceFileName, __LINE__); |
5676 iTrace->Trace(_L("iNetworkPrivacy is not null"), KTraceFileName, __LINE__); |
5694 |
5677 |
5695 //Inform UI that ,trigger session has started... |
5678 //Inform UI that ,trigger session has started... |
5696 InsertActiveSessionL(); |
5679 InsertActiveSessionL(); |
5697 TInt privacyId; |
5680 TInt privacyId; |
5698 TRAP_IGNORE(iNetworkPrivacy->NotifyLocationRequestL(*iSuplReqInfo, privacyId); ) |
5681 iNetworkPrivacy->NotifyLocationRequestL(*iSuplReqInfo, privacyId); |
5699 iTrace->Trace(_L(" Calling InsertActiveSessionL"), KTraceFileName, __LINE__); |
5682 iTrace->Trace(_L(" Calling InsertActiveSessionL"), KTraceFileName, __LINE__); |
5700 |
5683 |
5701 } |
5684 } |
5702 else |
5685 else |
5703 if (!iPrivacyOverride) |
5686 if (!iPrivacyOverride) |
5710 TBool triggerNotificationStatus; |
5693 TBool triggerNotificationStatus; |
5711 CTriggerParams::TTriggerType triggerType; |
5694 CTriggerParams::TTriggerType triggerType; |
5712 CTriggerParams::TRequestType requestType; |
5695 CTriggerParams::TRequestType requestType; |
5713 TUint64 outstandingTrigger; |
5696 TUint64 outstandingTrigger; |
5714 TUint64 interval; |
5697 TUint64 interval; |
5715 TTime endTime; |
|
5716 |
5698 |
5717 HBufC* sessionName = HBufC::NewL( KMaxSessionNameLength ); |
5699 HBufC* sessionName = HBufC::NewL( KMaxSessionNameLength ); |
5718 |
5700 |
5719 aParamValues->Get(sessionId,sessionName->Des(),notificationPresent,triggerNotificationStatus, |
5701 aParamValues->Get(sessionId,sessionName->Des(),notificationPresent,triggerNotificationStatus, |
5720 triggerType,requestType,outstandingTrigger,interval); |
5702 triggerType,requestType,outstandingTrigger,interval); |
5721 aParamValues->GetTriggerEndTime(endTime); |
|
5722 //triggerNotificationStatus = ETrue; |
5703 //triggerNotificationStatus = ETrue; |
5723 |
5704 |
5724 UpdateActiveTriggerSession(); //Update UI for trigger info... |
5705 UpdateActiveTriggerSession(); //Update UI for trigger info... |
5725 |
5706 |
5726 if (triggerNotificationStatus) |
5707 if (triggerNotificationStatus) |