telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatecreatedmbms.cpp
changeset 0 3553901f7fa8
child 19 630d2f34d719
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 // State after mbms has been created, but not activated
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20  @internalComponent
       
    21 */
       
    22  
       
    23 #include <networking/umtsnifcontrolif.h>
       
    24 #include "tpdpstates.h"
       
    25 #include "spudfsmdebuglogger.h"
       
    26 #include "pdpfsmnmspace.h"
       
    27 #include "pdpfsmnmspace.h"
       
    28 #include "PDPFSM.h"
       
    29 #include "cpdpfsm.h"
       
    30 
       
    31 
       
    32 
       
    33 
       
    34 TInt TPdpStateCreatedMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
       
    35 {
       
    36 	SPUDFSMVERBOSE_FNLOG("TPdpStateCreatedMbms::Input()");
       
    37 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
       
    38 
       
    39 	switch (aOperation)
       
    40 	{
       
    41 	case SpudMan::EContextActivate: 
       
    42 		aFsm.ChangeStateToActivatingMbms();
       
    43 		EtelDriverInput(aFsm, EtelDriver::EActivateMbmsPdp);
       
    44 		return KErrNone;		
       
    45 	case SpudMan::EContextTFTModify:
       
    46 		RPacketContext::TContextStatus 		contextStatus;
       
    47 		aFsm.Get(contextStatus);
       
    48 		if (contextStatus == RPacketContext::EStatusActive)
       
    49 			{
       
    50 			aFsm.ChangeStateToChangingTFT();
       
    51 			EtelDriverInput(aFsm, EtelDriver::EChangeTft);
       
    52 			}
       
    53 		else
       
    54 			{
       
    55 			aFsm.ChangeStateToSettingTFT();
       
    56 			EtelDriverInput(aFsm, EtelDriver::ESetTft);
       
    57 			}
       
    58 		return KErrNone;
       
    59 	case SpudMan::EMbmsSessionUpdate:
       
    60 	        aFsm.ChangeStateToOpen();
       
    61 	        EtelDriverInput(aFsm, EtelDriver::ESessionUpdate);
       
    62 	        return KErrNone;
       
    63 	
       
    64 	}
       
    65 	
       
    66 	// default error handling
       
    67 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
       
    68 }
       
    69 
       
    70