103 } |
103 } |
104 |
104 |
105 // Destructor. |
105 // Destructor. |
106 EXPORT_C COMASUPLProtocolManager1::~COMASUPLProtocolManager1() |
106 EXPORT_C COMASUPLProtocolManager1::~COMASUPLProtocolManager1() |
107 { |
107 { |
108 /*if(iSettingsLauncher) |
108 if(iSettingsLauncher) |
109 { |
109 { |
110 iSettingsLauncher->CancelLaunch(); |
110 iSettingsLauncher->CancelLaunch(); |
111 }*/ |
111 } |
|
112 |
112 if(iSuplSettings) |
113 if(iSuplSettings) |
113 { |
114 { |
114 iSuplSettings->SetUIActive( EFalse ); |
115 iSuplSettings->SetUIActive( EFalse ); |
115 } |
116 } |
116 |
117 |
117 DeleteAllSessions(); |
118 DeleteAllSessions(); |
118 iSuplSessions.Reset(); |
119 iSuplSessions.Reset(); |
119 iSuplSessions.Close(); |
120 iSuplSessions.Close(); |
120 |
121 |
121 //Only attempt to unload the phone if the TSY has actually been initialised |
122 //Only attempt to unload the phone if the TSY has actually been initialised |
122 if(iTsyName.Length() > 0) |
123 if(iTsyName.Length() > 0) |
123 { |
124 { |
124 iTelServer.UnloadPhoneModule(iTsyName); |
125 iTelServer.UnloadPhoneModule(iTsyName); |
125 } |
126 } |
126 |
127 |
127 |
128 |
128 iQueuedPacket.Close(); |
129 iQueuedPacket.Close(); |
129 |
130 |
135 delete iSuplStorageSettings; |
136 delete iSuplStorageSettings; |
136 |
137 |
137 |
138 |
138 delete iSuplEcomEventWatcher; |
139 delete iSuplEcomEventWatcher; |
139 |
140 |
140 //delete iSettingsLauncher; |
141 delete iSettingsLauncher; |
141 delete iNotifier; |
142 delete iNotifier; |
142 iMobilePhone.Close(); |
143 iMobilePhone.Close(); |
143 iTelServer.Close(); |
144 iTelServer.Close(); |
144 iIMSI.Close(); |
145 iIMSI.Close(); |
145 iTrace->Trace(_L("At the End of COMASUPLProtocolManager1::~COMASUPLProtocolManager1"), |
146 iTrace->Trace(_L("At the End of COMASUPLProtocolManager1::~COMASUPLProtocolManager1"), |
173 User::LeaveIfError(err); |
174 User::LeaveIfError(err); |
174 |
175 |
175 iSuplStorageSettings = CSuplSettingsInternal::NewL(); |
176 iSuplStorageSettings = CSuplSettingsInternal::NewL(); |
176 iSuplStorageSettings->SetObserverL(*this); |
177 iSuplStorageSettings->SetObserverL(*this); |
177 |
178 |
178 //iSettingsLauncher = COMASuplSettingsLauncher::NewL( *this ); |
179 iSettingsLauncher = COMASuplSettingsLauncher::NewL( *this ); |
179 |
180 |
180 iIMSI.CreateL( KMaxIMSILen ); |
181 iIMSI.CreateL( KMaxIMSILen ); |
181 iIsPreviouslyDecodingFailed = EFalse; |
182 iIsPreviouslyDecodingFailed = EFalse; |
182 iTimer = COMASuplTimeoutTimer::NewL(*this); |
183 iTimer = COMASuplTimeoutTimer::NewL(*this); |
183 } |
184 } |
250 iCommManager = aCommManager; |
251 iCommManager = aCommManager; |
251 |
252 |
252 //Connect to ETel |
253 //Connect to ETel |
253 User::LeaveIfError(ConnectToETelL()); |
254 User::LeaveIfError(ConnectToETelL()); |
254 |
255 |
255 //ReadSuplUsage(); |
256 ReadSuplUsage(); |
256 |
257 |
257 if(iSuplEcomEventWatcher) |
258 if(iSuplEcomEventWatcher) |
258 { |
259 { |
259 iTrace->Trace(_L("NotifyOnPlugInUnInstallation starting"), KTraceFileName, __LINE__); |
260 iTrace->Trace(_L("NotifyOnPlugInUnInstallation starting"), KTraceFileName, __LINE__); |
260 iSuplEcomEventWatcher->NotifyOnPlugInUnInstallation(); |
261 iSuplEcomEventWatcher->NotifyOnPlugInUnInstallation(); |
528 |
529 |
529 //Last Session invoking Destroy |
530 //Last Session invoking Destroy |
530 iTrace->Trace(_L("COMASUPLProtocolManager1::DestroySession Destroy Session"), KTraceFileName, __LINE__); |
531 iTrace->Trace(_L("COMASUPLProtocolManager1::DestroySession Destroy Session"), KTraceFileName, __LINE__); |
531 |
532 |
532 COMASuplSession* OMASession = static_cast<COMASuplSession*>(aSuplSession); |
533 COMASuplSession* OMASession = static_cast<COMASuplSession*>(aSuplSession); |
|
534 if (OMASession->HasMeLaunchedUsageDialog()) |
|
535 { |
|
536 iTrace->Trace(_L("Setting NULL."), KTraceFileName, __LINE__); |
|
537 iSessnUIObserver = NULL; |
|
538 } |
533 if (OMASession->GetSessionUIFlag()) |
539 if (OMASession->GetSessionUIFlag()) |
534 { |
540 { |
535 OMASession->DestroySession(); |
541 OMASession->DestroySession(); |
536 iSessnUIObserver = NULL; |
542 iSessnUIObserver = NULL; |
537 } |
543 } |
1038 if(KErrNotFound == index) |
1044 if(KErrNotFound == index) |
1039 { |
1045 { |
1040 iTrace->Trace(_L("Cannot found Supl session."), KTraceFileName, __LINE__); |
1046 iTrace->Trace(_L("Cannot found Supl session."), KTraceFileName, __LINE__); |
1041 return; |
1047 return; |
1042 } |
1048 } |
|
1049 |
|
1050 COMASuplSession* OMASession = static_cast<COMASuplSession*>(aSuplSession); |
|
1051 if (OMASession->HasMeLaunchedUsageDialog()) |
|
1052 { |
|
1053 iTrace->Trace(_L("Setting NULL."), KTraceFileName, __LINE__); |
|
1054 iSessnUIObserver = NULL; |
|
1055 } |
|
1056 |
1043 aSuplSession->CancelRunSession(); |
1057 aSuplSession->CancelRunSession(); |
1044 return ; |
1058 return ; |
1045 } |
1059 } |
1046 |
1060 |
1047 |
1061 |
1187 void COMASUPLProtocolManager1::HandleSuplSettingsChangeL(TSuplSettingsEventType aEvent,TInt /*aSlpId*/) |
1201 void COMASUPLProtocolManager1::HandleSuplSettingsChangeL(TSuplSettingsEventType aEvent,TInt /*aSlpId*/) |
1188 { |
1202 { |
1189 if( aEvent == MSuplSettingsObserver::ESuplSettingsEventSuplUsageChange) |
1203 if( aEvent == MSuplSettingsObserver::ESuplSettingsEventSuplUsageChange) |
1190 { |
1204 { |
1191 iTrace->Trace(_L("Setting Changed.SUPL Usage changed.. Reeading once again..."), KTraceFileName, __LINE__); |
1205 iTrace->Trace(_L("Setting Changed.SUPL Usage changed.. Reeading once again..."), KTraceFileName, __LINE__); |
1192 //ReadSuplUsage(); |
1206 ReadSuplUsage(); |
1193 } |
1207 } |
1194 else if( aEvent == MSuplSettingsObserver::ESuplSettingsEventCommParameterChange) |
1208 else if( aEvent == MSuplSettingsObserver::ESuplSettingsEventCommParameterChange) |
1195 { |
1209 { |
1196 iTrace->Trace(_L("Setting Changed.Communication Parameters changed.. Reeading once again..."), KTraceFileName, __LINE__); |
1210 iTrace->Trace(_L("Setting Changed.Communication Parameters changed.. Reeading once again..."), KTraceFileName, __LINE__); |
1197 |
1211 |
1614 iPreviousMessageLength = 0 ; |
1628 iPreviousMessageLength = 0 ; |
1615 iIsPreviouslyDecodingFailed = EFalse; |
1629 iIsPreviouslyDecodingFailed = EFalse; |
1616 } |
1630 } |
1617 |
1631 |
1618 |
1632 |
|
1633 // ----------------------------------------------------------------------------- |
|
1634 // COMASUPLProtocolManager1::LaunchSettingsUI |
|
1635 // |
|
1636 // |
|
1637 // ----------------------------------------------------------------------------- |
|
1638 // |
|
1639 TInt COMASUPLProtocolManager1::LaunchSettingsUI(MOMASuplUICompletionObserver* aObserver,const TDesC& aForHslp) |
|
1640 { |
|
1641 iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchSettingsUI"), KTraceFileName, __LINE__); |
|
1642 |
|
1643 if(iUIRequestArray.Count() <= 0 ) |
|
1644 { |
|
1645 iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchSettingsUI"), KTraceFileName, __LINE__); |
|
1646 iUIRequestArray.Append(aObserver); |
|
1647 iSuplSettings->SetUIActive(ETrue); |
|
1648 iCurrentlyUsedHslp.Copy(aForHslp); |
|
1649 return iSettingsLauncher->LaunchSettings(); |
|
1650 } |
|
1651 else if(iCurrentlyUsedHslp.Compare(aForHslp) == KErrNone) |
|
1652 { |
|
1653 iUIRequestArray.Append(aObserver); |
|
1654 } |
|
1655 else |
|
1656 { |
|
1657 return KErrInUse; |
|
1658 } |
|
1659 |
|
1660 return KErrNone; |
|
1661 } |
|
1662 |
|
1663 // ----------------------------------------------------------------------------- |
|
1664 // COMASUPLProtocolManager1::SettingsUICompletedL |
|
1665 // |
|
1666 // |
|
1667 // ----------------------------------------------------------------------------- |
|
1668 // |
|
1669 void COMASUPLProtocolManager1::SettingsUICompletedL(TInt aError) |
|
1670 { |
|
1671 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUICompletedL"), KTraceFileName, __LINE__); |
|
1672 iSuplSettings->SetUIActive(EFalse); |
|
1673 |
|
1674 if (iDeInitDone) |
|
1675 { |
|
1676 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUICompletedL, de-init done. Completing request"), KTraceFileName, __LINE__); |
|
1677 iDeInitDone = EFalse; |
|
1678 User::RequestComplete(iDeInitRequestStatus,KErrNone); |
|
1679 } |
|
1680 else |
|
1681 { |
|
1682 for(TInt i = 0; i < iUIRequestArray.Count(); i++) |
|
1683 { |
|
1684 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUICompletedL,Forwarding ConnRerquestor "), KTraceFileName, __LINE__); |
|
1685 MOMASuplUICompletionObserver* observer = iUIRequestArray[i]; |
|
1686 observer->SettingsUICompletedL(aError); |
|
1687 } |
|
1688 |
|
1689 } |
|
1690 |
|
1691 iCurrentlyUsedHslp.Copy(_L("")); |
|
1692 iUIRequestArray.Reset(); |
|
1693 } |
|
1694 |
1619 |
1695 |
1620 // ----------------------------------------------------------------------------- |
1696 // ----------------------------------------------------------------------------- |
1621 // COMASUPLProtocolManager1::DeInitialize |
1697 // COMASUPLProtocolManager1::DeInitialize |
1622 // |
1698 // |
1623 // |
1699 // |
1673 // COMASUPLProtocolManager1::LaunchSuplUsageSettingsUI |
1749 // COMASUPLProtocolManager1::LaunchSuplUsageSettingsUI |
1674 // |
1750 // |
1675 // |
1751 // |
1676 // ----------------------------------------------------------------------------- |
1752 // ----------------------------------------------------------------------------- |
1677 // |
1753 // |
1678 /*TInt COMASUPLProtocolManager1::LaunchSuplUsageSettingsUI(MOMASuplUICompletionObserver* aObserver, TBool aRoaming) |
1754 TInt COMASUPLProtocolManager1::LaunchSuplUsageSettingsUI(MOMASuplUICompletionObserver* aObserver, TBool aRoaming) |
1679 { |
1755 { |
1680 iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchSuplUsageSettingsUI"), KTraceFileName, __LINE__); |
1756 iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchSuplUsageSettingsUI"), KTraceFileName, __LINE__); |
1681 if (iSuplSettings->IsUIActive() && !iTimeOutDialogPresent) |
1757 if (iSuplSettings->IsUIActive() && !iTimeOutDialogPresent) |
1682 return KErrInUse; |
1758 return KErrInUse; |
1683 // If timeout dialog is present, close it |
1759 // If timeout dialog is present, close it |
1688 iSettingsLauncher->Cancel(); |
1764 iSettingsLauncher->Cancel(); |
1689 } |
1765 } |
1690 iSessnUIObserver = aObserver; |
1766 iSessnUIObserver = aObserver; |
1691 iSuplSettings->SetUIActive(ETrue); |
1767 iSuplSettings->SetUIActive(ETrue); |
1692 return iSettingsLauncher->LaunchSuplUsageSettingsUI(aRoaming); |
1768 return iSettingsLauncher->LaunchSuplUsageSettingsUI(aRoaming); |
1693 }*/ |
1769 } |
1694 |
1770 |
1695 // ----------------------------------------------------------------------------- |
1771 // ----------------------------------------------------------------------------- |
1696 // COMASUPLProtocolManager1::SettingsUsageUICompletedL |
1772 // COMASUPLProtocolManager1::SettingsUsageUICompletedL |
1697 // |
1773 // |
1698 // |
1774 // |
1699 // ----------------------------------------------------------------------------- |
1775 // ----------------------------------------------------------------------------- |
1700 // |
1776 // |
1701 /*void COMASUPLProtocolManager1::SettingsUsageUICompletedL(TInt aError) |
1777 void COMASUPLProtocolManager1::SettingsUsageUICompletedL(TInt aError) |
1702 { |
1778 { |
1703 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUsageUICompletedL"), KTraceFileName, __LINE__); |
1779 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsUsageUICompletedL"), KTraceFileName, __LINE__); |
1704 iSuplSettings->SetUIActive(EFalse); |
1780 iSuplSettings->SetUIActive(EFalse); |
1705 |
1781 |
1706 if (iDeInitDone) |
1782 if (iDeInitDone) |
1714 if (iSessnUIObserver) |
1790 if (iSessnUIObserver) |
1715 iSessnUIObserver->SettingsUsageUICompletedL(aError); |
1791 iSessnUIObserver->SettingsUsageUICompletedL(aError); |
1716 } |
1792 } |
1717 |
1793 |
1718 CheckOutstandingUsageUIRequestsL(); |
1794 CheckOutstandingUsageUIRequestsL(); |
1719 }*/ |
1795 } |
1720 |
1796 |
1721 // ----------------------------------------------------------------------------- |
1797 // ----------------------------------------------------------------------------- |
1722 // COMASUPLProtocolManager1::ReadSuplUsage |
1798 // COMASUPLProtocolManager1::ReadSuplUsage |
1723 // Reads Supl Usage from Central Repository |
1799 // Reads Supl Usage from Central Repository |
1724 // |
1800 // |
1725 // ----------------------------------------------------------------------------- |
1801 // ----------------------------------------------------------------------------- |
1726 // |
1802 // |
1727 /*void COMASUPLProtocolManager1::ReadSuplUsage() |
1803 void COMASUPLProtocolManager1::ReadSuplUsage() |
1728 { |
1804 { |
1729 iTrace->Trace(_L("COMASUPLProtocolManager1::ReadSuplUsage start"), KTraceFileName, __LINE__); |
1805 iTrace->Trace(_L("COMASUPLProtocolManager1::ReadSuplUsage start"), KTraceFileName, __LINE__); |
1730 CSuplSettings::TSuplSettingsUsage suplUsage; |
1806 CSuplSettings::TSuplSettingsUsage suplUsage; |
1731 TInt err = iSuplStorageSettings->GetSuplUsage(suplUsage); |
1807 TInt err = iSuplStorageSettings->GetSuplUsage(suplUsage); |
1732 if(err == KErrNone ) |
1808 if(err == KErrNone ) |
1733 { |
1809 { |
1734 iSuplSettings->SetSUPLUsage(suplUsage); |
1810 iSuplSettings->SetSUPLUsage(suplUsage); |
1735 } |
1811 } |
1736 iTrace->Trace(_L("COMASUPLProtocolManager1::ReadSuplUsage end"), KTraceFileName, __LINE__); |
1812 iTrace->Trace(_L("COMASUPLProtocolManager1::ReadSuplUsage end"), KTraceFileName, __LINE__); |
1737 }*/ |
1813 } |
1738 |
1814 |
1739 void COMASUPLProtocolManager1::UpdateAllSubSessnsInSameSession(TInt aIpcSessionId) |
1815 void COMASUPLProtocolManager1::UpdateAllSubSessnsInSameSession(TInt aIpcSessionId) |
1740 { |
1816 { |
1741 TInt TotalSession = iSuplSessions.Count(); |
1817 TInt TotalSession = iSuplSessions.Count(); |
1742 COMASuplSession* OMAsuplSession = NULL; |
1818 COMASuplSession* OMAsuplSession = NULL; |
1863 // COMASUPLProtocolManager1::LaunchSuplDialogTimeoutUI |
1939 // COMASUPLProtocolManager1::LaunchSuplDialogTimeoutUI |
1864 // |
1940 // |
1865 // |
1941 // |
1866 // ----------------------------------------------------------------------------- |
1942 // ----------------------------------------------------------------------------- |
1867 // |
1943 // |
1868 /*TInt COMASUPLProtocolManager1::LaunchSuplDialogTimeoutUI(MOMASuplUICompletionObserver* aObserver ) |
1944 TInt COMASUPLProtocolManager1::LaunchSuplDialogTimeoutUI(MOMASuplUICompletionObserver* aObserver ) |
1869 { |
1945 { |
1870 iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchTimeOutUI"), KTraceFileName, __LINE__); |
1946 iTrace->Trace(_L("COMASUPLProtocolManager1::LaunchTimeOutUI"), KTraceFileName, __LINE__); |
1871 |
1947 |
1872 iSessnUIObserver = aObserver; |
1948 iSessnUIObserver = aObserver; |
1873 if (iSuplSettings->IsUIActive()) |
1949 if (iSuplSettings->IsUIActive()) |
1877 } |
1953 } |
1878 |
1954 |
1879 iSuplSettings->SetUIActive(ETrue); |
1955 iSuplSettings->SetUIActive(ETrue); |
1880 iTimeOutDialogPresent = ETrue; |
1956 iTimeOutDialogPresent = ETrue; |
1881 return iSettingsLauncher->LaunchSessionTimeOutDialog(); |
1957 return iSettingsLauncher->LaunchSessionTimeOutDialog(); |
1882 }*/ |
1958 } |
1883 |
1959 |
1884 // ----------------------------------------------------------------------------- |
1960 // ----------------------------------------------------------------------------- |
1885 // COMASUPLProtocolManager1::SettingsTimeOutUICompletedL |
1961 // COMASUPLProtocolManager1::SettingsTimeOutUICompletedL |
1886 // |
1962 // |
1887 // |
1963 // |
1888 // ----------------------------------------------------------------------------- |
1964 // ----------------------------------------------------------------------------- |
1889 // |
1965 // |
1890 /*void COMASUPLProtocolManager1::SettingsTimeOutUICompletedL(TInt aError) |
1966 void COMASUPLProtocolManager1::SettingsTimeOutUICompletedL(TInt aError) |
1891 { |
1967 { |
1892 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsTimeOutUICompletedL"), KTraceFileName, __LINE__); |
1968 iTrace->Trace(_L("COMASUPLProtocolManager1::SettingsTimeOutUICompletedL"), KTraceFileName, __LINE__); |
1893 iSuplSettings->SetUIActive(EFalse); |
1969 iSuplSettings->SetUIActive(EFalse); |
1894 iTimeOutDialogPresent = EFalse; |
1970 iTimeOutDialogPresent = EFalse; |
1895 |
1971 |
1902 else |
1978 else |
1903 { |
1979 { |
1904 if (iSessnUIObserver) |
1980 if (iSessnUIObserver) |
1905 iSessnUIObserver->SettingsTimeOutUICompletedL(aError); |
1981 iSessnUIObserver->SettingsTimeOutUICompletedL(aError); |
1906 } |
1982 } |
1907 }*/ |
1983 } |
1908 |
1984 |
1909 // ----------------------------------------------------------------------------- |
1985 // ----------------------------------------------------------------------------- |
1910 // COMASUPLProtocolManager1::GetLastUsedAccessPoint |
1986 // COMASUPLProtocolManager1::GetLastUsedAccessPoint |
1911 // |
1987 // |
1912 // ----------------------------------------------------------------------------- |
1988 // ----------------------------------------------------------------------------- |
1913 // |
1989 // |
1914 TInt COMASUPLProtocolManager1::GetLastUsedAccessPoint(TDes& /*aLastlyUsedAccessPoint*/,TUint32& /*iIAPId*/) |
1990 TInt COMASUPLProtocolManager1::GetLastUsedAccessPoint(TDes& aLastlyUsedAccessPoint,TUint32& iIAPId) |
1915 { |
1991 { |
1916 //return iSettingsLauncher->GetIAPName(aLastlyUsedAccessPoint,iIAPId); |
1992 return iSettingsLauncher->GetIAPName(aLastlyUsedAccessPoint,iIAPId); |
1917 return KErrNone; |
|
1918 } |
1993 } |
1919 |
1994 |
1920 // ----------------------------------------------------------------------------- |
1995 // ----------------------------------------------------------------------------- |
1921 // COMASUPLProtocolManager1::PrintHex |
1996 // COMASUPLProtocolManager1::PrintHex |
1922 // |
1997 // |
2011 iSETMode = aCommmonConfig->iSETMode; |
2086 iSETMode = aCommmonConfig->iSETMode; |
2012 iSuplUsage = aCommmonConfig->iSuplUsage; |
2087 iSuplUsage = aCommmonConfig->iSuplUsage; |
2013 iSuplInitTimeOut = aCommmonConfig->iSuplInitTimeOut; |
2088 iSuplInitTimeOut = aCommmonConfig->iSuplInitTimeOut; |
2014 iPersistFailTimer = aCommmonConfig->iPersistFailTimer; |
2089 iPersistFailTimer = aCommmonConfig->iPersistFailTimer; |
2015 } |
2090 } |
2016 |
2091 |
2017 // ----------------------------------------------------------------------------- |
2092 |
2018 // COMASUPLProtocolManager1::HandleSuplTriggerStatusChangeL |
|
2019 // pure virtual method from MSuplSettingsObserver; dummy implementation for compilation |
|
2020 // ----------------------------------------------------------------------------- |
|
2021 // |
|
2022 void COMASUPLProtocolManager1::HandleSuplTriggerStatusChangeL(CSuplSettings::TSuplTriggerStatus /*aSuplTriggerStatus*/ ) |
|
2023 { |
|
2024 |
|
2025 } |
|
2026 |
|
2027 // ----------------------------------------------------------------------------- |
2093 // ----------------------------------------------------------------------------- |
2028 // COMASUPLProtocolManager1::MakeLocationConversionRequestL |
2094 // COMASUPLProtocolManager1::MakeLocationConversionRequestL |
2029 // |
2095 // |
2030 // To make conversion request to retrieve position for a given cell id |
2096 // To make conversion request to retrieve position for a given cell id |
2031 // ----------------------------------------------------------------------------- |
2097 // ----------------------------------------------------------------------------- |
2046 |
2112 |
2047 CheckForSessionCount(); |
2113 CheckForSessionCount(); |
2048 iRunningSessionCount++; |
2114 iRunningSessionCount++; |
2049 |
2115 |
2050 COMASuplLocationId* locationId = COMASuplLocationId::NewL(); |
2116 COMASuplLocationId* locationId = COMASuplLocationId::NewL(); |
2051 CleanupStack::PushL(locationId); |
|
2052 COMASuplLocationId::TOMASuplStatus status = COMASuplLocationId::EStale; |
2117 COMASuplLocationId::TOMASuplStatus status = COMASuplLocationId::EStale; |
2053 switch(aCellInfo.iGeoCellType) |
2118 switch(aCellInfo.iGeoCellType) |
2054 { |
2119 { |
2055 case EGeoGsmCell: |
2120 case EGeoGsmCell: |
2056 { |
2121 { |
2067 cellInfo->SetSuplCellInfo(aCellInfo.iMNC,aCellInfo.iMCC,aCellInfo.iCid); |
2132 cellInfo->SetSuplCellInfo(aCellInfo.iMNC,aCellInfo.iMCC,aCellInfo.iCid); |
2068 locationId->SetSuplLocationId(cellInfo,status); |
2133 locationId->SetSuplLocationId(cellInfo,status); |
2069 } |
2134 } |
2070 break; |
2135 break; |
2071 } |
2136 } |
2072 CleanupStack::Pop(locationId); |
2137 |
2073 tempBuf.Copy(_L("MCC = ")); |
2138 tempBuf.Copy(_L("MCC = ")); |
2074 tempBuf.AppendNum(aCellInfo.iMCC); |
2139 tempBuf.AppendNum(aCellInfo.iMCC); |
2075 iTrace->Trace(tempBuf, KTraceFileName, __LINE__); |
2140 iTrace->Trace(tempBuf, KTraceFileName, __LINE__); |
2076 tempBuf.Copy(_L("MNC = ")); |
2141 tempBuf.Copy(_L("MNC = ")); |
2077 tempBuf.AppendNum(aCellInfo.iMNC); |
2142 tempBuf.AppendNum(aCellInfo.iMNC); |