telephonyserverplugins/common_tsy/commontsy/src/mmcustomtsy/CMmCustomTsy.cpp
changeset 73 70d75957b98f
parent 69 b982c3e940f3
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
   214     // before processing further the request, check if offline mode status
   214     // before processing further the request, check if offline mode status
   215     // is enabled and if the given request can be perfomed in that case.
   215     // is enabled and if the given request can be perfomed in that case.
   216     if ( ERfsStateInfoInactive == iMmPhoneTsy->GetRfStateInfo() &&
   216     if ( ERfsStateInfoInactive == iMmPhoneTsy->GetRfStateInfo() &&
   217         !IsRequestPossibleInOffline( aIpc ) )
   217         !IsRequestPossibleInOffline( aIpc ) )
   218         {
   218         {
   219 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %d", aIpc );
   219 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %{TIPCNamesList}", aIpc );
   220         ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral,
   220         ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral,
   221                 KErrGsmOfflineOpNotAllowed );
   221                 KErrGsmOfflineOpNotAllowed );
   222 
   222 
   223         // Complete the request with appropiate error
   223         // Complete the request with appropiate error
   224         ReqCompleted ( aTsyReqHandle, ret );
   224         ReqCompleted ( aTsyReqHandle, ret );
   253 TInt CMmCustomTsy::DoExtFuncL(
   253 TInt CMmCustomTsy::DoExtFuncL(
   254     const TTsyReqHandle aTsyReqHandle,
   254     const TTsyReqHandle aTsyReqHandle,
   255     const TInt aIpc,
   255     const TInt aIpc,
   256     const TDataPackage& aPackage )
   256     const TDataPackage& aPackage )
   257     {
   257     {
       
   258     OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_DOEXTFUNCL_1, "TSY: CMmCustomTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%d Object:0x%08x", aIpc, (TUint)aTsyReqHandle, (TUint)this);
   258     TInt ret( KErrNotSupported );
   259     TInt ret( KErrNotSupported );
   259 
   260 
   260     // first check if request is supported in CMmSecurityTsy
   261     // first check if request is supported in CMmSecurityTsy
   261     // (due layering that class is no longer a part of extension modules)
   262     // (due layering that class is no longer a part of extension modules)
   262 
   263 
   548                         RMmCustomAPI::TRemoteAlertingToneStatus*,
   549                         RMmCustomAPI::TRemoteAlertingToneStatus*,
   549                         aPackage.Ptr1() ) );
   550                         aPackage.Ptr1() ) );
   550                     break;
   551                     break;
   551                 default:
   552                 default:
   552                     // ret is already set as KErrNotSupported
   553                     // ret is already set as KErrNotSupported
   553 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_DOEXTFUNCL_1, "TSY: CMmCustomTsy::DoExtFuncL unsupported ipc=%d", aIpc);
   554 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_DOEXTFUNCL_2, "TSY: CMmCustomTsy::DoExtFuncL unsupported ipc=%{TIPCNamesList}", aIpc);
   554                     break;
   555                     break;
   555                 }
   556                 }
   556 
   557 
   557             // save request handle
   558             // save request handle
   558             if ( ECustomTsyReqHandleUnknown != iReqHandleType )
   559             if ( ECustomTsyReqHandleUnknown != iReqHandleType )
   569                 iReqHandleType = ECustomTsyReqHandleUnknown;
   570                 iReqHandleType = ECustomTsyReqHandleUnknown;
   570                 }
   571                 }
   571             }
   572             }
   572         }
   573         }
   573 
   574 
       
   575 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_DOEXTFUNCL_3, "<-- TSY: CMmCustomTsy::DoExtFuncL, error = %{TSymbianErrorCodes}", ret);
   574     return ret;
   576     return ret;
   575     }
   577     }
   576 
   578 
   577 // ---------------------------------------------------------------------------
   579 // ---------------------------------------------------------------------------
   578 // CMmCustomTsy::RegisterNotification
   580 // CMmCustomTsy::RegisterNotification
   804 // ---------------------------------------------------------------------------
   806 // ---------------------------------------------------------------------------
   805 //
   807 //
   806 TSecurityPolicy CMmCustomTsy::GetRequiredPlatSecCaps(
   808 TSecurityPolicy CMmCustomTsy::GetRequiredPlatSecCaps(
   807     const TInt aIpc )
   809     const TInt aIpc )
   808     {
   810     {
   809 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_1,  "TSY: CMmCustomTsy::GetRequiredPlatSecCaps ipc=%d", aIpc );
   811 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_1,  "TSY: CMmCustomTsy::GetRequiredPlatSecCaps ipc=%{TIPCNamesList}", aIpc );
   810     // assume fail as default return value
   812     // assume fail as default return value
   811     TSecurityPolicy policy( TSecurityPolicy::EAlwaysFail );
   813     TSecurityPolicy policy( TSecurityPolicy::EAlwaysFail );
   812 
   814 
   813     // deal with cancellations
   815     // deal with cancellations
   814     TInt ipc ( aIpc );
   816     TInt ipc ( aIpc );
   815     if (ipc >= KIpcCustomExt + EMobileCancelOffset)
   817     if (ipc >= KIpcCustomExt + EMobileCancelOffset)
   816         {
   818         {
   817         ipc  -= EMobileCancelOffset;
   819         ipc  -= EMobileCancelOffset;
   818 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_2, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps cancel for ipc=%d", ipc);
   820 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETREQUIREDPLATSECCAPS_2, "TSY: CMmCustomTsy::GetRequiredPlatSecCaps cancel for ipc=%{TIPCNamesList}", ipc);
   819         }
   821         }
   820 
   822 
   821     switch ( ipc )
   823     switch ( ipc )
   822         {
   824         {
   823         case ECustomNotifyRauEventIPC:
   825         case ECustomNotifyRauEventIPC:
  2335 // ---------------------------------------------------------------------------
  2337 // ---------------------------------------------------------------------------
  2336 //
  2338 //
  2337 void CMmCustomTsy::CompleteTerminateCall(
  2339 void CMmCustomTsy::CompleteTerminateCall(
  2338     TInt aError )
  2340     TInt aError )
  2339     {
  2341     {
  2340 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETETERMINATECALL_1,  "TSY: CMmCustomTsy::CompleteTerminateCall - aError: %d", aError );
  2342 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETETERMINATECALL_1,  "TSY: CMmCustomTsy::CompleteTerminateCall - aError: %{TSymbianErrorCodes}", aError );
  2341 
  2343 
  2342     // reset req handle. Returns the deleted req handle
  2344     // reset req handle. Returns the deleted req handle
  2343     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  2345     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  2344         ECustomTsyTerminateCall );
  2346         ECustomTsyTerminateCall );
  2345 
  2347 
  2479                 default:
  2481                 default:
  2480                     errorValue = KErrNone;
  2482                     errorValue = KErrNone;
  2481                     break;
  2483                     break;
  2482                 }
  2484                 }
  2483             }
  2485             }
  2484 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_2,  "TSY: CMmCustomTsy::GetDiagnosticInfo - ReqCompleted - Error code: %d", errorValue );
  2486 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_2,  "TSY: CMmCustomTsy::GetDiagnosticInfo - ReqCompleted - Error code: %{TSymbianErrorCodes}", errorValue );
  2485         // complete errorvalue to client  - inform change  
  2487         // complete errorvalue to client  - inform change  
  2486         ReqCompleted( aTsyReqHandle, errorValue ); 
  2488         ReqCompleted( aTsyReqHandle, errorValue ); 
  2487         }
  2489         }
  2488     else
  2490     else
  2489         {
  2491         {
  2490          // call is not found
  2492          // call is not found
  2491 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_3, "TSY: CMmCustomTsy::GetDiagnosticInfo - Call is not found");
  2493 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_3, "TSY: CMmCustomTsy::GetDiagnosticInfo - Call is not found");
  2492         ReqCompleted( aTsyReqHandle, KErrNotFound );
  2494         ReqCompleted( aTsyReqHandle, KErrNotFound );
  2493         }
  2495         }
  2494 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_4,  "TSY: CMmCustomTsy::GetDiagnosticInfo - Error code: %d", errorValue );
  2496 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_GETDIAGNOSTICINFO_4,  "TSY: CMmCustomTsy::GetDiagnosticInfo - Error code: %{TSymbianErrorCodes}", errorValue );
  2495    
  2497    
  2496     return KErrNone;
  2498     return KErrNone;
  2497     }
  2499     }
  2498 
  2500 
  2499 // ---------------------------------------------------------------------------
  2501 // ---------------------------------------------------------------------------
  2629 //
  2631 //
  2630 void CMmCustomTsy::CompleteGetAlsBlocked(
  2632 void CMmCustomTsy::CompleteGetAlsBlocked(
  2631     RMmCustomAPI::TGetAlsBlockStatus  aBlockStatus,
  2633     RMmCustomAPI::TGetAlsBlockStatus  aBlockStatus,
  2632     TInt aErrorCode )
  2634     TInt aErrorCode )
  2633     {
  2635     {
  2634 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSBLOCKED_1,  "TSY: CMmCustomTsy::CompleteGetAlsBlocked - Block status: %d, Error code: %d", aBlockStatus, aErrorCode );
  2636 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSBLOCKED_1,  "TSY: CMmCustomTsy::CompleteGetAlsBlocked - Block status: %d, Error code: %{TSymbianErrorCodes}", aBlockStatus, aErrorCode );
  2635     //reset req handle. Returns the deleted req handle
  2637     //reset req handle. Returns the deleted req handle
  2636     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  2638     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  2637         ECustomTsyGetAlsBlocked );
  2639         ECustomTsyGetAlsBlocked );
  2638 
  2640 
  2639     // check if request was called
  2641     // check if request was called
  2781 // ---------------------------------------------------------------------------
  2783 // ---------------------------------------------------------------------------
  2782 //
  2784 //
  2783 void CMmCustomTsy::CompleteSetAlsBlocked(
  2785 void CMmCustomTsy::CompleteSetAlsBlocked(
  2784     TInt aErrorCode )
  2786     TInt aErrorCode )
  2785     {
  2787     {
  2786 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETALSBLOCKED_1,  "TSY: CMmCustomTsy::CompleteSetAlsBlocked - Error code: %d", aErrorCode );
  2788 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETALSBLOCKED_1,  "TSY: CMmCustomTsy::CompleteSetAlsBlocked - Error code: %{TSymbianErrorCodes}", aErrorCode );
  2787     // get reaq handle for NotifyAlsBlockedChanged
  2789     // get reaq handle for NotifyAlsBlockedChanged
  2788     TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(
  2790     TTsyReqHandle reqHandle = iTsyReqHandleStore->GetTsyReqHandle(
  2789         ECustomTsyNotifyAlsBlockedChanged );
  2791         ECustomTsyNotifyAlsBlockedChanged );
  2790 
  2792 
  2791     // check if notification was requested and Set was ok
  2793     // check if notification was requested and Set was ok
  2985 //
  2987 //
  2986 void CMmCustomTsy::CompleteGetAlsPpSupport(
  2988 void CMmCustomTsy::CompleteGetAlsPpSupport(
  2987     RMmCustomAPI::TAlsSupport aAlsSupport,
  2989     RMmCustomAPI::TAlsSupport aAlsSupport,
  2988     TInt aErrorCode )
  2990     TInt aErrorCode )
  2989     {
  2991     {
  2990 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSPPSUPPORT_1,  "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS support: %d, Error: %d", aAlsSupport, aErrorCode );
  2992 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETALSPPSUPPORT_1,  "TSY: CMmCustomTsy::CompleteGetAlsPpSupport - ALS support: %d, Error: %{TSymbianErrorCodes}", aAlsSupport, aErrorCode );
  2991     TBool status = EFalse;
  2993     TBool status = EFalse;
  2992     
  2994     
  2993     // Check if the get was called internally during boot
  2995     // Check if the get was called internally during boot
  2994     if( iMmPhoneTsy->GetAlsQueryInBoot() )
  2996     if( iMmPhoneTsy->GetAlsQueryInBoot() )
  2995         {
  2997         {
  3521 void CMmCustomTsy::Complete(
  3523 void CMmCustomTsy::Complete(
  3522     TInt aReqHandleType,
  3524     TInt aReqHandleType,
  3523     TInt aError,
  3525     TInt aError,
  3524     TInt aIPC )
  3526     TInt aIPC )
  3525     {
  3527     {
  3526 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETE_1,  "TSY: CMmCustomTsy::Complete - ReqHandleType: %d Error: %d", aReqHandleType, aError );
  3528 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETE_1,  "TSY: CMmCustomTsy::Complete - ReqHandleType: %d Error: %{TSymbianErrorCodes}", aReqHandleType, aError );
  3527     TBool subTsyReqFound = EFalse;
  3529     TBool subTsyReqFound = EFalse;
  3528     TInt max = GetMaxNumberOfSubsystems();
  3530     TInt max = GetMaxNumberOfSubsystems();
  3529     CMmSubTsyBase** subTsyPtr = GetSubsystemArrayPtr();
  3531     CMmSubTsyBase** subTsyPtr = GetSubsystemArrayPtr();
  3530 
  3532 
  3531     // Check Custom TSY's subsystems' req handles first
  3533     // Check Custom TSY's subsystems' req handles first
  4677 // ---------------------------------------------------------------------------
  4679 // ---------------------------------------------------------------------------
  4678 //
  4680 //
  4679 void CMmCustomTsy::CompleteResetNetServer(
  4681 void CMmCustomTsy::CompleteResetNetServer(
  4680     TInt aErrorValue )
  4682     TInt aErrorValue )
  4681     {
  4683     {
  4682 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETERESETNETSERVER_1, "TSY: CMmCustomTsy::CompleteResetNetServer - Error: %d", aErrorValue );
  4684 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETERESETNETSERVER_1, "TSY: CMmCustomTsy::CompleteResetNetServer - Error: %{TSymbianErrorCodes}", aErrorValue );
  4683     // reset the reqhandle
  4685     // reset the reqhandle
  4684     TTsyReqHandle tsyReqHandle =
  4686     TTsyReqHandle tsyReqHandle =
  4685         iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsyResetNetServer );
  4687         iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsyResetNetServer );
  4686 
  4688 
  4687     // Check the reqHandle
  4689     // Check the reqHandle
  4693             {
  4695             {
  4694             // Convert the error value from KErrCancel to KErrNotReady
  4696             // Convert the error value from KErrCancel to KErrNotReady
  4695             aErrorValue = KErrNotReady; 
  4697             aErrorValue = KErrNotReady; 
  4696             }
  4698             }
  4697             
  4699             
  4698 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETERESETNETSERVER_2, "TSY: CMmCustomTsy::CompleteResetNetServer - complete with error value: %d", aErrorValue );
  4700 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETERESETNETSERVER_2, "TSY: CMmCustomTsy::CompleteResetNetServer - complete with error value: %{TSymbianErrorCodes}", aErrorValue );
  4699         ReqCompleted( tsyReqHandle, aErrorValue );
  4701         ReqCompleted( tsyReqHandle, aErrorValue );
  4700         }
  4702         }
  4701     }
  4703     }
  4702 
  4704 
  4703 // ---------------------------------------------------------------------------
  4705 // ---------------------------------------------------------------------------
  5424 // ---------------------------------------------------------------------------
  5426 // ---------------------------------------------------------------------------
  5425 //
  5427 //
  5426 void CMmCustomTsy::CompleteSetDriveMode(
  5428 void CMmCustomTsy::CompleteSetDriveMode(
  5427     TInt aErrorCode )
  5429     TInt aErrorCode )
  5428     {
  5430     {
  5429 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETDRIVEMODE_1,  "TSY: CMmCustomTsy::CompleteSetDriveMode - Error code: %d", aErrorCode );
  5431 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETESETDRIVEMODE_1,  "TSY: CMmCustomTsy::CompleteSetDriveMode - Error code: %{TSymbianErrorCodes}", aErrorCode );
  5430 	if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KDriveModeCanRestrictMtCalls) == KFeatureSupported) )
  5432 	if ( (iUsingFeatureManager) && (iFeatureControl.FeatureSupported(NFeature::KDriveModeCanRestrictMtCalls) == KFeatureSupported) )
  5431         {
  5433         {
  5432         //Reset req handle, returns the deleted req handle
  5434         //Reset req handle, returns the deleted req handle
  5433         TTsyReqHandle reqHandle =
  5435         TTsyReqHandle reqHandle =
  5434             iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsySetDriveMode );
  5436             iTsyReqHandleStore->ResetTsyReqHandle( ECustomTsySetDriveMode );
  5920 //
  5922 //
  5921 void CMmCustomTsy::CompleteNotifyHSxPAStatus(
  5923 void CMmCustomTsy::CompleteNotifyHSxPAStatus(
  5922     CMmDataPackage* aDataPackage,
  5924     CMmDataPackage* aDataPackage,
  5923     TInt aErrorCode )
  5925     TInt aErrorCode )
  5924     {
  5926     {
  5925 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_1, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, Error: %d", aErrorCode);
  5927 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_1, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, Error: %{TSymbianErrorCodes}", aErrorCode);
  5926 
  5928 
  5927     RMmCustomAPI::THSxPAStatus status;
  5929     RMmCustomAPI::THSxPAStatus status;
  5928     aDataPackage->UnPackData( status );
  5930     aDataPackage->UnPackData( status );
  5929 
  5931 
  5930 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_2, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, old status: %d", iHSxPAStatus);
  5932 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYHSXPASTATUS_2, "TSY: CMmCustomTsy::CompleteNotifyHSxPAStatus, old status: %d", iHSxPAStatus);
  6042 //
  6044 //
  6043 void CMmCustomTsy::CompleteGetIccCallForwardingStatus(
  6045 void CMmCustomTsy::CompleteGetIccCallForwardingStatus(
  6044     CMmDataPackage* aDataPackage,
  6046     CMmDataPackage* aDataPackage,
  6045     TInt aErrorCode )
  6047     TInt aErrorCode )
  6046     {
  6048     {
  6047 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_1, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus, aErrorCode=%d", aErrorCode );
  6049 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETICCCALLFORWARDINGSTATUS_1, "TSY: CMmCustomTsy::CompleteGetIccCallForwardingStatus, aErrorCode=%{TSymbianErrorCodes}", aErrorCode );
  6048 
  6050 
  6049     //reset req handle.
  6051     //reset req handle.
  6050     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  6052     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  6051         ECustomTsyGetIccCallForwardingStatus );
  6053         ECustomTsyGetIccCallForwardingStatus );
  6052 
  6054 
  6183 //
  6185 //
  6184 void CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange(
  6186 void CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange(
  6185     CMmDataPackage* aDataPackage,
  6187     CMmDataPackage* aDataPackage,
  6186     TInt aErrorCode )
  6188     TInt aErrorCode )
  6187     {
  6189     {
  6188 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYICCCALLFORWARDINGSTATUSCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange, Error: %d", aErrorCode);
  6190 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYICCCALLFORWARDINGSTATUSCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyIccCallForwardingStatusChange, Error: %{TSymbianErrorCodes}", aErrorCode);
  6189 
  6191 
  6190     RMmCustomAPI::TCFIndicators tempNotifyCFIndicator;
  6192     RMmCustomAPI::TCFIndicators tempNotifyCFIndicator;
  6191     aDataPackage->UnPackData( tempNotifyCFIndicator );
  6193     aDataPackage->UnPackData( tempNotifyCFIndicator );
  6192 
  6194 
  6193     TBool isChanged = IsIccCallForwardingStatusChanged(
  6195     TBool isChanged = IsIccCallForwardingStatusChanged(
  6381 //
  6383 //
  6382 void CMmCustomTsy::CompleteGetCellInfo(
  6384 void CMmCustomTsy::CompleteGetCellInfo(
  6383     RMmCustomAPI::TMmCellInfo* aCellInfo,
  6385     RMmCustomAPI::TMmCellInfo* aCellInfo,
  6384     TInt aErrorValue )
  6386     TInt aErrorValue )
  6385     {
  6387     {
  6386 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETCELLINFO_1, "TSY: CMmCustomTsy::CompleteGetCellInfo - aErrorValue %d", aErrorValue);
  6388 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETEGETCELLINFO_1, "TSY: CMmCustomTsy::CompleteGetCellInfo - aErrorValue %{TSymbianErrorCodes}", aErrorValue);
  6387 
  6389 
  6388     // reset the req handle
  6390     // reset the req handle
  6389     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  6391     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  6390         ECustomTsyGetCellInfo );
  6392         ECustomTsyGetCellInfo );
  6391 
  6393 
  6442 //
  6444 //
  6443 void CMmCustomTsy::CompleteNotifyCellInfoChange(
  6445 void CMmCustomTsy::CompleteNotifyCellInfoChange(
  6444     RMmCustomAPI::TMmCellInfo* aCellInfo,
  6446     RMmCustomAPI::TMmCellInfo* aCellInfo,
  6445     TInt aErrorCode )
  6447     TInt aErrorCode )
  6446     {
  6448     {
  6447 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYCELLINFOCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyCellInfoChange Error: %d", aErrorCode);
  6449 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_COMPLETENOTIFYCELLINFOCHANGE_1, "TSY: CMmCustomTsy::CompleteNotifyCellInfoChange Error: %{TSymbianErrorCodes}", aErrorCode);
  6448 
  6450 
  6449     // Check if notification was requested
  6451     // Check if notification was requested
  6450 	TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  6452 	TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
  6451         ECustomTsyNotifyCellInfoChange );
  6453         ECustomTsyNotifyCellInfoChange );
  6452 
  6454 
  6530 // ---------------------------------------------------------------------------
  6532 // ---------------------------------------------------------------------------
  6531 //
  6533 //
  6532 void CMmCustomTsy::ReqCompleted( const TTsyReqHandle aTsyReqHandle,
  6534 void CMmCustomTsy::ReqCompleted( const TTsyReqHandle aTsyReqHandle,
  6533     const TInt aError )
  6535     const TInt aError )
  6534     {
  6536     {
  6535 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_REQCOMPLETED_1, "TSY: CMmCustomTsy::ReqCompleted, aTsyReqHandle=%d, aError=%d", aTsyReqHandle, aError );
  6537 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_REQCOMPLETED_1, "TSY: CMmCustomTsy::ReqCompleted. Handle:%d Error:%{TSymbianErrorCodes} Object:0x%08x", (TUint)aTsyReqHandle, aError, (TUint)this);
  6536 
  6538 
  6537 	CTelObject::ReqCompleted ( aTsyReqHandle, aError );
  6539 	CTelObject::ReqCompleted ( aTsyReqHandle, aError );
       
  6540 
       
  6541 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMCUSTOMTSY_REQCOMPLETED_2, "<-- TSY: CMmCustomTsy::ReqCompleted");
  6538 	}
  6542 	}
  6539 
  6543 
  6540 // ---------------------------------------------------------------------------
  6544 // ---------------------------------------------------------------------------
  6541 // CMmCustomTsy::GetSystemNetworkBandL
  6545 // CMmCustomTsy::GetSystemNetworkBandL
  6542 // This method gets the supported network band.
  6546 // This method gets the supported network band.