telephonyserverplugins/common_tsy/commontsy/src/mmtsy/cmmnettsy.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
   124 TInt CMmNetTsy::DoExtFuncL( 
   124 TInt CMmNetTsy::DoExtFuncL( 
   125     const TTsyReqHandle aTsyReqHandle,  // Request handle
   125     const TTsyReqHandle aTsyReqHandle,  // Request handle
   126     const TInt aIpc, // IPC number of request          
   126     const TInt aIpc, // IPC number of request          
   127     const TDataPackage& aPackage ) // Contains parameters for request
   127     const TDataPackage& aPackage ) // Contains parameters for request
   128     {
   128     {
   129 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_DOEXTFUNCL_1, "TSY: CMmPhoneTsy::DoExtFuncL.\n  \t\t\t IPC:%d\n \t\t\t Handle:%d", aIpc, aTsyReqHandle);
   129     OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_DOEXTFUNCL_1, "TSY: CMmNetTsy::DoExtFuncL. IPC:%{TIPCNamesList} Handle:%u Object:0x%08x", (TUint)aIpc, (TUint)aTsyReqHandle, (TUint)this);
   130 
   130 
   131     TInt ret ( KErrNone );
   131     TInt ret ( KErrNone );
   132 
   132 
   133     TAny* dataPtr = aPackage.Ptr1();
   133     TAny* dataPtr = aPackage.Ptr1();
   134     TAny* dataPtr2 = aPackage.Ptr2();
   134     TAny* dataPtr2 = aPackage.Ptr2();
   292         default:
   292         default:
   293             ret = KErrNotSupported;
   293             ret = KErrNotSupported;
   294             break;
   294             break;
   295         }
   295         }
   296 
   296 
       
   297 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_DOEXTFUNCL_5, "TSY: CMmNetTsy::DoExtFuncL, error=%{TSymbianErrorCodes}", ret);
   297     return ret;
   298     return ret;
   298 
   299 
   299     }
   300     }
   300 
   301 
   301 // ---------------------------------------------------------------------------
   302 // ---------------------------------------------------------------------------
   306 //
   307 //
   307 TInt CMmNetTsy::CancelService(    
   308 TInt CMmNetTsy::CancelService(    
   308     const TInt aIpc, // IPC number of request.
   309     const TInt aIpc, // IPC number of request.
   309     const TTsyReqHandle aTsyReqHandle ) // Request handle of given request.
   310     const TTsyReqHandle aTsyReqHandle ) // Request handle of given request.
   310     {
   311     {
   311 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_CANCELSERVICE_1, "TSY: CMmNetTsy::CancelService IPC: %d ret: %d", aIpc, aTsyReqHandle);
   312 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_CANCELSERVICE_1, "TSY: CMmNetTsy::CancelService IPC: %{TIPCNamesList} ret: %d", aIpc, aTsyReqHandle);
   312     TInt ret ( KErrNotSupported );
   313     TInt ret ( KErrNotSupported );
   313     
   314     
   314     //When the clients close their sub-sessions (eg. by calling RLine::Close), 
   315     //When the clients close their sub-sessions (eg. by calling RLine::Close), 
   315     //they may not have cancelled all their outstanding asynchronous requests 
   316     //they may not have cancelled all their outstanding asynchronous requests 
   316     //before closing.  It is up to the ETel server to clean up in this 
   317     //before closing.  It is up to the ETel server to clean up in this 
  1538         plmn.iNetworkId.Copy( networkInfo.iNetworkId );
  1539         plmn.iNetworkId.Copy( networkInfo.iNetworkId );
  1539 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKNAME_3, "TSY: CMmNetTsy::GetNetworkName, iLongName: %S", networkName.iLongName);
  1540 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKNAME_3, "TSY: CMmNetTsy::GetNetworkName, iLongName: %S", networkName.iLongName);
  1540 
  1541 
  1541         if( KErrNone == ret )
  1542         if( KErrNone == ret )
  1542             {
  1543             {
  1543 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKNAME_4, "TSY: CMmNetTsy::GetNetworkName - completing, ret: %d", ret);
  1544 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKNAME_4, "TSY: CMmNetTsy::GetNetworkName - completing, ret: %{TSymbianErrorCodes}", ret);
  1544             iMmPhoneTsy->ReqCompleted( aTsyReqHandle, ret );
  1545             iMmPhoneTsy->ReqCompleted( aTsyReqHandle, ret );
  1545             }
  1546             }
  1546         }
  1547         }
  1547 
  1548 
  1548     return ret;
  1549     return ret;
  2154                 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_2, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Sending request to LTSY" );
  2155                 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_2, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Sending request to LTSY" );
  2155                 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_3, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Modem not ready" );
  2156                 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_3, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Modem not ready" );
  2156 
  2157 
  2157             if ( KErrNone != ret )
  2158             if ( KErrNone != ret )
  2158                 {
  2159                 {
  2159                 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_4, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Complete with error %d", ret );
  2160                 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_4, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Complete with error %{TSymbianErrorCodes}", ret );
  2160                 iMmPhoneTsy->ReqCompleted( aTsyReqHandle, ret );
  2161                 iMmPhoneTsy->ReqCompleted( aTsyReqHandle, ret );
  2161                 }
  2162                 }
  2162             else
  2163             else
  2163                 {
  2164                 {
  2164 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_5, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Client to buffer" );
  2165 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_GETNETWORKREGISTRATIONSTATUSL_5, "TSY: CMmNetTsy::GetNetworkRegistrationStatusL - Client to buffer" );
  2886             file.Close();
  2887             file.Close();
  2887 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_READVARIANTOPTIONS_1, "TSY:CMmNetTsy::ReadVariantOptions:File successfully read.");
  2888 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_READVARIANTOPTIONS_1, "TSY:CMmNetTsy::ReadVariantOptions:File successfully read.");
  2888             }
  2889             }
  2889         else
  2890         else
  2890             {
  2891             {
  2891 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_READVARIANTOPTIONS_2, "TSY:CMmNetTsy::ReadVariantOptions:Could not open file Z:\\private\\101f7989\\operatorVariants.ini, error=%d",err);
  2892 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMNETTSY_READVARIANTOPTIONS_2, "TSY:CMmNetTsy::ReadVariantOptions:Could not open file Z:\\private\\101f7989\\operatorVariants.ini, error=%{TSymbianErrorCodes}",err);
  2892             }
  2893             }
  2893 
  2894 
  2894         // close connection to file server
  2895         // close connection to file server
  2895         fs.Close();    
  2896         fs.Close();    
  2896         }
  2897         }