telephonyserverplugins/common_tsy/commontsy/src/mmsms/cmmussdtsy.cpp
changeset 73 70d75957b98f
parent 69 b982c3e940f3
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
   130     // before processing further the request, check if offline mode status
   130     // before processing further the request, check if offline mode status
   131     // is enabled and if the given request can be perfomed in that case.
   131     // is enabled and if the given request can be perfomed in that case.
   132     if ( ERfsStateInfoInactive == iMmPhone->GetRfStateInfo() && 
   132     if ( ERfsStateInfoInactive == iMmPhone->GetRfStateInfo() && 
   133         ( !IsRequestPossibleInOffline( aIpc ) ) )  
   133         ( !IsRequestPossibleInOffline( aIpc ) ) )  
   134         {
   134         {
   135 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %d", aIpc );
   135 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_EXTFUNC_1, "TSY: Offline mode ON, request is not allowed: %{TIPCNamesList}", aIpc );
   136         ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, 
   136         ret = CMmCommonStaticUtility::EpocErrorCode( KErrGeneral, 
   137             KErrGsmOfflineOpNotAllowed );
   137             KErrGsmOfflineOpNotAllowed );
   138 
   138 
   139         // Complete the request with appropiate error
   139         // Complete the request with appropiate error
   140         ReqCompleted ( aTsyReqHandle, ret ); 
   140         ReqCompleted ( aTsyReqHandle, ret ); 
   171 TInt CMmUssdTsy::DoExtFuncL( 
   171 TInt CMmUssdTsy::DoExtFuncL( 
   172     const TTsyReqHandle aTsyReqHandle, 
   172     const TTsyReqHandle aTsyReqHandle, 
   173     const TInt aIpc, 
   173     const TInt aIpc, 
   174     const TDataPackage& aPackage )
   174     const TDataPackage& aPackage )
   175     {
   175     {
       
   176     OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_DOEXTFUNCL_1, "TSY: CMmUssdTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%d Object:0x%08x", (TInt)aIpc, (TUint)aTsyReqHandle, (TUint)this);
   176     TInt ret(KErrNone);
   177     TInt ret(KErrNone);
   177 
   178 
   178     switch ( aIpc ) 
   179     switch ( aIpc ) 
   179         {
   180         {
   180         // Ussd Messaging requests
   181         // Ussd Messaging requests
   221         default:
   222         default:
   222             ret = KErrNotSupported;
   223             ret = KErrNotSupported;
   223             break;
   224             break;
   224         }
   225         }
   225 
   226 
       
   227 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_DOEXTFUNCL_2, "TSY: CMmUssdTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret);
   226     return ret;
   228     return ret;
   227     }
   229     }
   228 
   230 
   229 // ---------------------------------------------------------------------------
   231 // ---------------------------------------------------------------------------
   230 // CMmUssdTsy::CancelService
   232 // CMmUssdTsy::CancelService
   351 // ---------------------------------------------------------------------------
   353 // ---------------------------------------------------------------------------
   352 //
   354 //
   353 TInt CMmUssdTsy::RegisterNotification(
   355 TInt CMmUssdTsy::RegisterNotification(
   354     const TInt aIpc )                             // Notification IPC number
   356     const TInt aIpc )                             // Notification IPC number
   355     {
   357     {
   356     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_REGISTERNOTIFICATION_1,  "TSY: CMmUssdTsy::RegisterNotification. IPC: %d", aIpc );
   358     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_REGISTERNOTIFICATION_1,  "TSY: CMmUssdTsy::RegisterNotification. IPC: %{TIPCNamesList}", aIpc );
   357 
   359 
   358     TInt ret( KErrNone );
   360     TInt ret( KErrNone );
   359 
   361 
   360     switch ( aIpc )
   362     switch ( aIpc )
   361         {
   363         {
   382 // ---------------------------------------------------------------------------
   384 // ---------------------------------------------------------------------------
   383 //
   385 //
   384 TInt CMmUssdTsy::DeregisterNotification(
   386 TInt CMmUssdTsy::DeregisterNotification(
   385     const TInt aIpc )                             // Notification IPC number
   387     const TInt aIpc )                             // Notification IPC number
   386     {        
   388     {        
   387     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_DEREGISTERNOTIFICATION_1,  "TSY: CMmUssdTsy::DeregisterNotification. IPC: %d", aIpc );
   389     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_DEREGISTERNOTIFICATION_1,  "TSY: CMmUssdTsy::DeregisterNotification. IPC: %{TIPCNamesList}", aIpc );
   388 
   390 
   389     TInt ret( KErrNone );
   391     TInt ret( KErrNone );
   390 
   392 
   391     switch ( aIpc )
   393     switch ( aIpc )
   392         {
   394         {
   872 void CMmUssdTsy::CompleteNotifyNetworkRelease(
   874 void CMmUssdTsy::CompleteNotifyNetworkRelease(
   873     TInt aErrorCode,
   875     TInt aErrorCode,
   874     CMmDataPackage* aDataPackage )
   876     CMmDataPackage* aDataPackage )
   875     {
   877     {
   876 
   878 
   877 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_COMPLETENOTIFYNETWORKRELEASE_1, "TSY: CMmUssdTsy::CompleteNotifyNetworkRelease. Error: %d", aErrorCode );
   879 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_COMPLETENOTIFYNETWORKRELEASE_1, "TSY: CMmUssdTsy::CompleteNotifyNetworkRelease. Error: %{TSymbianErrorCodes}", aErrorCode );
   878     // reset req handle. Returns the deleted req handle
   880     // reset req handle. Returns the deleted req handle
   879     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
   881     TTsyReqHandle reqHandle = iTsyReqHandleStore->ResetTsyReqHandle(
   880 		EMultimodeUssdNotifyNetworkRelease );
   882 		EMultimodeUssdNotifyNetworkRelease );
   881 
   883 
   882     if( CMmPhoneTsy::EMultimodePhoneReqHandleUnknown != reqHandle )
   884     if( CMmPhoneTsy::EMultimodePhoneReqHandleUnknown != reqHandle )
  1066 //
  1068 //
  1067 void CMmUssdTsy::ReqCompleted(
  1069 void CMmUssdTsy::ReqCompleted(
  1068     const TTsyReqHandle aTsyReqHandle, 
  1070     const TTsyReqHandle aTsyReqHandle, 
  1069     const TInt aError )
  1071     const TInt aError )
  1070     {
  1072     {
  1071 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_REQCOMPLETED_1, "TSY: CMmUssdTsy::ReqCompleted. Handle: %d Error: %d", aTsyReqHandle, aError);
  1073 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_REQCOMPLETED_1, "TSY: CMmUssdTsy::ReqCompleted. Handle:%d Error:%{TSymbianErrorCodes} Object:0x%08x", aTsyReqHandle, aError, this);
  1072     CTelObject::ReqCompleted( aTsyReqHandle, aError );
  1074     CTelObject::ReqCompleted( aTsyReqHandle, aError );
       
  1075 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMUSSDTSY_REQCOMPLETED_2, "<-- TSY: CMmUssdTsy::ReqCompleted");
  1073     }
  1076     }
  1074 #endif // TF_LOGGING_ENABLED
  1077 #endif // TF_LOGGING_ENABLED
  1075 
  1078 
  1076 // ---------------------------------------------------------------------------
  1079 // ---------------------------------------------------------------------------
  1077 // CMmUssdTsy::Phone
  1080 // CMmUssdTsy::Phone