telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatecreatingmbms.cpp
branchRCL_3
changeset 19 630d2f34d719
parent 0 3553901f7fa8
child 20 07a122eea281
equal deleted inserted replaced
18:17af172ffa5f 19:630d2f34d719
     1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2008-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".
    18 /**
    18 /**
    19  @file 
    19  @file 
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
    22  
    22  
       
    23 
       
    24 
       
    25 #include "OstTraceDefinitions.h"
       
    26 #ifdef OST_TRACE_COMPILER_IN_USE
       
    27 #include "tpdpstatecreatingmbmsTraces.h"
       
    28 #endif
       
    29 
    23 #include <networking/umtsnifcontrolif.h>
    30 #include <networking/umtsnifcontrolif.h>
    24 #include <networking/pdpdef.h>
    31 #include <networking/pdpdef.h>
    25 #include "tpdpstates.h"
    32 #include "tpdpstates.h"
    26 #include "spudfsmdebuglogger.h"
       
    27 #include "pdpfsmnmspace.h"
    33 #include "pdpfsmnmspace.h"
    28 #include "PDPFSM.h"
    34 #include "PDPFSM.h"
    29 #include "cpdpfsm.h"
    35 #include "cpdpfsm.h"
    30 
    36 
    31 
    37 
    32 TInt TPdpStateCreatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    38 TInt TPdpStateCreatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    33 {
    39 {
    34 	SPUDFSMVERBOSE_FNLOG("TPdpStateCreatingMbms::Input()");
    40 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_1, ">>TPdpStateCreatingMbms::Input()");
    35 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    41 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    36 	
    42 	
    37 	
    43 	
    38 	switch (aOperation)
    44 	switch (aOperation)
    39 	{
    45 	{
    40 	case PdpFsm::EMbmsPdpContextCreated:
    46 	case PdpFsm::EMbmsPdpContextCreated:
    41 		EtelDriverInput(aFsm, EtelDriver::ESessionUpdate);
    47 		EtelDriverInput(aFsm, EtelDriver::ESessionUpdate);
       
    48 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_3, "<<TPdpStateCreatingMbms::Input()");
    42 		return KErrNone;
    49 		return KErrNone;
    43 
    50 
    44 	case  SpudMan::EMbmsParameterUpdate:
    51 	case  SpudMan::EMbmsParameterUpdate:
    45 		aFsm.ChangeStateToCreatedMbms();
    52 		aFsm.ChangeStateToCreatedMbms();
    46 		SpudManNotify(aFsm,KMbmsContextCreated, KErrNone);
    53 		SpudManNotify(aFsm,KMbmsContextCreated, KErrNone);
       
    54 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_4, "<<TPdpStateCreatingMbms::Input()");
    47 		return KErrNone;
    55 		return KErrNone;
    48 
    56 
    49 	case PdpFsm::EMbmsPdpContextCreatedFailed:
    57 	case PdpFsm::EMbmsPdpContextCreatedFailed:
    50 		iErrorCode = aErrorCode;
    58 		iErrorCode = aErrorCode;
    51 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
    59 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
       
    60 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_5, "<<TPdpStateCreatingMbms::Input()");
    52 		return KErrNone;
    61 		return KErrNone;
    53 
    62 
    54 	case PdpFsm::EContextDeletedFailed:
    63 	case PdpFsm::EContextDeletedFailed:
    55 		SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****"));
    64 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_6, "**** DELETE FAILURE ****");
    56 		// fall through
    65 		// fall through
    57 	case PdpFsm::EContextDeleted:
    66 	case PdpFsm::EContextDeleted:
    58 		aFsm.ChangeStateToInitialised();
    67 		aFsm.ChangeStateToInitialised();
    59 		SpudManNotify(aFsm, KMbmsContextCreated, iErrorCode);
    68 		SpudManNotify(aFsm, KMbmsContextCreated, iErrorCode);
    60 		iErrorCode = KErrNone;
    69 		iErrorCode = KErrNone;
       
    70 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_7, "<<TPdpStateCreatingMbms::Input()");
    61 		return KErrNone;
    71 		return KErrNone;
    62 	}
    72 	}
    63 	
    73 	
    64 	// default error handling
    74 	// default error handling
       
    75 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_8, "<<TPdpStateCreatingMbms::Input()");
    65 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    76 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    66 }
    77 }