telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatecreatingmbms.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 // Creating mbms context state
       
    15 // 
       
    16 //
       
    17 
       
    18 /**
       
    19  @file 
       
    20  @internalComponent
       
    21 */
       
    22  
       
    23 #include <networking/umtsnifcontrolif.h>
       
    24 #include <networking/pdpdef.h>
       
    25 #include "tpdpstates.h"
       
    26 #include "spudfsmdebuglogger.h"
       
    27 #include "pdpfsmnmspace.h"
       
    28 #include "PDPFSM.h"
       
    29 #include "cpdpfsm.h"
       
    30 
       
    31 
       
    32 TInt TPdpStateCreatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
       
    33 {
       
    34 	SPUDFSMVERBOSE_FNLOG("TPdpStateCreatingMbms::Input()");
       
    35 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
       
    36 	
       
    37 	
       
    38 	switch (aOperation)
       
    39 	{
       
    40 	case PdpFsm::EMbmsPdpContextCreated:
       
    41 		EtelDriverInput(aFsm, EtelDriver::ESessionUpdate);
       
    42 		return KErrNone;
       
    43 
       
    44 	case  SpudMan::EMbmsParameterUpdate:
       
    45 		aFsm.ChangeStateToCreatedMbms();
       
    46 		SpudManNotify(aFsm,KMbmsContextCreated, KErrNone);
       
    47 		return KErrNone;
       
    48 
       
    49 	case PdpFsm::EMbmsPdpContextCreatedFailed:
       
    50 		iErrorCode = aErrorCode;
       
    51 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
       
    52 		return KErrNone;
       
    53 
       
    54 	case PdpFsm::EContextDeletedFailed:
       
    55 		SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****"));
       
    56 		// fall through
       
    57 	case PdpFsm::EContextDeleted:
       
    58 		aFsm.ChangeStateToInitialised();
       
    59 		SpudManNotify(aFsm, KMbmsContextCreated, iErrorCode);
       
    60 		iErrorCode = KErrNone;
       
    61 		return KErrNone;
       
    62 	}
       
    63 	
       
    64 	// default error handling
       
    65 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
       
    66 }