telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmsupplservtsy.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
   130 TInt CMmSupplServTsy::DoExtFuncL( 
   130 TInt CMmSupplServTsy::DoExtFuncL( 
   131   	const TTsyReqHandle aTsyReqHandle, 
   131   	const TTsyReqHandle aTsyReqHandle, 
   132     const TInt aIpc, 
   132     const TInt aIpc, 
   133     const TDataPackage& aPackage ) 
   133     const TDataPackage& aPackage ) 
   134     {
   134     {
       
   135 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_DOEXTFUNCL_1, "TSY: CMmSupplServTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%u Object:0x%08x", (TUint)aIpc, (TUint)aTsyReqHandle, (TUint)this);
   135     TInt ret = KErrNone;
   136     TInt ret = KErrNone;
   136     TAny* dataPtr = aPackage.Ptr1();
   137     TAny* dataPtr = aPackage.Ptr1();
   137     TAny* dataPtr2 = aPackage.Ptr2();
   138     TAny* dataPtr2 = aPackage.Ptr2();
   138 
   139 
   139     switch ( aIpc )
   140     switch ( aIpc )
   326             // this method should only be called for SS cases
   327             // this method should only be called for SS cases
   327             ret = KErrArgument;
   328             ret = KErrArgument;
   328             break;
   329             break;
   329         }
   330         }
   330 
   331 
       
   332 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_DOEXTFUNCL_2, "TSY: CMmSupplServTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret);
   331     return ret;
   333     return ret;
   332     }
   334     }
   333 
   335 
   334 // ---------------------------------------------------------------------------
   336 // ---------------------------------------------------------------------------
   335 // CMmSupplServTsy::CancelService
   337 // CMmSupplServTsy::CancelService
  2010 				    {	      
  2012 				    {	      
  2011 				    // read the values from the central repository          
  2013 				    // read the values from the central repository          
  2012 			        ret = ReadIccMessageWaitingIndicatorsFromCentRep( 
  2014 			        ret = ReadIccMessageWaitingIndicatorsFromCentRep( 
  2013 			            iMessageWaiting );
  2015 			            iMessageWaiting );
  2014 			        
  2016 			        
  2015 			OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSL_3, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL, Error during the reading from CentRep:%d", ret);
  2017 			OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_GETICCMESSAGEWAITINGINDICATORSL_3, "TSY: CMmSupplServTsy::GetIccMessageWaitingIndicatorsL, Error during the reading from CentRep:%{TSymbianErrorCodes}", ret);
  2016 				
  2018 				
  2017 				   	if ( KErrNone == ret )
  2019 				   	if ( KErrNone == ret )
  2018 				   		{
  2020 				   		{
  2019 				   		// copy default values to the client side 
  2021 				   		// copy default values to the client side 
  2020 						*aMessageWaiting = iMessageWaiting; 
  2022 						*aMessageWaiting = iMessageWaiting; 
  2055 //
  2057 //
  2056 void CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators( 
  2058 void CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators( 
  2057     RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting, 
  2059     RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting, 
  2058     TInt aErrorCode )
  2060     TInt aErrorCode )
  2059     {
  2061     {
  2060 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_1, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, bootup=%d, Error: %d", iGetIccSupportAtBoot, aErrorCode );
  2062 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_1, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, bootup=%d, Error: %{TSymbianErrorCodes}", iGetIccSupportAtBoot, aErrorCode );
  2061              
  2063              
  2062     // reset req handle. Returns the deleted req handle
  2064     // reset req handle. Returns the deleted req handle
  2063     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle(
  2065     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle(
  2064         CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators );
  2066         CMmPhoneTsy::EMultimodePhoneGetIccMessageWaitingIndicators );
  2065         
  2067         
  2124             SetIccSupportForMWIS( ETrue );
  2126             SetIccSupportForMWIS( ETrue );
  2125             // update only display status information
  2127             // update only display status information
  2126             iMessageWaiting.iDisplayStatus = aMessageWaiting->iDisplayStatus;
  2128             iMessageWaiting.iDisplayStatus = aMessageWaiting->iDisplayStatus;
  2127             aErrorCode = iMwisCentRep->Set( KCtsyMessageWaitingDisplayStatus, 
  2129             aErrorCode = iMwisCentRep->Set( KCtsyMessageWaitingDisplayStatus, 
  2128                 aMessageWaiting->iDisplayStatus );
  2130                 aMessageWaiting->iDisplayStatus );
  2129 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_4, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, CPHS bootup, status=%d, error=%d ", aMessageWaiting->iDisplayStatus, aErrorCode );
  2131 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETEGETICCMESSAGEWAITINGINDICATORS_4, "TSY: CMmSupplServTsy::CompleteGetIccMessageWaitingIndicators, CPHS bootup, status=%d, error=%{TSymbianErrorCodes} ", aMessageWaiting->iDisplayStatus, aErrorCode );
  2130             }
  2132             }
  2131         else
  2133         else
  2132             {
  2134             {
  2133             SetIccSupportForMWIS( EFalse );
  2135             SetIccSupportForMWIS( EFalse );
  2134             }
  2136             }
  2258 // ---------------------------------------------------------------------------
  2260 // ---------------------------------------------------------------------------
  2259 //
  2261 //
  2260 void CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators( 
  2262 void CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators( 
  2261     TInt aErrorCode )
  2263     TInt aErrorCode )
  2262     {
  2264     {
  2263 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESETICCMESSAGEWAITINGINDICATORS_1, "TSY: CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators, Error: %d", aErrorCode );
  2265 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESETICCMESSAGEWAITINGINDICATORS_1, "TSY: CMmSupplServTsy::CompleteSetIccMessageWaitingIndicators, Error: %{TSymbianErrorCodes}", aErrorCode );
  2264    
  2266    
  2265     // reset req handle. Returns the deleted req handle
  2267     // reset req handle. Returns the deleted req handle
  2266     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle(
  2268     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle(
  2267         CMmPhoneTsy::EMultimodePhoneSetIccMessageWaitingIndicators );
  2269         CMmPhoneTsy::EMultimodePhoneSetIccMessageWaitingIndicators );
  2268         
  2270         
  2377 //
  2379 //
  2378 void CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange(
  2380 void CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange(
  2379     RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting,
  2381     RMobilePhone::TMobilePhoneMessageWaitingV1* aMessageWaiting,
  2380     TInt& aErrorCode )
  2382     TInt& aErrorCode )
  2381     {
  2383     {
  2382 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYICCMESSAGEWAITINGINDICATORCHANGE_1, "TSY: CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange, error:%d", aErrorCode );
  2384 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYICCMESSAGEWAITINGINDICATORCHANGE_1, "TSY: CMmSupplServTsy::CompleteNotifyIccMessageWaitingIndicatorChange, error:%{TSymbianErrorCodes}", aErrorCode );
  2383     
  2385     
  2384     if ( IsMwisInfoChanged( *aMessageWaiting ) )
  2386     if ( IsMwisInfoChanged( *aMessageWaiting ) )
  2385         {
  2387         {
  2386         if ( KErrNone == aErrorCode )
  2388         if ( KErrNone == aErrorCode )
  2387             {
  2389             {
  2648 // ---------------------------------------------------------------------------
  2650 // ---------------------------------------------------------------------------
  2649 //
  2651 //
  2650 void CMmSupplServTsy::CompleteSendNetworkServiceRequestInd(
  2652 void CMmSupplServTsy::CompleteSendNetworkServiceRequestInd(
  2651     TInt aErrorCode, CMmDataPackage* aDataPackage  )
  2653     TInt aErrorCode, CMmDataPackage* aDataPackage  )
  2652     {
  2654     {
  2653 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESENDNETWORKSERVICEREQUESTIND_1, "TSY: CMmSupplServTsy::CompleteSendNetworkServiceRequestInd. Error: %d", aErrorCode );
  2655 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETESENDNETWORKSERVICEREQUESTIND_1, "TSY: CMmSupplServTsy::CompleteSendNetworkServiceRequestInd. Error: %{TSymbianErrorCodes}", aErrorCode );
  2654   
  2656   
  2655     // Reset req handle. Returns the deleted req handle
  2657     // Reset req handle. Returns the deleted req handle
  2656     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( 
  2658     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( 
  2657 		CMmPhoneTsy::EMultimodePhoneNotifySendNetworkServiceRequest );
  2659 		CMmPhoneTsy::EMultimodePhoneNotifySendNetworkServiceRequest );
  2658 
  2660 
  2753 // ---------------------------------------------------------------------------
  2755 // ---------------------------------------------------------------------------
  2754 //
  2756 //
  2755 void CMmSupplServTsy::CompleteNotifyAllSendNetworkServiceRequest(
  2757 void CMmSupplServTsy::CompleteNotifyAllSendNetworkServiceRequest(
  2756     TInt aErrorCode, CMmDataPackage* aDataPackage  )
  2758     TInt aErrorCode, CMmDataPackage* aDataPackage  )
  2757     {
  2759     {
  2758 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYALLSENDNETWORKSERVICEREQUEST_1, "TSY: CMmSupplServTsy::CompleteNotifyAllSendNetworkRequest. Error: %d", aErrorCode );
  2760 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMSUPPLSERVTSY_COMPLETENOTIFYALLSENDNETWORKSERVICEREQUEST_1, "TSY: CMmSupplServTsy::CompleteNotifyAllSendNetworkRequest. Error: %{TSymbianErrorCodes}", aErrorCode );
  2759    
  2761    
  2760     // Reset req handle. Returns the deleted req handle
  2762     // Reset req handle. Returns the deleted req handle
  2761     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( 
  2763     TTsyReqHandle reqHandle = iMmPhone->iTsyReqHandleStore->ResetTsyReqHandle( 
  2762 		CMmPhoneTsy::EMultimodePhoneNotifyAllSendNetworkServiceRequest );
  2764 		CMmPhoneTsy::EMultimodePhoneNotifyAllSendNetworkServiceRequest );
  2763 
  2765