telephonyserverplugins/common_tsy/commontsy/src/mmpacket/cmmpacketcontextgsmwcdmaext.cpp
branchRCL_3
changeset 65 630d2f34d719
parent 0 3553901f7fa8
child 66 07a122eea281
child 73 70d75957b98f
equal deleted inserted replaced
61:17af172ffa5f 65:630d2f34d719
     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 // INCLUDES
    18 // INCLUDES
       
    19 
       
    20 #include "OstTraceDefinitions.h"
       
    21 #ifdef OST_TRACE_COMPILER_IN_USE
       
    22 #include "cmmpacketcontextgsmwcdmaextTraces.h"
       
    23 #endif
       
    24 
    19 #include <in_sock.h>
    25 #include <in_sock.h>
    20 #include "cmmpacketcontextgsmwcdmaext.h"
    26 #include "cmmpacketcontextgsmwcdmaext.h"
    21 #include "Cmmpacketcontexttsy.h"
    27 #include "Cmmpacketcontexttsy.h"
    22 #include "Cmmpacketcontextlist.h"
    28 #include "Cmmpacketcontextlist.h"
    23 #include "cmmpacketservicegsmwcdmaext.h"
    29 #include "cmmpacketservicegsmwcdmaext.h"
    30 
    36 
    31 CMmPacketContextGsmWcdmaExt* CMmPacketContextGsmWcdmaExt::NewL(
    37 CMmPacketContextGsmWcdmaExt* CMmPacketContextGsmWcdmaExt::NewL(
    32         CMmPacketContextTsy* const aMmPacketContextTsy, 
    38         CMmPacketContextTsy* const aMmPacketContextTsy, 
    33         CMmPacketServiceTsy* const aMmPacketServiceTsy  ) 
    39         CMmPacketServiceTsy* const aMmPacketServiceTsy  ) 
    34     {
    40     {
    35 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::NewL." );
    41 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_NEWL_1,  "TSY: CMmPacketContextGsmWcdmaExt::NewL." );
    36 
    42 
    37     CMmPacketContextGsmWcdmaExt* packetContextGsmWcdmaExt = 
    43     CMmPacketContextGsmWcdmaExt* packetContextGsmWcdmaExt = 
    38         new ( ELeave ) CMmPacketContextGsmWcdmaExt();
    44         new ( ELeave ) CMmPacketContextGsmWcdmaExt();
    39     
    45     
    40     CleanupStack::PushL( packetContextGsmWcdmaExt );
    46     CleanupStack::PushL( packetContextGsmWcdmaExt );
    57     InitInternalAttributesL();
    63     InitInternalAttributesL();
    58     }
    64     }
    59  
    65  
    60 CMmPacketContextGsmWcdmaExt::~CMmPacketContextGsmWcdmaExt()
    66 CMmPacketContextGsmWcdmaExt::~CMmPacketContextGsmWcdmaExt()
    61     {
    67     {
    62 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::~CMmPacketContextGsmWcdmaExt." );
    68 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_DTOR_1,  "TSY: CMmPacketContextGsmWcdmaExt::~CMmPacketContextGsmWcdmaExt." );
    63 
    69 
    64     TInfoName contextName;
    70     TInfoName contextName;
    65     if( iMmPacketContextTsy )
    71     if( iMmPacketContextTsy )
    66         {
    72         {
    67         contextName = iMmPacketContextTsy->ContextName();
    73         contextName = iMmPacketContextTsy->ContextName();
   155 // (other items were commented in a header).
   161 // (other items were commented in a header).
   156 // ---------------------------------------------------------------------------
   162 // ---------------------------------------------------------------------------
   157 //
   163 //
   158 TInt CMmPacketContextGsmWcdmaExt::InitialiseContextL(RPacketContext::TDataChannelV2* aDataChannel)
   164 TInt CMmPacketContextGsmWcdmaExt::InitialiseContextL(RPacketContext::TDataChannelV2* aDataChannel)
   159     {
   165     {
   160 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::InitialiseContextL." );
   166 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_INITIALISECONTEXTL_1,  "TSY: CMmPacketContextGsmWcdmaExt::InitialiseContextL." );
   161 
   167 
   162     TInt ret( KErrArgument );
   168     TInt ret( KErrArgument );
   163 
   169 
   164     if ( iIsInitialiseAllowed )
   170     if ( iIsInitialiseAllowed )
   165         {
   171         {
   189 // (other items were commented in a header).
   195 // (other items were commented in a header).
   190 // ---------------------------------------------------------------------------
   196 // ---------------------------------------------------------------------------
   191 //
   197 //
   192 void CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext(const TInt aResult) // Result
   198 void CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext(const TInt aResult) // Result
   193     {
   199     {
   194 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext." );
   200 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEINITIALISECONTEXT_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext." );
   195 
   201 
   196     if ( KErrNone == aResult )
   202     if ( KErrNone == aResult )
   197         {
   203         {
   198         iMmPacketContextTsy->CompleteNotifyStatusChange(RPacketContext::EStatusInactive );
   204         iMmPacketContextTsy->CompleteNotifyStatusChange(RPacketContext::EStatusInactive );
   199 
   205 
   224 // (other items were commented in a header).
   230 // (other items were commented in a header).
   225 // ---------------------------------------------------------------------------
   231 // ---------------------------------------------------------------------------
   226 //
   232 //
   227 TInt CMmPacketContextGsmWcdmaExt::ActivateL()
   233 TInt CMmPacketContextGsmWcdmaExt::ActivateL()
   228     {
   234     {
   229 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::ActivateL " );
   235 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_ACTIVATEL_1,  "TSY: CMmPacketContextGsmWcdmaExt::ActivateL " );
   230 
   236 
   231     TInt ret( KErrArgument );
   237     TInt ret( KErrArgument );
   232 
   238 
   233     if ( iIsActivateAllowed )
   239     if ( iIsActivateAllowed )
   234         {
   240         {
   283 //
   289 //
   284 void CMmPacketContextGsmWcdmaExt::CompleteActivate(
   290 void CMmPacketContextGsmWcdmaExt::CompleteActivate(
   285         CMmDataPackage* aDataPackage,
   291         CMmDataPackage* aDataPackage,
   286         TInt aResult ) 
   292         TInt aResult ) 
   287     {
   293     {
   288 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::CompleteActivate. Status: %d",
   294 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEACTIVATE_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteActivate. Status: %d",aResult );
   289              aResult );
       
   290 
   295 
   291     if ( KErrNone == aResult )
   296     if ( KErrNone == aResult )
   292         {
   297         {
   293         //Unpack to TPacketDataConfigBase first, determine the Extension ID and
   298         //Unpack to TPacketDataConfigBase first, determine the Extension ID and
   294         //then cast to the appropriate structure before extracting all the necessary
   299         //then cast to the appropriate structure before extracting all the necessary
   330         iMmPacketContextTsy->CompleteNotifyStatusChange( 
   335         iMmPacketContextTsy->CompleteNotifyStatusChange( 
   331             RPacketContext::EStatusActivating );
   336             RPacketContext::EStatusActivating );
   332         }
   337         }
   333     else
   338     else
   334         {
   339         {
   335 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::CompleteActivate. ErrorCause: %d",
   340 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEACTIVATE_2,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteActivate. ErrorCause: %d",aResult );
   336              aResult );
       
   337         // Re-activation is allowed because activation has not succeeded
   341         // Re-activation is allowed because activation has not succeeded
   338         iIsActivateAllowed = ETrue;
   342         iIsActivateAllowed = ETrue;
   339         }
   343         }
   340 
   344 
   341     // Set Dynamic Caps
   345     // Set Dynamic Caps
   355 // ---------------------------------------------------------------------------
   359 // ---------------------------------------------------------------------------
   356 //
   360 //
   357 void CMmPacketContextGsmWcdmaExt::CompleteActivatePhase2(  
   361 void CMmPacketContextGsmWcdmaExt::CompleteActivatePhase2(  
   358         CMmDataPackage* aDataPackage, const TInt aResult )
   362         CMmDataPackage* aDataPackage, const TInt aResult )
   359     {
   363     {
   360 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::CompleteActivatePhase2. Status: %d", aResult );
   364 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEACTIVATEPHASE2_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteActivatePhase2. Status: %d", aResult );
   361 
   365 
   362     if ( KErrNone == aResult )
   366     if ( KErrNone == aResult )
   363         {
   367         {
   364         //Unpack to TPacketDataConfigBase first, determine the Extension ID and
   368         //Unpack to TPacketDataConfigBase first, determine the Extension ID and
   365         //then cast to the appropriate structure before extracting all the necessary
   369         //then cast to the appropriate structure before extracting all the necessary
   427 // (other items were commented in a header).
   431 // (other items were commented in a header).
   428 // ---------------------------------------------------------------------------
   432 // ---------------------------------------------------------------------------
   429 //
   433 //
   430 TInt CMmPacketContextGsmWcdmaExt::DeactivateL()
   434 TInt CMmPacketContextGsmWcdmaExt::DeactivateL()
   431     {
   435     {
   432 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::DeactivateL." );
   436 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_DEACTIVATEL_1,  "TSY: CMmPacketContextGsmWcdmaExt::DeactivateL." );
   433 
   437 
   434     TInt ret( KErrArgument );
   438     TInt ret( KErrArgument );
   435     //zero length
   439     //zero length
   436     TInfoName contextName = iMmPacketContextTsy->ContextName();
   440     TInfoName contextName = iMmPacketContextTsy->ContextName();
   437 	if ( contextName.Compare( KNullDesC ) != 0 )
   441 	if ( contextName.Compare( KNullDesC ) != 0 )
   457 // ---------------------------------------------------------------------------
   461 // ---------------------------------------------------------------------------
   458 //
   462 //
   459 void CMmPacketContextGsmWcdmaExt::CompleteDeactivate( 
   463 void CMmPacketContextGsmWcdmaExt::CompleteDeactivate( 
   460         const TInt aResult )
   464         const TInt aResult )
   461     {
   465     {
   462 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::CompleteDeactivate." );
   466 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEDEACTIVATE_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteDeactivate." );
   463 
   467 
   464     if ( KErrNone == aResult )
   468     if ( KErrNone == aResult )
   465         {
   469         {
   466         
   470         
   467         // Notify status change
   471         // Notify status change
   485 // (other items were commented in a header).
   489 // (other items were commented in a header).
   486 // ---------------------------------------------------------------------------
   490 // ---------------------------------------------------------------------------
   487 //
   491 //
   488 TInt CMmPacketContextGsmWcdmaExt::DeleteL()
   492 TInt CMmPacketContextGsmWcdmaExt::DeleteL()
   489     {
   493     {
   490 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::DeleteL." );
   494 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_DELETEL_1,  "TSY: CMmPacketContextGsmWcdmaExt::DeleteL." );
   491 
   495 
   492     TInt ret( KErrNotReady );
   496     TInt ret( KErrNotReady );
   493 
   497 
   494     if ( RPacketContext::EStatusUnknown != 
   498     if ( RPacketContext::EStatusUnknown != 
   495             iMmPacketContextTsy->ContextStatus() )
   499             iMmPacketContextTsy->ContextStatus() )
   514 // ---------------------------------------------------------------------------
   518 // ---------------------------------------------------------------------------
   515 //
   519 //
   516 void CMmPacketContextGsmWcdmaExt::CompleteDelete( 
   520 void CMmPacketContextGsmWcdmaExt::CompleteDelete( 
   517 		TInt const aResult )
   521 		TInt const aResult )
   518     {
   522     {
   519 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::CompleteDelete." );
   523 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEDELETE_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteDelete." );
   520 
   524 
   521     if( KErrNone == aResult )
   525     if( KErrNone == aResult )
   522         {
   526         {
   523         iContextStatusBeforeDeactivation = RPacketContext::EStatusDeleted;
   527         iContextStatusBeforeDeactivation = RPacketContext::EStatusDeleted;
   524 
   528 
   546 // ---------------------------------------------------------------------------
   550 // ---------------------------------------------------------------------------
   547 //
   551 //
   548 TInt CMmPacketContextGsmWcdmaExt::GetConfig( 
   552 TInt CMmPacketContextGsmWcdmaExt::GetConfig( 
   549 		TPacketDataConfigBase* const aConfig )
   553 		TPacketDataConfigBase* const aConfig )
   550     {
   554     {
   551 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::GetConfig." );
   555 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_GETCONFIG_1,  "TSY: CMmPacketContextGsmWcdmaExt::GetConfig." );
   552 
   556 
   553     TInt ret( KErrNone );
   557     TInt ret( KErrNone );
   554 
   558 
   555     // Check that the mode given in aConfig is GPRS
   559     // Check that the mode given in aConfig is GPRS
   556     if ( TPacketDataConfigBase::KConfigGPRS == aConfig->ExtensionId() ||
   560     if ( TPacketDataConfigBase::KConfigGPRS == aConfig->ExtensionId() ||
   600 // (other items were commented in a header).
   604 // (other items were commented in a header).
   601 // ---------------------------------------------------------------------------
   605 // ---------------------------------------------------------------------------
   602 //
   606 //
   603 TInt CMmPacketContextGsmWcdmaExt::GetDataVolumeTransferredL()
   607 TInt CMmPacketContextGsmWcdmaExt::GetDataVolumeTransferredL()
   604     {
   608     {
   605 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::GetDataVolumeTransferredL." );
   609 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_GETDATAVOLUMETRANSFERREDL_1,  "TSY: CMmPacketContextGsmWcdmaExt::GetDataVolumeTransferredL." );
   606 
   610 
   607     TInt ret( KErrNone );
   611     TInt ret( KErrNone );
   608     TInfoName contextName = iMmPacketContextTsy->ContextName();
   612     TInfoName contextName = iMmPacketContextTsy->ContextName();
   609     
   613     
   610 	if ( contextName.Compare( KNullDesC ) != 0 )
   614 	if ( contextName.Compare( KNullDesC ) != 0 )
   643 
   647 
   644     else
   648     else
   645         {
   649         {
   646         errorValue = KErrGeneral;
   650         errorValue = KErrGeneral;
   647         }
   651         }
   648 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::CompleteGetDataVolumeTransferred. Error Value:%d",
   652 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETEGETDATAVOLUMETRANSFERRED_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteGetDataVolumeTransferred. Error Value:%d",errorValue );
   649                 errorValue );
       
   650 
   653 
   651     iMmPacketContextTsy->CompleteGetDataVolumeTransferred( errorValue );
   654     iMmPacketContextTsy->CompleteGetDataVolumeTransferred( errorValue );
   652 
   655 
   653     }
   656     }
   654 
   657 
   660 // ---------------------------------------------------------------------------
   663 // ---------------------------------------------------------------------------
   661 //
   664 //
   662 TInt CMmPacketContextGsmWcdmaExt::NotifyConfigChanged(
   665 TInt CMmPacketContextGsmWcdmaExt::NotifyConfigChanged(
   663         TPacketDataConfigBase& aConfig )
   666         TPacketDataConfigBase& aConfig )
   664     {
   667     {
   665 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::NotifyConfigChanged." );
   668 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_NOTIFYCONFIGCHANGED_1,  "TSY: CMmPacketContextGsmWcdmaExt::NotifyConfigChanged." );
   666 
   669 
   667     TInt ret( KErrNone );
   670     TInt ret( KErrNone );
   668 
   671 
   669     // Check that used mode is GPRS
   672     // Check that used mode is GPRS
   670     if ( ( TPacketDataConfigBase::KConfigGPRS != aConfig.ExtensionId() ) &&
   673     if ( ( TPacketDataConfigBase::KConfigGPRS != aConfig.ExtensionId() ) &&
   682 // (other items were commented in a header).
   685 // (other items were commented in a header).
   683 // ---------------------------------------------------------------------------
   686 // ---------------------------------------------------------------------------
   684 //
   687 //
   685 void CMmPacketContextGsmWcdmaExt::CompleteNotifyConfigChanged()
   688 void CMmPacketContextGsmWcdmaExt::CompleteNotifyConfigChanged()
   686     {
   689     {
   687 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::CompleteNotifyConfigChanged." );
   690 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETENOTIFYCONFIGCHANGED_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteNotifyConfigChanged." );
   688 
   691 
   689     if ( NULL != iConfig )
   692     if ( NULL != iConfig )
   690         {
   693         {
   691         // Check that the configuration has really changed
   694         // Check that the configuration has really changed
   692         if ( iNotifyConfig.iPdpType != iConfig->iPdpType ||
   695         if ( iNotifyConfig.iPdpType != iConfig->iPdpType ||
   715 // ---------------------------------------------------------------------------
   718 // ---------------------------------------------------------------------------
   716 //
   719 //
   717 TInt CMmPacketContextGsmWcdmaExt::SetConfigL( 
   720 TInt CMmPacketContextGsmWcdmaExt::SetConfigL( 
   718 		TPacketDataConfigBase* const aConfig )
   721 		TPacketDataConfigBase* const aConfig )
   719     {
   722     {
   720 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::SetConfigL." );
   723 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_SETCONFIGL_1,  "TSY: CMmPacketContextGsmWcdmaExt::SetConfigL." );
   721 
   724 
   722     TInt ret( KErrNotSupported );
   725     TInt ret( KErrNotSupported );
   723 
   726 
   724 	TInfoName contextName = iMmPacketContextTsy->ContextName();
   727 	TInfoName contextName = iMmPacketContextTsy->ContextName();
   725 	if ( contextName.Compare( KNullDesC ) != 0 )
   728 	if ( contextName.Compare( KNullDesC ) != 0 )
   742                     }
   745                     }
   743 
   746 
   744                  // Temporary store the configGPRS
   747                  // Temporary store the configGPRS
   745                 *iTempConfig = configGPRS;
   748                 *iTempConfig = configGPRS;
   746 
   749 
   747 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::SetConfigL. NWIContext: %d", configGPRS.iNWIContext );
   750 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_SETCONFIGL_2,  "TSY: CMmPacketContextGsmWcdmaExt::SetConfigL. NWIContext: %d", configGPRS.iNWIContext );
   748 
   751 
   749                 TInfoName contextName = iMmPacketContextTsy->ContextName();
   752                 TInfoName contextName = iMmPacketContextTsy->ContextName();
   750                 CMmDataPackage data;
   753                 CMmDataPackage data;
   751                 data.PackData( &( *aConfig ), &contextName );
   754                 data.PackData( &( *aConfig ), &contextName );
   752 
   755 
   825 // ---------------------------------------------------------------------------
   828 // ---------------------------------------------------------------------------
   826 //
   829 //
   827 void CMmPacketContextGsmWcdmaExt::CompleteSetConfig( 
   830 void CMmPacketContextGsmWcdmaExt::CompleteSetConfig( 
   828 		const TInt aResult )
   831 		const TInt aResult )
   829     {
   832     {
   830 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::CompleteSetConfig. aStatus:%d",
   833 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_COMPLETESETCONFIG_1,  "TSY: CMmPacketContextGsmWcdmaExt::CompleteSetConfig. aStatus:%d",aResult );
   831                 aResult );
       
   832 
   834 
   833 
   835 
   834     if ( NULL != iTempConfig )
   836     if ( NULL != iTempConfig )
   835         {        
   837         {        
   836             iConfig->iProtocolConfigOption.iMiscBuffer.Zero();
   838             iConfig->iProtocolConfigOption.iMiscBuffer.Zero();
   883         TInfoName& aContextName,
   885         TInfoName& aContextName,
   884         RPacketContext::TProtocolType& aPdpType,    
   886         RPacketContext::TProtocolType& aPdpType,    
   885         TBool& aContextType,                       
   887         TBool& aContextType,                       
   886         TInfoName& aPrimaryContextName )
   888         TInfoName& aPrimaryContextName )
   887     {
   889     {
   888 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::GetConfigurationData." );
   890 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_GETCONFIGURATIONDATA_1,  "TSY: CMmPacketContextGsmWcdmaExt::GetConfigurationData." );
   889 
   891 
   890     TInt ret( KErrNotReady );
   892     TInt ret( KErrNotReady );
   891 
   893 
   892 	TInfoName contextName = iMmPacketContextTsy->ContextName();
   894 	TInfoName contextName = iMmPacketContextTsy->ContextName();
   893 	if ( contextName.Compare( KNullDesC ) != 0 )
   895 	if ( contextName.Compare( KNullDesC ) != 0 )
   918         ( RPacketContext::TPacketFilterV2Pckg* ) aPacketFilter;
   920         ( RPacketContext::TPacketFilterV2Pckg* ) aPacketFilter;
   919 
   921 
   920     RPacketContext::TPacketFilterV2& contextFilter =
   922     RPacketContext::TPacketFilterV2& contextFilter =
   921         ( *contextFilterPckg )();
   923         ( *contextFilterPckg )();
   922 
   924 
   923 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::AddPacketFilterL contextFilterId: %d", contextFilter.iId );
   925 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_ADDPACKETFILTERL_1,  "TSY: CMmPacketContextGsmWcdmaExt::AddPacketFilterL contextFilterId: %d", contextFilter.iId );
   924 
   926 
   925     // Check out Tft operation
   927     // Check out Tft operation
   926     iFilterStatus = EAddPacketFilterStatusAdd;
   928     iFilterStatus = EAddPacketFilterStatusAdd;
   927     for ( TInt i = 0 ; i < iFilterArray->Count() ; i++ )
   929     for ( TInt i = 0 ; i < iFilterArray->Count() ; i++ )
   928         {
   930         {
  1140 // ---------------------------------------------------------------------------
  1142 // ---------------------------------------------------------------------------
  1141 //
  1143 //
  1142 TInt CMmPacketContextGsmWcdmaExt::RemovePacketFilter( 
  1144 TInt CMmPacketContextGsmWcdmaExt::RemovePacketFilter( 
  1143 			const TInt aID )
  1145 			const TInt aID )
  1144     {
  1146     {
  1145 TFLOGSTRING2( "TSY: CMmPacketContextGsmWcdmaExt::RemovePacketFilter. FilterId:%d", aID );
  1147 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_REMOVEPACKETFILTER_1,  "TSY: CMmPacketContextGsmWcdmaExt::RemovePacketFilter. FilterId:%d", aID );
  1146 
  1148 
  1147     TInt ret( KErrArgument );
  1149     TInt ret( KErrArgument );
  1148 
  1150 
  1149     if ( EAddPacketFilterStatusUnknown == iPrevFilterStatus ||
  1151     if ( EAddPacketFilterStatusUnknown == iPrevFilterStatus ||
  1150         EAddPacketFilterStatusRemove == iPrevFilterStatus )
  1152         EAddPacketFilterStatusRemove == iPrevFilterStatus )
  1215 // (other items were commented in a header).
  1217 // (other items were commented in a header).
  1216 // ---------------------------------------------------------------------------
  1218 // ---------------------------------------------------------------------------
  1217 //
  1219 //
  1218 TInt CMmPacketContextGsmWcdmaExt::ModifyActiveContextL()
  1220 TInt CMmPacketContextGsmWcdmaExt::ModifyActiveContextL()
  1219     {
  1221     {
  1220 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::ModifyActiveContextL." );
  1222 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_MODIFYACTIVECONTEXTL_1,  "TSY: CMmPacketContextGsmWcdmaExt::ModifyActiveContextL." );
  1221 
  1223 
  1222     TInt ret( KErrArgument );
  1224     TInt ret( KErrArgument );
  1223     
  1225     
  1224     TPacketFilterFilterOperation tftOperation( EDeletePacketFilters );
  1226     TPacketFilterFilterOperation tftOperation( EDeletePacketFilters );
  1225 
  1227 
  1608 // ---------------------------------------------------------------------------
  1610 // ---------------------------------------------------------------------------
  1609 //
  1611 //
  1610 TInt CMmPacketContextGsmWcdmaExt::GetDnsInfoEtel(
  1612 TInt CMmPacketContextGsmWcdmaExt::GetDnsInfoEtel(
  1611             TDes8* const aDnsInfo )
  1613             TDes8* const aDnsInfo )
  1612     {
  1614     {
  1613 TFLOGSTRING( "TSY: CMmPacketContextGsmWcdmaExt::GetDnsInfoEtel." );
  1615 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CMMPACKETCONTEXTGSMWCDMAEXT_GETDNSINFOETEL_1,  "TSY: CMmPacketContextGsmWcdmaExt::GetDnsInfoEtel." );
  1614 
  1616 
  1615     // Unpack the aDnsInfo
  1617     // Unpack the aDnsInfo
  1616     RPacketContext::TTDnsInfoV2Pckg* dnsInfoPckg =
  1618     RPacketContext::TTDnsInfoV2Pckg* dnsInfoPckg =
  1617         ( RPacketContext::TTDnsInfoV2Pckg* ) aDnsInfo;
  1619         ( RPacketContext::TTDnsInfoV2Pckg* ) aDnsInfo;
  1618     RPacketContext::TDnsInfoV2& dnsInfo = ( *dnsInfoPckg )();
  1620     RPacketContext::TDnsInfoV2& dnsInfo = ( *dnsInfoPckg )();