telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmphonetsy.cpp
branchRCL_3
changeset 15 8b9e023e329f
parent 7 fe8b59ab9fa0
child 18 17af172ffa5f
equal deleted inserted replaced
13:b836c4d4fce7 15:8b9e023e329f
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
  1229         case EMobilePhoneGetCipheringIndicatorStatus:
  1229         case EMobilePhoneGetCipheringIndicatorStatus:
  1230         case EMobilePhoneAuthorizationInfoPhase1:
  1230         case EMobilePhoneAuthorizationInfoPhase1:
  1231         case EMobilePhoneAuthorizationInfoPhase2:
  1231         case EMobilePhoneAuthorizationInfoPhase2:
  1232         case EMobilePhoneGetCellInfo:
  1232         case EMobilePhoneGetCellInfo:
  1233         case EMobilePhoneNotifyCellInfoChange:
  1233         case EMobilePhoneNotifyCellInfoChange:
  1234         case EMobilePhoneGetCurrentActiveUSimApplication:                
  1234         case EMobilePhoneGetCurrentActiveUSimApplication:
       
  1235         case EMobilePhoneGetPreferredNetworksPhase1:
       
  1236         case EMobilePhoneGetPreferredNetworksPhase2:
       
  1237         case EMobilePhoneStorePreferredNetworksList:
       
  1238         case EMobilePhoneNotifyStorePreferredNetworksListChange:
  1235             //direct this request to the net specific DoExtFuncL
  1239             //direct this request to the net specific DoExtFuncL
  1236             ret = iMmNetTsy->DoExtFuncL ( aTsyReqHandle, aIpc, aPackage );
  1240             ret = iMmNetTsy->DoExtFuncL ( aTsyReqHandle, aIpc, aPackage );
  1237             break;
  1241             break;
  1238         // Security and Phone Locks
  1242         // Security and Phone Locks
  1239         case EMobilePhoneGetSecurityCaps:
  1243         case EMobilePhoneGetSecurityCaps:
  1630         case EMobilePhoneGetAPNControlListServiceStatus:
  1634         case EMobilePhoneGetAPNControlListServiceStatus:
  1631         case EMobilePhoneSetAPNControlListServiceStatus:
  1635         case EMobilePhoneSetAPNControlListServiceStatus:
  1632         case EMobilePhoneDeleteAPNName:
  1636         case EMobilePhoneDeleteAPNName:
  1633         case EMobilePhoneAppendAPNName:
  1637         case EMobilePhoneAppendAPNName:
  1634         case EMobilePhoneGetSecurityCodeInfo:
  1638         case EMobilePhoneGetSecurityCodeInfo:
       
  1639 		case EMobilePhoneGetPreferredNetworksPhase1:
       
  1640 		case EMobilePhoneGetPreferredNetworksPhase2:		
       
  1641 		case EMobilePhoneStorePreferredNetworksList:
  1635 
  1642 
  1636         //SS related methods.
  1643         //SS related methods.
  1637         case EMobilePhoneGetCallForwardingStatusPhase1:
  1644         case EMobilePhoneGetCallForwardingStatusPhase1:
  1638         case EMobilePhoneGetBarringStatusPhase1:
  1645         case EMobilePhoneGetBarringStatusPhase1:
  1639         case EMobilePhoneGetWaitingStatusPhase1:
  1646         case EMobilePhoneGetWaitingStatusPhase1:
  1753         case EMobilePhoneNotifyAPNListChanged:
  1760         case EMobilePhoneNotifyAPNListChanged:
  1754         case EMobilePhoneNotifyAPNControlListServiceStatusChange:
  1761         case EMobilePhoneNotifyAPNControlListServiceStatusChange:
  1755         case EMobilePhoneNotifySendNetworkServiceRequest:
  1762         case EMobilePhoneNotifySendNetworkServiceRequest:
  1756         case EMobilePhoneNotifyAllSendNetworkServiceRequest: 
  1763         case EMobilePhoneNotifyAllSendNetworkServiceRequest: 
  1757         case EMobilePhoneNotifyCellInfoChange:
  1764         case EMobilePhoneNotifyCellInfoChange:
       
  1765 		case EMobilePhoneNotifyStorePreferredNetworksListChange:
  1758             ret=KReqModeMultipleCompletionEnabled | KReqModeRePostImmediately;
  1766             ret=KReqModeMultipleCompletionEnabled | KReqModeRePostImmediately;
  1759             break;
  1767             break;
  1760         // Cancel Requests
  1768         // Cancel Requests
  1761         //It is not necessary to include the Cancel methods in ReqModeL at all
  1769         //It is not necessary to include the Cancel methods in ReqModeL at all
  1762         //The ETel server never calls ReqModeL with a Cancel IPC.
  1770         //The ETel server never calls ReqModeL with a Cancel IPC.
  1903             numberOfSlots = KMmPhoneAPNControlListServiceStatusChangeSlots;
  1911             numberOfSlots = KMmPhoneAPNControlListServiceStatusChangeSlots;
  1904             break;
  1912             break;
  1905         case EMobilePhoneNotifyCellInfoChange:
  1913         case EMobilePhoneNotifyCellInfoChange:
  1906         	numberOfSlots = KMmPhoneCellInfoChangeSlots;
  1914         	numberOfSlots = KMmPhoneCellInfoChangeSlots;
  1907         	break;
  1915         	break;
       
  1916 		case EMobilePhoneNotifyStorePreferredNetworksListChange:
       
  1917 			numberOfSlots = KMmPhoneStorePreferredNetworksListChangeSlots;
       
  1918             break;
  1908         default:
  1919         default:
  1909             // Unknown or invalid Phone IPC
  1920             // Unknown or invalid Phone IPC
  1910             User::Leave( KErrNotSupported );
  1921             User::Leave( KErrNotSupported );
  1911             break;
  1922             break;
  1912         }
  1923         }
  1961         case EMobilePhoneAuthorizationInfoPhase2:
  1972         case EMobilePhoneAuthorizationInfoPhase2:
  1962         case EMobilePhoneNotifyNetworkSecurityLevelChange:
  1973         case EMobilePhoneNotifyNetworkSecurityLevelChange:
  1963         case EMobilePhoneGetCellInfo:
  1974         case EMobilePhoneGetCellInfo:
  1964         case EMobilePhoneNotifyCellInfoChange:
  1975         case EMobilePhoneNotifyCellInfoChange:
  1965         case EMobilePhoneGetCurrentActiveUSimApplication:        
  1976         case EMobilePhoneGetCurrentActiveUSimApplication:        
       
  1977         case EMobilePhoneGetPreferredNetworksPhase1:
       
  1978         case EMobilePhoneStorePreferredNetworksList:
       
  1979         case EMobilePhoneNotifyStorePreferredNetworksListChange:
  1966         	ret = iMmNetTsy->CancelService( aIpc, aTsyReqHandle );
  1980         	ret = iMmNetTsy->CancelService( aIpc, aTsyReqHandle );
  1967             break;
  1981             break;
  1968 		// forward SS cancellations
  1982 		// forward SS cancellations
  1969         case EMobilePhoneNotifyCallForwardingStatusChange:
  1983         case EMobilePhoneNotifyCallForwardingStatusChange:
  1970         case EMobilePhoneNotifyCallForwardingActive:
  1984         case EMobilePhoneNotifyCallForwardingActive:
  2556         case EMobilePhoneNotifyAPNListChanged:
  2570         case EMobilePhoneNotifyAPNListChanged:
  2557         case EMobilePhoneNotifyAPNControlListServiceStatusChange:
  2571         case EMobilePhoneNotifyAPNControlListServiceStatusChange:
  2558         case EMobilePhoneNotifySendNetworkServiceRequest:
  2572         case EMobilePhoneNotifySendNetworkServiceRequest:
  2559         case EMobilePhoneNotifyAllSendNetworkServiceRequest:
  2573         case EMobilePhoneNotifyAllSendNetworkServiceRequest:
  2560         case EMobilePhoneNotifyCellInfoChange:
  2574         case EMobilePhoneNotifyCellInfoChange:
       
  2575         case EMobilePhoneNotifyStorePreferredNetworksListChange:
  2561             ret = KErrNone;
  2576             ret = KErrNone;
  2562             break;
  2577             break;
  2563         default:
  2578         default:
  2564             // Not supported
  2579             // Not supported
  2565             ret = KErrNotSupported;
  2580             ret = KErrNotSupported;
  2621         case EMobilePhoneNotifyAPNListChanged:
  2636         case EMobilePhoneNotifyAPNListChanged:
  2622         case EMobilePhoneNotifyAPNControlListServiceStatusChange:
  2637         case EMobilePhoneNotifyAPNControlListServiceStatusChange:
  2623         case EMobilePhoneNotifySendNetworkServiceRequest:
  2638         case EMobilePhoneNotifySendNetworkServiceRequest:
  2624         case EMobilePhoneNotifyAllSendNetworkServiceRequest:
  2639         case EMobilePhoneNotifyAllSendNetworkServiceRequest:
  2625         case EMobilePhoneNotifyCellInfoChange:
  2640         case EMobilePhoneNotifyCellInfoChange:
       
  2641 		case EMobilePhoneNotifyStorePreferredNetworksListChange:
  2626             ret = KErrNone;
  2642             ret = KErrNone;
  2627             break;
  2643             break;
  2628         default:
  2644         default:
  2629             // Not supported
  2645             // Not supported
  2630             ret = KErrNotSupported;
  2646             ret = KErrNotSupported;