telephonyserverplugins/common_tsy/commontsy/src/mmpacket/Cmmpacketservicetsy.cpp
changeset 73 70d75957b98f
parent 69 b982c3e940f3
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
   668 //----------------------------------------------------------------------------
   668 //----------------------------------------------------------------------------
   669 //
   669 //
   670 void CMmPacketServiceTsy::CompleteAttach(
   670 void CMmPacketServiceTsy::CompleteAttach(
   671     const TInt aError )  //error value
   671     const TInt aError )  //error value
   672     {
   672     {
   673 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEATTACH_1, "TSY: CMmPacketServiceTsy::CompleteAttach. Error Value: %d", aError );
   673 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEATTACH_1, "TSY: CMmPacketServiceTsy::CompleteAttach. Error Value: %{TSymbianErrorCodes}", aError );
   674 
   674 
   675     // Reset request handle. Returns the deleted request handle
   675     // Reset request handle. Returns the deleted request handle
   676     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
   676     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
   677         EMultimodePacketServiceAttach ) );
   677         EMultimodePacketServiceAttach ) );
   678 
   678 
   765 //----------------------------------------------------------------------------
   765 //----------------------------------------------------------------------------
   766 //
   766 //
   767 void CMmPacketServiceTsy::CompleteDetachL(
   767 void CMmPacketServiceTsy::CompleteDetachL(
   768     const TInt aError ) 
   768     const TInt aError ) 
   769     {
   769     {
   770 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEDETACHL_1, "TSY: CMmPacketServiceTsy::CompleteDetachL. Error Value: %d", aError );
   770 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEDETACHL_1, "TSY: CMmPacketServiceTsy::CompleteDetachL. Error Value: %{TSymbianErrorCodes}", aError );
   771 
   771 
   772     // Reset request handle. Returns the deleted request handle
   772     // Reset request handle. Returns the deleted request handle
   773     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
   773     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
   774         EMultimodePacketServiceDetach ) );
   774         EMultimodePacketServiceDetach ) );
   775 
   775 
  1003         {
  1003         {
  1004         // Request was sent during initialisation from active extension
  1004         // Request was sent during initialisation from active extension
  1005         CMmPacketServiceTsy::CompleteNotifyChangeOfNtwkRegStatus(
  1005         CMmPacketServiceTsy::CompleteNotifyChangeOfNtwkRegStatus(
  1006 												aRegistrationStatus );
  1006 												aRegistrationStatus );
  1007         }
  1007         }
  1008 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEGETNTWKREGSTATUS_1, "TSY: CMmPacketServiceTsy::CompleteGetNtwkRegStatus. TSY Req Handle: %d Registration Status: %d", reqHandle, aRegistrationStatus );
  1008 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEGETNTWKREGSTATUS_1, "TSY: CMmPacketServiceTsy::CompleteGetNtwkRegStatus. TSY Req Handle: %d Registration Status: %d", (TInt)reqHandle, aRegistrationStatus );
  1009     }
  1009     }
  1010 
  1010 
  1011 //----------------------------------------------------------------------------
  1011 //----------------------------------------------------------------------------
  1012 // CMmPacketServiceTsy::GetPreferredBearer
  1012 // CMmPacketServiceTsy::GetPreferredBearer
  1013 // Returns preferred bearer.
  1013 // Returns preferred bearer.
  1871 //----------------------------------------------------------------------------
  1871 //----------------------------------------------------------------------------
  1872 //
  1872 //
  1873 void CMmPacketServiceTsy::CompleteSetAttachMode(
  1873 void CMmPacketServiceTsy::CompleteSetAttachMode(
  1874     const TInt aError )  //error value
  1874     const TInt aError )  //error value
  1875     {
  1875     {
  1876 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETATTACHMODE_1, "TSY: CMmPacketServiceTsy::CompleteSetAttachMode. Error Value: %d", aError );
  1876 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETATTACHMODE_1, "TSY: CMmPacketServiceTsy::CompleteSetAttachMode. Error Value: %{TSymbianErrorCodes}", aError );
  1877 
  1877 
  1878     // Reset request handle. Returns the deleted request handle
  1878     // Reset request handle. Returns the deleted request handle
  1879     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  1879     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  1880         EMultimodePacketServiceSetAttachMode ) );
  1880         EMultimodePacketServiceSetAttachMode ) );
  1881 
  1881 
  1934 //----------------------------------------------------------------------------
  1934 //----------------------------------------------------------------------------
  1935 //
  1935 //
  1936 void CMmPacketServiceTsy::CompleteSetPreferredBearer(
  1936 void CMmPacketServiceTsy::CompleteSetPreferredBearer(
  1937     const TInt aError )  //epoc error code
  1937     const TInt aError )  //epoc error code
  1938     {
  1938     {
  1939 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETPREFERREDBEARER_1, "TSY: CMmPacketServiceTsy::CompleteSetPreferredBearer. Error: %d", aError );
  1939 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETPREFERREDBEARER_1, "TSY: CMmPacketServiceTsy::CompleteSetPreferredBearer. Error: %{TSymbianErrorCodes}", aError );
  1940 
  1940 
  1941     // Reset request handle. Returns the deleted request handle
  1941     // Reset request handle. Returns the deleted request handle
  1942     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  1942     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  1943         EMultimodePacketServiceSetPreferredBearer ) );
  1943         EMultimodePacketServiceSetPreferredBearer ) );
  1944 
  1944 
  1966 TInt CMmPacketServiceTsy::ExtFunc(
  1966 TInt CMmPacketServiceTsy::ExtFunc(
  1967     const TTsyReqHandle aTsyReqHandle,  
  1967     const TTsyReqHandle aTsyReqHandle,  
  1968     const TInt aIpc,                    
  1968     const TInt aIpc,                    
  1969     const TDataPackage& aPackage )     
  1969     const TDataPackage& aPackage )     
  1970     {
  1970     {
  1971 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_EXTFUNC_1, "TSY: CMmPacketServiceTsy::ExtFunc. IPC: %d", aIpc );
  1971 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_EXTFUNC_1, "TSY: CMmPacketServiceTsy::ExtFunc. IPC: %{TIPCNamesList}", aIpc );
  1972 
  1972 
  1973     TInt ret( KErrNone );
  1973     TInt ret( KErrNone );
  1974     TInt trapError( KErrNone );
  1974     TInt trapError( KErrNone );
  1975 
  1975 
  1976     // Ensure the ReqHandleType is unset.
  1976     // Ensure the ReqHandleType is unset.
  2025 //
  2025 //
  2026 TInt CMmPacketServiceTsy::DoExtFuncL(
  2026 TInt CMmPacketServiceTsy::DoExtFuncL(
  2027     const TInt aIpc,                
  2027     const TInt aIpc,                
  2028     const TDataPackage& aPackage )  
  2028     const TDataPackage& aPackage )  
  2029     {
  2029     {
  2030 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_DOEXTFUNCL_1, "TSY: CMmPacketServiceTsy::DoExtFuncL. IPC: %d TSY Req Handle:%d", aIpc, iTsyReqHandle);
  2030 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_DOEXTFUNCL_1, "TSY: CMmPacketServiceTsy::DoExtFuncL. IPC: %{TIPCNamesList} TSY Req Handle:%d Object:0x%08x", (TUint)aIpc, (TInt)iTsyReqHandle , (TUint)this);
  2031 
  2031 
  2032     TInt ret( KErrNotSupported );
  2032     TInt ret( KErrNotSupported );
  2033 
  2033 
  2034     TAny* const dataPtr = aPackage.Ptr1();
  2034     TAny* const dataPtr = aPackage.Ptr1();
  2035     TAny* const dataPtr2 = aPackage.Ptr2();
  2035     TAny* const dataPtr2 = aPackage.Ptr2();
  2217         //case EPacketSetMSClass:
  2217         //case EPacketSetMSClass:
  2218         default:
  2218         default:
  2219             break;
  2219             break;
  2220         }
  2220         }
  2221 
  2221 
       
  2222 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_DOEXTFUNCL_2, "<-- TSY: CMmPacketServiceTsy::DoExtFuncL, error = %{TSymbianErrorCodes}", ret);
  2222     return ret;
  2223     return ret;
  2223     }
  2224     }
  2224 
  2225 
  2225 
  2226 
  2226 
  2227 
  2232 //----------------------------------------------------------------------------
  2233 //----------------------------------------------------------------------------
  2233 //
  2234 //
  2234 CTelObject::TReqMode CMmPacketServiceTsy::ReqModeL(
  2235 CTelObject::TReqMode CMmPacketServiceTsy::ReqModeL(
  2235     const TInt aIpc ) 
  2236     const TInt aIpc ) 
  2236     {
  2237     {
  2237 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REQMODEL_1, "TSY: CMmPacketServiceTsy::ReqModeL. IPC: %d", aIpc );
  2238 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REQMODEL_1, "TSY: CMmPacketServiceTsy::ReqModeL. IPC: %{TIPCNamesList}", aIpc );
  2238 
  2239 
  2239     CTelObject::TReqMode reqMode( 0 );
  2240     CTelObject::TReqMode reqMode( 0 );
  2240     switch ( aIpc )
  2241     switch ( aIpc )
  2241         {
  2242         {
  2242         // All disabled TSYs wishing to implement their own buffering 
  2243         // All disabled TSYs wishing to implement their own buffering 
  2310 //----------------------------------------------------------------------------
  2311 //----------------------------------------------------------------------------
  2311 //
  2312 //
  2312 TInt CMmPacketServiceTsy::NumberOfSlotsL(
  2313 TInt CMmPacketServiceTsy::NumberOfSlotsL(
  2313     const TInt aIpc ) 
  2314     const TInt aIpc ) 
  2314     {
  2315     {
  2315 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_NUMBEROFSLOTSL_1, "TSY: CMmPacketServiceTsy::NumberOfSlotsL. IPC: %d", aIpc );
  2316 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_NUMBEROFSLOTSL_1, "TSY: CMmPacketServiceTsy::NumberOfSlotsL. IPC: %{TIPCNamesList}", aIpc );
  2316 
  2317 
  2317     TInt numberOfSlots( 0 );
  2318     TInt numberOfSlots( 0 );
  2318     switch ( aIpc )
  2319     switch ( aIpc )
  2319         {
  2320         {
  2320 
  2321 
  2363 //
  2364 //
  2364 TInt CMmPacketServiceTsy::CancelService(
  2365 TInt CMmPacketServiceTsy::CancelService(
  2365     const TInt aIpc,                    
  2366     const TInt aIpc,                    
  2366     const TTsyReqHandle aTsyReqHandle ) 
  2367     const TTsyReqHandle aTsyReqHandle ) 
  2367     {
  2368     {
  2368 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_CANCELSERVICE_1, "TSY: CMmPacketServiceTsy::CancelService. IPC: %d Tsy Req Handle:%d", aIpc, aTsyReqHandle);
  2369 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_CANCELSERVICE_1, "TSY: CMmPacketServiceTsy::CancelService. IPC: %{TIPCNamesList} Tsy Req Handle:%d", aIpc, aTsyReqHandle);
  2369 
  2370 
  2370     TInt ret( KErrNone );
  2371     TInt ret( KErrNone );
  2371     
  2372     
  2372     // Ensure the ReqHandleType is unset.
  2373     // Ensure the ReqHandleType is unset.
  2373     // This will detect cases where this method indirectly calls itself
  2374     // This will detect cases where this method indirectly calls itself
  2505 //----------------------------------------------------------------------------
  2506 //----------------------------------------------------------------------------
  2506 //
  2507 //
  2507 TInt CMmPacketServiceTsy::RegisterNotification(
  2508 TInt CMmPacketServiceTsy::RegisterNotification(
  2508     const TInt aIpc ) 
  2509     const TInt aIpc ) 
  2509 	{
  2510 	{
  2510 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REGISTERNOTIFICATION_1, "TSY: CMmPacketServiceTsy::RegisterNotification. IPC: %d", aIpc );
  2511 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REGISTERNOTIFICATION_1, "TSY: CMmPacketServiceTsy::RegisterNotification. IPC: %{TIPCNamesList}", aIpc );
  2511 
  2512 
  2512     TInt ret( KErrNone );
  2513     TInt ret( KErrNone );
  2513 
  2514 
  2514     switch ( aIpc )
  2515     switch ( aIpc )
  2515         {
  2516         {
  2538 //----------------------------------------------------------------------------
  2539 //----------------------------------------------------------------------------
  2539 //
  2540 //
  2540 TInt CMmPacketServiceTsy::DeregisterNotification(
  2541 TInt CMmPacketServiceTsy::DeregisterNotification(
  2541     const TInt aIpc ) 
  2542     const TInt aIpc ) 
  2542     {
  2543     {
  2543 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_DEREGISTERNOTIFICATION_1, "TSY: CMmPacketServiceTsy::DeregisterNotification. IPC: %d", aIpc );
  2544 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_DEREGISTERNOTIFICATION_1, "TSY: CMmPacketServiceTsy::DeregisterNotification. IPC: %{TIPCNamesList}", aIpc );
  2544 
  2545 
  2545     TInt ret( KErrNone );
  2546     TInt ret( KErrNone );
  2546 
  2547 
  2547     switch ( aIpc )
  2548     switch ( aIpc )
  2548         {
  2549         {
  3162         {
  3163         {
  3163         ret = iMBMSContextList->GenerateNewContextName( aNewName, proxyId, iMaxActiveServices );
  3164         ret = iMBMSContextList->GenerateNewContextName( aNewName, proxyId, iMaxActiveServices );
  3164 
  3165 
  3165         if( KErrNone != ret )
  3166         if( KErrNone != ret )
  3166             {
  3167             {
  3167 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_2, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Mbms Leaves with: %d", ret );
  3168 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_2, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Mbms Leaves with: %{TSymbianErrorCodes}", ret );
  3168             User::Leave( ret );            
  3169             User::Leave( ret );            
  3169             }
  3170             }
  3170             
  3171             
  3171         CMmMBMSContextTsy* context = CMmMBMSContextTsy::NewL( this, aNewName, proxyId ); 
  3172         CMmMBMSContextTsy* context = CMmMBMSContextTsy::NewL( this, aNewName, proxyId ); 
  3172         ret = iMBMSContextList->AddObject( context );
  3173         ret = iMBMSContextList->AddObject( context );
  3174             {
  3175             {
  3175             // Created context couldn't save.
  3176             // Created context couldn't save.
  3176             // Call Close() to context to remove it completely
  3177             // Call Close() to context to remove it completely
  3177             context->Close();
  3178             context->Close();
  3178             context = NULL;
  3179             context = NULL;
  3179 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_3, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Mbms Leaves  with: %d", ret );
  3180 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_3, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Mbms Leaves  with: %{TSymbianErrorCodes}", ret );
  3180             User::Leave( ret );
  3181             User::Leave( ret );
  3181             }
  3182             }
  3182         else
  3183         else
  3183             {
  3184             {
  3184 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_4, "TSY: CMmPacketServiceTsy::OpenNewObjectL. New MBMS Context Name: %S Proxy Id: %d",aNewName, proxyId );
  3185 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_4, "TSY: CMmPacketServiceTsy::OpenNewObjectL. New MBMS Context Name: %S Proxy Id: %d",aNewName, proxyId );
  3194             // Reason to leave is that maximum number of Contexts already exists.
  3195             // Reason to leave is that maximum number of Contexts already exists.
  3195             // Leaving from here requires that TSY is configurated with max number
  3196             // Leaving from here requires that TSY is configurated with max number
  3196             // of context supported by this phone ( value KMmMaxNumberOfContexts )
  3197             // of context supported by this phone ( value KMmMaxNumberOfContexts )
  3197             ret = CMmCommonStaticUtility::EpocErrorCode(
  3198             ret = CMmCommonStaticUtility::EpocErrorCode(
  3198                 KErrOverflow, KErrUmtsMaxNumOfContextExceededByPhone );
  3199                 KErrOverflow, KErrUmtsMaxNumOfContextExceededByPhone );
  3199 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_5, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Leaves with: %d", ret );
  3200 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_5, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Leaves with: %{TSymbianErrorCodes}", ret );
  3200             User::Leave( ret );
  3201             User::Leave( ret );
  3201             }
  3202             }
  3202         CMmPacketContextTsy* context = CMmPacketContextTsy::NewL( this, iHostCID, aNewName, proxyId );
  3203         CMmPacketContextTsy* context = CMmPacketContextTsy::NewL( this, iHostCID, aNewName, proxyId );
  3203 
  3204 
  3204     	// reset cotext name 
  3205     	// reset cotext name 
  3208             {
  3209             {
  3209             // Created context couldn't save.
  3210             // Created context couldn't save.
  3210             // Call Close() to context to remove it completely
  3211             // Call Close() to context to remove it completely
  3211             context->Close();
  3212             context->Close();
  3212             context = NULL;
  3213             context = NULL;
  3213 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_6, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Leaves with: %d", ret );
  3214 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_6, "TSY: CMmPacketServiceTsy::OpenNewObjectL. Leaves with: %{TSymbianErrorCodes}", ret );
  3214             User::Leave( ret );
  3215             User::Leave( ret );
  3215             }
  3216             }
  3216         else
  3217         else
  3217             {
  3218             {
  3218 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_7, "TSY: CMmPacketServiceTsy::OpenNewObjectL. New Context Name: %S Proxy Id: %d",aNewName, proxyId );
  3219 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTL_7, "TSY: CMmPacketServiceTsy::OpenNewObjectL. New Context Name: %S Proxy Id: %d",aNewName, proxyId );
  3233 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTBYNAMEL_1, "TSY: CMmPacketServiceTsy::OpenNewObjectByNameL. Context Name: %S", aName );
  3234 OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTBYNAMEL_1, "TSY: CMmPacketServiceTsy::OpenNewObjectByNameL. Context Name: %S", aName );
  3234 
  3235 
  3235     // length of object's name cannot be over 16 chars
  3236     // length of object's name cannot be over 16 chars
  3236     if ( 16 < aName.Length() )
  3237     if ( 16 < aName.Length() )
  3237         {
  3238         {
  3238 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTBYNAMEL_2, "TSY: CMmPacketServiceTsy::OpenNewObjectByNameL. Leaves with: %d", KErrOverflow  );
  3239 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTBYNAMEL_2, "TSY: CMmPacketServiceTsy::OpenNewObjectByNameL. Leaves with: KErrOverflow");
  3239         User::Leave( KErrOverflow  );
  3240         User::Leave( KErrOverflow  );
  3240         }
  3241         }
  3241 
  3242 
  3242     const TInfoName mmPacketContextName( aName );
  3243     const TInfoName mmPacketContextName( aName );
  3243     CMmPacketContextTsy* mmPacketContext = NULL;
  3244     CMmPacketContextTsy* mmPacketContext = NULL;
  3259         }
  3260         }
  3260 
  3261 
  3261     // If not found, Leaves
  3262     // If not found, Leaves
  3262     if ( NULL == mmPacketContext )
  3263     if ( NULL == mmPacketContext )
  3263         {
  3264         {
  3264 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTBYNAMEL_5, "TSY: CMmPacketServiceTsy::OpenNewObjectByNameL. Leaves with: %d", KErrNotFound );
  3265 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_OPENNEWOBJECTBYNAMEL_5, "TSY: CMmPacketServiceTsy::OpenNewObjectByNameL. Leaves with: KErrNotFound");
  3265         User::Leave( KErrNotFound );
  3266         User::Leave( KErrNotFound );
  3266         }
  3267         }
  3267 
  3268 
  3268     return mmPacketContext;
  3269     return mmPacketContext;
  3269     }
  3270     }
  3574 //
  3575 //
  3575 void CMmPacketServiceTsy::ReqCompleted(
  3576 void CMmPacketServiceTsy::ReqCompleted(
  3576     const TTsyReqHandle aTsyReqHandle,  
  3577     const TTsyReqHandle aTsyReqHandle,  
  3577     const TInt aError )                   
  3578     const TInt aError )                   
  3578     {
  3579     {
  3579 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REQCOMPLETED_1, "TSY: CMmPacketServiceTsy::Request Completed. TSY Req Handle: %d Error:%d", aTsyReqHandle, aError );
  3580 OstTraceDefExt3(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REQCOMPLETED_1, "TSY: CMmPacketServiceTsy::ReqCompleted. Handle:%d Error:%{TSymbianErrorCodes} Object:0x%08x", aTsyReqHandle, aError, this);
  3580 
  3581 
  3581     CTelObject::ReqCompleted( aTsyReqHandle, aError );
  3582     CTelObject::ReqCompleted( aTsyReqHandle, aError );
       
  3583 
       
  3584 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_REQCOMPLETED_2, "<-- TSY: CMmPacketServiceTsy::ReqCompleted");
  3582     }
  3585     }
  3583 
  3586 
  3584 #endif // TF_LOGGING_ENABLED
  3587 #endif // TF_LOGGING_ENABLED
  3585 
  3588 
  3586 
  3589 
  3740 //----------------------------------------------------------------------------
  3743 //----------------------------------------------------------------------------
  3741 //
  3744 //
  3742 void CMmPacketServiceTsy::CompleteSetDefaultContextParams(
  3745 void CMmPacketServiceTsy::CompleteSetDefaultContextParams(
  3743     TInt aCause )    
  3746     TInt aCause )    
  3744     {
  3747     {
  3745 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETDEFAULTCONTEXTPARAMS_1, "TSY: CMmPacketServiceTsy::CompleteSetDefaultContextParams. aCause: %d", aCause );
  3748 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETDEFAULTCONTEXTPARAMS_1, "TSY: CMmPacketServiceTsy::CompleteSetDefaultContextParams. aCause: %{TSymbianErrorCodes}", aCause );
  3746 
  3749 
  3747     // Reset request handle. Returns the deleted request handle
  3750     // Reset request handle. Returns the deleted request handle
  3748     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  3751     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  3749         EMultimodePacketServiceSetDefaultContextParams ) );
  3752         EMultimodePacketServiceSetDefaultContextParams ) );
  3750 
  3753 
  3987 //-----------------------------------------------------------------------------
  3990 //-----------------------------------------------------------------------------
  3988 //
  3991 //
  3989 void CMmPacketServiceTsy::CompleteSetAlwaysOn( 
  3992 void CMmPacketServiceTsy::CompleteSetAlwaysOn( 
  3990     TInt aError )
  3993     TInt aError )
  3991 	{
  3994 	{
  3992 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETALWAYSON_1,  "TSY: CMmPacketServiceTsy::CompleteSetAlwaysOn Error %d", aError );
  3995 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETALWAYSON_1,  "TSY: CMmPacketServiceTsy::CompleteSetAlwaysOn Error %{TSymbianErrorCodes}", aError );
  3993 
  3996 
  3994     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  3997     const TTsyReqHandle reqHandle( iTsyReqHandleStore->ResetTsyReqHandle(
  3995             								  EMultimodePacketSetAlwaysOn ) );
  3998             								  EMultimodePacketSetAlwaysOn ) );
  3996 
  3999 
  3997 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETALWAYSON_2,  "TSY: CMmPacketServiceTsy::CompleteSetAlwaysOn ReqHandle %d", reqHandle );
  4000 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETESETALWAYSON_2,  "TSY: CMmPacketServiceTsy::CompleteSetAlwaysOn ReqHandle %d", reqHandle );
  4092 //
  4095 //
  4093 void CMmPacketServiceTsy::CompleteEnumerateMbmsActiveServiceList(        
  4096 void CMmPacketServiceTsy::CompleteEnumerateMbmsActiveServiceList(        
  4094     CMmDataPackage* aDataPackage,
  4097     CMmDataPackage* aDataPackage,
  4095     const TInt aResult)
  4098     const TInt aResult)
  4096     {
  4099     {
  4097 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEENUMERATEMBMSACTIVESERVICELIST_1,  "TSY: CMmPacketServiceTsy::CompleteEnumerateMbmsActiveServiceList. Error: %d", aResult );
  4100 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICETSY_COMPLETEENUMERATEMBMSACTIVESERVICELIST_1,  "TSY: CMmPacketServiceTsy::CompleteEnumerateMbmsActiveServiceList. Error: %{TSymbianErrorCodes}", aResult );
  4098            
  4101            
  4099     if( KErrNone == aResult && NULL != aDataPackage )
  4102     if( KErrNone == aResult && NULL != aDataPackage )
  4100         {
  4103         {
  4101         aDataPackage->UnPackData( iMaxActiveServices );
  4104         aDataPackage->UnPackData( iMaxActiveServices );
  4102         }       
  4105         }