telephonyserverplugins/common_tsy/commontsy/src/mmpacket/cmmpacketservicegsmwcdmaext.cpp
changeset 44 8b72faa1200f
parent 0 3553901f7fa8
child 66 07a122eea281
equal deleted inserted replaced
39:2473f5e227f9 44:8b72faa1200f
     1 // Copyright (c) 2006-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2006-2010 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    14 //
    14 //
    15 
    15 
    16 
    16 
    17 
    17 
    18 // INCLUDE FILES
    18 // INCLUDE FILES
       
    19 
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "cmmpacketservicegsmwcdmaextTraces.h"
       
    23 #endif
       
    24 
    19 #include "cmmpacketservicegsmwcdmaext.h"
    25 #include "cmmpacketservicegsmwcdmaext.h"
    20 #include "Cmmpacketcontexttsy.h"
    26 #include "Cmmpacketcontexttsy.h"
    21 #include "Cmmpacketcontextlist.h"
    27 #include "Cmmpacketcontextlist.h"
    22 #include "CMmCommonStaticUtility.h"
    28 #include "CMmCommonStaticUtility.h"
    23 #include "CMmCustomTsy.h"
    29 #include "CMmCustomTsy.h"
    44     CleanupStack::PushL( packetServiceGsmWcdmaExt );
    50     CleanupStack::PushL( packetServiceGsmWcdmaExt );
    45     packetServiceGsmWcdmaExt->iMmPacketServiceTsy = aMmPacketServiceTsy;
    51     packetServiceGsmWcdmaExt->iMmPacketServiceTsy = aMmPacketServiceTsy;
    46     packetServiceGsmWcdmaExt->ConstructL( aFactory );
    52     packetServiceGsmWcdmaExt->ConstructL( aFactory );
    47     CleanupStack::Pop();
    53     CleanupStack::Pop();
    48 
    54 
    49 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::NewL.\n" );
    55 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_NEWL_1, "TSY: CMmPacketServiceGsmWcdmaExt::NewL.\n" );
    50     return packetServiceGsmWcdmaExt;
    56     return packetServiceGsmWcdmaExt;
    51 
    57 
    52     }
    58     }
    53 
    59 
    54 void CMmPacketServiceGsmWcdmaExt::ConstructL( MLtsyFactoryBase* aFactory )
    60 void CMmPacketServiceGsmWcdmaExt::ConstructL( MLtsyFactoryBase* aFactory )
    75     											 
    81     											 
    76     }
    82     }
    77     
    83     
    78 CMmPacketServiceGsmWcdmaExt::~CMmPacketServiceGsmWcdmaExt()
    84 CMmPacketServiceGsmWcdmaExt::~CMmPacketServiceGsmWcdmaExt()
    79     {
    85     {
    80 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::~CMmPacketServiceGsmWcdmaExt.\n" );
    86 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_DTOR_1, "TSY: CMmPacketServiceGsmWcdmaExt::~CMmPacketServiceGsmWcdmaExt.\n" );
    81     }
    87     }
    82     
    88     
    83 //----------------------------------------------------------------------------
    89 //----------------------------------------------------------------------------
    84 // CMmPacketServiceGsmWcdmaExt::InitInternalAttributesL
    90 // CMmPacketServiceGsmWcdmaExt::InitInternalAttributesL
    85 // Initialises internal attributes.
    91 // Initialises internal attributes.
   127 // Attaches phone to the network.
   133 // Attaches phone to the network.
   128 //----------------------------------------------------------------------------
   134 //----------------------------------------------------------------------------
   129 //
   135 //
   130 TInt CMmPacketServiceGsmWcdmaExt::AttachL()
   136 TInt CMmPacketServiceGsmWcdmaExt::AttachL()
   131     {
   137     {
   132 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::AttachL." );
   138 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_ATTACHL_1, "TSY: CMmPacketServiceGsmWcdmaExt::AttachL." );
   133 
   139 
   134 	// Call and return
   140 	// Call and return
   135 	return iMmPacketServiceTsy->MessageManager()->HandleRequestL( 
   141 	return iMmPacketServiceTsy->MessageManager()->HandleRequestL( 
   136 														EPacketAttach );
   142 														EPacketAttach );
   137     }
   143     }
   143 //----------------------------------------------------------------------------
   149 //----------------------------------------------------------------------------
   144 //
   150 //
   145 void CMmPacketServiceGsmWcdmaExt::CompleteAttach( 
   151 void CMmPacketServiceGsmWcdmaExt::CompleteAttach( 
   146 		TInt aErrorValue ) const
   152 		TInt aErrorValue ) const
   147     {
   153     {
   148 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteAttach.\n  \t ErrorValue:%d\n", aErrorValue );
   154 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETEATTACH_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteAttach.\n  \t ErrorValue:%d\n", aErrorValue );
   149 
   155 
   150 	if ( KErrNone == aErrorValue )
   156 	if ( KErrNone == aErrorValue )
   151 		{
   157 		{
   152 		 // Initiate EStatusAttached to packet status
   158 		 // Initiate EStatusAttached to packet status
   153 		RPacketService::TStatus packetStatus(
   159 		RPacketService::TStatus packetStatus(
   172 // Sends Detach request to Message manager
   178 // Sends Detach request to Message manager
   173 //----------------------------------------------------------------------------
   179 //----------------------------------------------------------------------------
   174 //
   180 //
   175 TInt CMmPacketServiceGsmWcdmaExt::DetachL()
   181 TInt CMmPacketServiceGsmWcdmaExt::DetachL()
   176     {
   182     {
   177 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::DetachL.\n  ");
   183 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_DETACHL_1, "TSY: CMmPacketServiceGsmWcdmaExt::DetachL.\n  ");
   178 
   184 
   179 	return iMmPacketServiceTsy->MessageManager()->
   185 	return iMmPacketServiceTsy->MessageManager()->
   180                                            HandleRequestL( EPacketDetach );
   186                                            HandleRequestL( EPacketDetach );
   181 
   187 
   182     }
   188     }
   188 //----------------------------------------------------------------------------
   194 //----------------------------------------------------------------------------
   189 //
   195 //
   190 void CMmPacketServiceGsmWcdmaExt::CompleteDetachL( 
   196 void CMmPacketServiceGsmWcdmaExt::CompleteDetachL( 
   191 		TInt aErrorValue ) const
   197 		TInt aErrorValue ) const
   192     {
   198     {
   193 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteDetachL\n  \t ErrorValue:%d\n", aErrorValue );
   199 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETEDETACHL_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteDetachL\n  \t ErrorValue:%d\n", aErrorValue );
   194 
   200 
   195 	if ( KErrNone == aErrorValue )
   201 	if ( KErrNone == aErrorValue )
   196 		{
   202 		{
   197 		
   203 		
   198 		RPacketService::TStatus packetStatus( 
   204 		RPacketService::TStatus packetStatus( 
   215 // Network registration status request to the network.
   221 // Network registration status request to the network.
   216 //---------------------------------------------------------------------------
   222 //---------------------------------------------------------------------------
   217 //
   223 //
   218 TInt CMmPacketServiceGsmWcdmaExt::GetNtwkRegStatusL()
   224 TInt CMmPacketServiceGsmWcdmaExt::GetNtwkRegStatusL()
   219     {
   225     {
   220 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::GetNtwkRegStatusL.\n" );
   226 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_GETNTWKREGSTATUSL_1, "TSY: CMmPacketServiceGsmWcdmaExt::GetNtwkRegStatusL.\n" );
   221 
   227 
   222 	return iMmPacketServiceTsy->MessageManager()->HandleRequestL( 
   228 	return iMmPacketServiceTsy->MessageManager()->HandleRequestL( 
   223 		EPacketGetNtwkRegStatus );
   229 		EPacketGetNtwkRegStatus );
   224 
   230 
   225     }
   231     }
   236     {
   242     {
   237 	RPacketService::TRegistrationStatus regStatusClient;
   243 	RPacketService::TRegistrationStatus regStatusClient;
   238     //Unpack data
   244     //Unpack data
   239 	aDataPackage->UnPackData( regStatusClient );
   245 	aDataPackage->UnPackData( regStatusClient );
   240 
   246 
   241 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteGetNtwkRegStatus.\n  \t", regStatusClient);
   247 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETEGETNTWKREGSTATUS_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteGetNtwkRegStatus.\n RegStatusClient = %d \t", regStatusClient);
   242 
   248 
   243     // Call CompleteGetNtwkRegStatus() from service tsy
   249     // Call CompleteGetNtwkRegStatus() from service tsy
   244 	iMmPacketServiceTsy->CompleteGetNtwkRegStatus( regStatusClient, 
   250 	iMmPacketServiceTsy->CompleteGetNtwkRegStatus( regStatusClient, 
   245 			aResult );
   251 			aResult );
   246 
   252 
   252 //----------------------------------------------------------------------------
   258 //----------------------------------------------------------------------------
   253 //
   259 //
   254 TInt CMmPacketServiceGsmWcdmaExt::SetAttachModeL(
   260 TInt CMmPacketServiceGsmWcdmaExt::SetAttachModeL(
   255 		RPacketService::TAttachMode aMode )
   261 		RPacketService::TAttachMode aMode )
   256     {
   262     {
   257 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::SetAttachModeL." );
   263 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_SETATTACHMODEL_1, "TSY: CMmPacketServiceGsmWcdmaExt::SetAttachModeL." );
   258 
   264 
   259 	TInt ret( KErrNone );
   265 	TInt ret( KErrNone );
   260 	CMmDataPackage data;
   266 	CMmDataPackage data;
   261     data.PackData( &aMode );
   267     data.PackData( &aMode );
   262 
   268 
   274 //
   280 //
   275 void CMmPacketServiceGsmWcdmaExt::CompleteSetAttachMode( 
   281 void CMmPacketServiceGsmWcdmaExt::CompleteSetAttachMode( 
   276 		const TInt aErrorValue ) const
   282 		const TInt aErrorValue ) const
   277     {
   283     {
   278 
   284 
   279 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteSetAttachMode.\n  \t  Error Value:%d\n", aErrorValue );
   285 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETESETATTACHMODE_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteSetAttachMode.\n  \t  Error Value:%d\n", aErrorValue );
   280 
   286 
   281     iMmPacketServiceTsy->CompleteSetAttachMode( aErrorValue );
   287     iMmPacketServiceTsy->CompleteSetAttachMode( aErrorValue );
   282 
   288 
   283     }
   289     }
   284 
   290 
   287 // Gets attach mode 
   293 // Gets attach mode 
   288 //----------------------------------------------------------------------------
   294 //----------------------------------------------------------------------------
   289 //
   295 //
   290 TInt CMmPacketServiceGsmWcdmaExt::GetAttachModeL() 
   296 TInt CMmPacketServiceGsmWcdmaExt::GetAttachModeL() 
   291     {
   297     {
   292 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::GetAttachModeL.\n\t " );
   298 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_GETATTACHMODEL_1, "TSY: CMmPacketServiceGsmWcdmaExt::GetAttachModeL.\n\t " );
   293 
   299 
   294 	TBool calledOnInitPhase = EFalse;
   300 	TBool calledOnInitPhase = EFalse;
   295 	CMmDataPackage data;
   301 	CMmDataPackage data;
   296 	data.PackData( &calledOnInitPhase );
   302 	data.PackData( &calledOnInitPhase );
   297 
   303 
   311     {
   317     {
   312 	RPacketService::TAttachMode attachMode;
   318 	RPacketService::TAttachMode attachMode;
   313 
   319 
   314 	aDataPackage->UnPackData( attachMode );
   320 	aDataPackage->UnPackData( attachMode );
   315 
   321 
   316     TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteGetAttachMode.\n  \t Status:%d\n\t ", attachMode );
   322     OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETEGETATTACHMODE_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteGetAttachMode.\n  \t Status:%d\n\t ", attachMode );
   317 
   323 
   318     iMmPacketServiceTsy->CompleteGetAttachMode( attachMode, aResult);
   324     iMmPacketServiceTsy->CompleteGetAttachMode( attachMode, aResult);
   319 
   325 
   320     }
   326     }
   321 
   327 
   328 		const TDataPackage& aPackage )
   334 		const TDataPackage& aPackage )
   329     {
   335     {
   330 	TInt ret( KErrNone );
   336 	TInt ret( KErrNone );
   331 	TDataPackage package = aPackage;
   337 	TDataPackage package = aPackage;
   332 
   338 
   333 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::SetPreferredBearerL.");
   339 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_SETPREFERREDBEARERL_1, "TSY: CMmPacketServiceGsmWcdmaExt::SetPreferredBearerL.");
   334 
   340 
   335 	ret = iMmPacketServiceTsy->MessageManager()->HandleRequestL( 
   341 	ret = iMmPacketServiceTsy->MessageManager()->HandleRequestL( 
   336 		 EPacketSetPrefBearer, &package );
   342 		 EPacketSetPrefBearer, &package );
   337 
   343 
   338 	return ret;
   344 	return ret;
   345 //
   351 //
   346 void CMmPacketServiceGsmWcdmaExt::CompleteSetPreferredBearer(
   352 void CMmPacketServiceGsmWcdmaExt::CompleteSetPreferredBearer(
   347 		TInt aErrorValue ) const  
   353 		TInt aErrorValue ) const  
   348     {
   354     {
   349 
   355 
   350 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteSetPreferredBearer.\n\t Error Value:%d\n", aErrorValue );
   356 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETESETPREFERREDBEARER_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteSetPreferredBearer.\n\t Error Value:%d\n", aErrorValue );
   351 
   357 
   352     iMmPacketServiceTsy->CompleteSetPreferredBearer( aErrorValue );
   358     iMmPacketServiceTsy->CompleteSetPreferredBearer( aErrorValue );
   353 
   359 
   354     }
   360     }
   355 
   361 
   364     {
   370     {
   365 
   371 
   366     // Set caps
   372     // Set caps
   367     *aCaps = iDynamicCaps;
   373     *aCaps = iDynamicCaps;
   368 
   374 
   369 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::GetDynamicCaps.\n\t Dynamic Caps:%b\n", *aCaps );
   375 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_GETDYNAMICCAPS_1, "TSY: CMmPacketServiceGsmWcdmaExt::GetDynamicCaps.\n\t Dynamic Caps:0x%08x\n", (TUint)*aCaps );
   370 
   376 
   371     }
   377     }
   372 
   378 
   373 //----------------------------------------------------------------------------
   379 //----------------------------------------------------------------------------
   374 // CMmPacketServiceGsmWcdmaExt::SetDynamicCapsFlag
   380 // CMmPacketServiceGsmWcdmaExt::SetDynamicCapsFlag
   447         // Set dynamic caps to iDynamicCaps
   453         // Set dynamic caps to iDynamicCaps
   448         iDynamicCaps = dynamicCaps;
   454         iDynamicCaps = dynamicCaps;
   449         // Call complete notify dynamic caps change from service tsy
   455         // Call complete notify dynamic caps change from service tsy
   450         iMmPacketServiceTsy->CompleteNotifyDynamicCapsChange( iDynamicCaps );
   456         iMmPacketServiceTsy->CompleteNotifyDynamicCapsChange( iDynamicCaps );
   451 
   457 
   452 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::SetDynamicCapsFlag.\n\t Dynamic Caps:%b\n", iDynamicCaps );
   458 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_SETDYNAMICCAPSFLAG_1, "TSY: CMmPacketServiceGsmWcdmaExt::SetDynamicCapsFlag.\n\t Dynamic Caps:%u\n", (TUint)iDynamicCaps );
   453 
   459 
   454         }
   460         }
   455     }
   461     }
   456 
   462 
   457 //----------------------------------------------------------------------------
   463 //----------------------------------------------------------------------------
   541         // Set dynamic caps to iDynamicCaps
   547         // Set dynamic caps to iDynamicCaps
   542         iDynamicCaps = dynamicCaps;
   548         iDynamicCaps = dynamicCaps;
   543         // Call complete notify dynamic caps change from service tsy
   549         // Call complete notify dynamic caps change from service tsy
   544         iMmPacketServiceTsy->CompleteNotifyDynamicCapsChange( iDynamicCaps );
   550         iMmPacketServiceTsy->CompleteNotifyDynamicCapsChange( iDynamicCaps );
   545 
   551 
   546 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteDynamicCapsChange.\n\t Dynamic Caps:%b\n", iDynamicCaps );
   552 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETEDYNAMICCAPSCHANGE_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteDynamicCapsChange.\n\t Dynamic Caps:%x\n", (TUint)iDynamicCaps );
   547         }
   553         }
   548     }
   554     }
   549 
   555 
   550 //----------------------------------------------------------------------------
   556 //----------------------------------------------------------------------------
   551 // CMmPacketServiceGsmWcdmaExt::GetStaticCaps
   557 // CMmPacketServiceGsmWcdmaExt::GetStaticCaps
   553 //----------------------------------------------------------------------------
   559 //----------------------------------------------------------------------------
   554 //
   560 //
   555 void CMmPacketServiceGsmWcdmaExt::GetStaticCaps(
   561 void CMmPacketServiceGsmWcdmaExt::GetStaticCaps(
   556         TUint* const aCaps )const 
   562         TUint* const aCaps )const 
   557     {
   563     {
   558 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::GetStaticCaps.\n\t Static Caps:%b\n", iStaticCaps );
   564 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_GETSTATICCAPS_1, "TSY: CMmPacketServiceGsmWcdmaExt::GetStaticCaps.\n\t Static Caps:%u\n", iStaticCaps );
   559 
   565 
   560     *aCaps = iStaticCaps;
   566     *aCaps = iStaticCaps;
   561 
   567 
   562     }
   568     }
   563 
   569 
   698 // returns EGprs support in cell
   704 // returns EGprs support in cell
   699 //----------------------------------------------------------------------------
   705 //----------------------------------------------------------------------------
   700 //
   706 //
   701 TBool CMmPacketServiceGsmWcdmaExt::EGprsSupportInCell()
   707 TBool CMmPacketServiceGsmWcdmaExt::EGprsSupportInCell()
   702     {
   708     {
   703 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::EGprsSupportInCell.\n\t Last Edge Support:%b\n", iLastEdgeGprsSupport );
   709 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_EGPRSSUPPORTINCELL_1, "TSY: CMmPacketServiceGsmWcdmaExt::EGprsSupportInCell.\n\t Last Edge Support:%u\n", (TUint)iLastEdgeGprsSupport );
   704 
   710 
   705     return iLastEdgeGprsSupport;  
   711     return iLastEdgeGprsSupport;  
   706     }
   712     }
   707 
   713 
   708 //----------------------------------------------------------------------------
   714 //----------------------------------------------------------------------------
   713 void CMmPacketServiceGsmWcdmaExt::SetEdgeGprsSupport(
   719 void CMmPacketServiceGsmWcdmaExt::SetEdgeGprsSupport(
   714 		TBool aLastEdgeGprsSupport )
   720 		TBool aLastEdgeGprsSupport )
   715 	{
   721 	{
   716 	iLastEdgeGprsSupport = aLastEdgeGprsSupport;
   722 	iLastEdgeGprsSupport = aLastEdgeGprsSupport;
   717 
   723 
   718 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::SetEdgeGprsSupport.\n\t Last Edge Support:%b\n", iLastEdgeGprsSupport );
   724 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_SETEDGEGPRSSUPPORT_1, "TSY: CMmPacketServiceGsmWcdmaExt::SetEdgeGprsSupport.\n\t Last Edge Support:%u\n", (TUint)iLastEdgeGprsSupport );
   719 	}
   725 	}
   720 
   726 
   721 //----------------------------------------------------------------------------
   727 //----------------------------------------------------------------------------
   722 // CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange
   728 // CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange
   723 // Completes transfer capabilities change to the Service Tsy.
   729 // Completes transfer capabilities change to the Service Tsy.
   725 //----------------------------------------------------------------------------
   731 //----------------------------------------------------------------------------
   726 //
   732 //
   727 void CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange(
   733 void CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange(
   728         CMmDataPackage* aPackage )	
   734         CMmDataPackage* aPackage )	
   729     {
   735     {
   730 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange" );
   736 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETETRANSFERCAPSCHANGE_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange" );
   731 
   737 
   732     // create temporary variable to hold the tranfer capabilities
   738     // create temporary variable to hold the tranfer capabilities
   733     TDynamicTransferCapsFlags transferCaps;
   739     TDynamicTransferCapsFlags transferCaps;
   734     
   740     
   735     // unpack the data form the adaptation layer, contains the transfer caps
   741     // unpack the data form the adaptation layer, contains the transfer caps
   736     aPackage->UnPackData( transferCaps );
   742     aPackage->UnPackData( transferCaps );
   737 
   743 
   738 TFLOGSTRING2("TSY: CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange.\n\t Dynamic Caps:%b\n", transferCaps );
   744 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETETRANSFERCAPSCHANGE_2, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteTransferCapsChange.\n\t Dynamic Caps:%u\n", (TUint)transferCaps );
   739 	
   745 	
   740     // create temporary dynamic capability variable from the member variable
   746     // create temporary dynamic capability variable from the member variable
   741     RPacketService::TDynamicCapsFlags dynamicCaps( iDynamicCaps );
   747     RPacketService::TDynamicCapsFlags dynamicCaps( iDynamicCaps );
   742 
   748 
   743     // set on/off the HSUPA dynamic transfer caps FLAG
   749     // set on/off the HSUPA dynamic transfer caps FLAG
   770 // (other items were commented in a header).
   776 // (other items were commented in a header).
   771 //----------------------------------------------------------------------------
   777 //----------------------------------------------------------------------------
   772 //
   778 //
   773 void CMmPacketServiceGsmWcdmaExt::CompleteGetStaticCaps( CMmDataPackage* aDataPackage, TInt aError  )
   779 void CMmPacketServiceGsmWcdmaExt::CompleteGetStaticCaps( CMmDataPackage* aDataPackage, TInt aError  )
   774     {
   780     {
   775 TFLOGSTRING("TSY: CMmPacketServiceGsmWcdmaExt::CompleteGetStaticCaps.");
   781 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETSERVICEGSMWCDMAEXT_COMPLETEGETSTATICCAPS_1, "TSY: CMmPacketServiceGsmWcdmaExt::CompleteGetStaticCaps.");
   776 
   782 
   777 	//Unpack necessary data from datapackage
   783 	//Unpack necessary data from datapackage
   778 	if (KErrNone == aError)
   784 	if (KErrNone == aError)
   779         { 
   785         { 
   780         RPacketService::TStaticMiscCaps staticCaps;
   786         RPacketService::TStaticMiscCaps staticCaps;