telephonyserverplugins/common_tsy/commontsy/src/mmpacket/cmmpacketcontextgsmwcdmaextwithdispatcher.cpp
changeset 0 3553901f7fa8
child 24 6638e7f4bd8f
child 42 3adadc800673
equal deleted inserted replaced
-1:000000000000 0:3553901f7fa8
       
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
       
     2 // All rights reserved.
       
     3 // This component and the accompanying materials are made available
       
     4 // under the terms of "Eclipse Public License v1.0"
       
     5 // which accompanies this distribution, and is available
       
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     7 //
       
     8 // Initial Contributors:
       
     9 // Nokia Corporation - initial contribution.
       
    10 //
       
    11 // Contributors:
       
    12 //
       
    13 // Description:
       
    14 //
       
    15 
       
    16 #ifdef USING_CTSY_DISPATCHER
       
    17 
       
    18 /**
       
    19  * This file contains additional function definitions for the CMmPacketContextGsmWcdmaExt class
       
    20  * in CTSY for use when the CTSY is used with the CTSY Dispatcher. 
       
    21  */
       
    22 
       
    23 // INCLUDE FILES
       
    24 
       
    25 #include "cmmpacketservicegsmwcdmaext.h"
       
    26 
       
    27 // ---------------------------------------------------------------------------
       
    28 // CMmPacketContextGsmWcdmaExt::CompleteInitialiseContextL
       
    29 // This function starts context initialisation.
       
    30 // @param aChannelId The ChannelId allocated by the LTSY.
       
    31 // @param aResult Error code from LTSY
       
    32 // ---------------------------------------------------------------------------
       
    33 //
       
    34 void CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext(const TDesC& aChannelId,  
       
    35         													const TInt aResult ) // Result
       
    36     {
       
    37 TFLOGSTRING3( "TSY: CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext. Status: aChannelId=%S, aResult=%d",
       
    38 			&aChannelId, aResult);
       
    39 
       
    40       if ( KErrNone == aResult )
       
    41         {
       
    42         iMmPacketContextTsy->CompleteNotifyStatusChange( 
       
    43             RPacketContext::EStatusInactive );
       
    44 
       
    45         if(iDataChannel != NULL)
       
    46         	{      	
       
    47         	__ASSERT_DEBUG(aChannelId.Length() <= KMaxName, User::Invariant());
       
    48         	iDataChannel->iChannelId.Copy(aChannelId.Left(KMaxName));
       
    49         	iDataChannel->iPort.Copy(iMmPacketContextTsy->ContextName());
       
    50         	iDataChannel = NULL;
       
    51         	}
       
    52 
       
    53         iIsActivateAllowed = ETrue;
       
    54         // Set Dynamic Caps
       
    55         iMmPacketServiceTsy->ActivePacketServiceExtension()->
       
    56             SetDynamicCapsFlag( RPacketService::KCapsActivate, ETrue );
       
    57         }
       
    58     else
       
    59         {
       
    60         iIsInitialiseAllowed = ETrue;
       
    61         }
       
    62 
       
    63       iMmPacketContextTsy->CompleteInitialiseContext( aResult );
       
    64 
       
    65     } // CMmPacketContextGsmWcdmaExt::CompleteInitialiseContext
       
    66 
       
    67 #endif //USING_CTSY_DISPATCHER