telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatestopping.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    18 /**
    18 /**
    19  @file 
    19  @file 
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
    22 
    22 
    23 
       
    24 
       
    25 #include "OstTraceDefinitions.h"
    23 #include "OstTraceDefinitions.h"
    26 #ifdef OST_TRACE_COMPILER_IN_USE
    24 #ifdef OST_TRACE_COMPILER_IN_USE
    27 #include "tpdpstatestoppingTraces.h"
    25 #include "tpdpstatestoppingTraces.h"
    28 #endif
    26 #endif
    29 
    27 
    33 #include "PDPFSM.h"
    31 #include "PDPFSM.h"
    34 #include "cpdpfsm.h"
    32 #include "cpdpfsm.h"
    35 
    33 
    36 TInt TPdpStateStopping::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    34 TInt TPdpStateStopping::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    37 {
    35 {
    38 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_1, ">>TPdpStateStopping::Input()");
       
    39 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
       
    40 
       
    41 	switch (aOperation)
    36 	switch (aOperation)
    42 	{
    37 	{
    43 	case PdpFsm::EContextDeleted:
    38 	case PdpFsm::EContextDeleted:
    44 		aFsm.ChangeStateToInitialised();
    39 		aFsm.ChangeStateToInitialised();
    45 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrGeneral);
    40 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrGeneral);
    46 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_3, "<<TPdpStateStopping::Input()");
       
    47 		return KErrNone;			
    41 		return KErrNone;			
    48 	case PdpFsm::EContextDeletedFailed:
    42 	case PdpFsm::EContextDeletedFailed:
    49 		// There isn't any corrective action that can be taken here. 
    43 		// There isn't any corrective action that can be taken here. 
    50 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_4, "**** DELETE FAILURE ****");
    44 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_1, "**** CONTEXT DELETE FAILED ****");
    51 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_5, "*** DELETE FAILURE ***");
       
    52 		aFsm.ChangeStateToInitialised();
    45 		aFsm.ChangeStateToInitialised();
    53 		EtelDriverCancel (aFsm);
    46 		EtelDriverCancel (aFsm);
    54 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrNone);
    47 		SpudManNotify (aFsm, KPrimaryContextCreated, KErrNone);
    55 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_6, "<<TPdpStateStopping::Input()");
       
    56 		return KErrNone;
    48 		return KErrNone;
    57 	case SpudMan::EContextDelete:
    49 	case SpudMan::EContextDelete:
    58 		// already doing this and don't want default action
    50 		// already doing this and don't want default action
    59 	    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_7, "<<TPdpStateStopping::Input()");
       
    60 		return KErrInUse;
    51 		return KErrInUse;
    61 	}
    52 	}
    62 
    53 
    63 	// default error handling
    54 	// default error handling
    64 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESTOPPING_INPUT_8, "<<TPdpStateStopping::Input()");
       
    65 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    55 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    66 }
    56 }
    67 
    57 
    68 
    58