telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatestopping.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) 2004-2009 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2004-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 "tpdpstatestoppingTraces.h"
       
    28 #endif
       
    29 
    23 #include <networking/umtsnifcontrolif.h>
    30 #include <networking/umtsnifcontrolif.h>
    24 #include "tpdpstates.h"
    31 #include "tpdpstates.h"
    25 #include "spudfsmdebuglogger.h"
       
    26 #include "pdpfsmnmspace.h"
    32 #include "pdpfsmnmspace.h"
    27 #include "PDPFSM.h"
    33 #include "PDPFSM.h"
    28 #include "cpdpfsm.h"
    34 #include "cpdpfsm.h"
    29 
    35 
    30 TInt TPdpStateStopping::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    36 TInt TPdpStateStopping::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    31 {
    37 {
    32 	SPUDFSMVERBOSE_FNLOG("TPdpStateStopping::Input()");
    38 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_1, ">>TPdpStateStopping::Input()");
    33 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    39 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    34 
    40 
    35 	switch (aOperation)
    41 	switch (aOperation)
    36 	{
    42 	{
    37 	case PdpFsm::EContextDeleted:
    43 	case PdpFsm::EContextDeleted:
    38 		aFsm.ChangeStateToInitialised();
    44 		aFsm.ChangeStateToInitialised();
    39 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrGeneral);
    45 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrGeneral);
       
    46 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_3, "<<TPdpStateStopping::Input()");
    40 		return KErrNone;			
    47 		return KErrNone;			
    41 	case PdpFsm::EContextDeletedFailed:
    48 	case PdpFsm::EContextDeletedFailed:
    42 		// There isn't any corrective action that can be taken here. 
    49 		// There isn't any corrective action that can be taken here. 
    43 		SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****"));
    50 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_4, "**** DELETE FAILURE ****");
    44 		SPUDFSM_LOG(_L("*** DELETE FAILURE ***"));
    51 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_5, "*** DELETE FAILURE ***");
    45 		aFsm.ChangeStateToInitialised();
    52 		aFsm.ChangeStateToInitialised();
    46 		EtelDriverCancel (aFsm);
    53 		EtelDriverCancel (aFsm);
    47 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrNone);
    54 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrNone);
       
    55 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_6, "<<TPdpStateStopping::Input()");
    48 		return KErrNone;
    56 		return KErrNone;
    49 	case SpudMan::EContextDelete:
    57 	case SpudMan::EContextDelete:
    50 		// already doing this and don't want default action
    58 		// already doing this and don't want default action
       
    59 	    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_7, "<<TPdpStateStopping::Input()");
    51 		return KErrInUse;
    60 		return KErrInUse;
    52 	}
    61 	}
    53 
    62 
    54 	// default error handling
    63 	// default error handling
       
    64 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_8, "<<TPdpStateStopping::Input()");
    55 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    65 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    56 }
    66 }
    57 
    67 
    58 
    68