telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstateclosing.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    33 #include "PDPFSM.h"
    33 #include "PDPFSM.h"
    34 #include "cpdpfsm.h"
    34 #include "cpdpfsm.h"
    35 
    35 
    36 TInt TPdpStateClosing::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    36 TInt TPdpStateClosing::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    37 {
    37 {
    38 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_1, "<<TPdpStateClosing::Input()");
       
    39 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
       
    40 
       
    41 	switch (aOperation)
    38 	switch (aOperation)
    42 	{
    39 	{
    43 	case PdpFsm::EContextDeleted:
    40 	case PdpFsm::EContextDeleted:
    44 		aFsm.ChangeStateToInitialised();
    41 		aFsm.ChangeStateToInitialised();
    45 		SpudManNotify (aFsm, KContextDeleteEvent, KErrNone);
    42 		SpudManNotify (aFsm, KContextDeleteEvent, KErrNone);
    46 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_3, ">>TPdpStateClosing::Input()");
       
    47 		return KErrNone;			
    43 		return KErrNone;			
    48 	case PdpFsm::EContextDeletedFailed:
    44 	case PdpFsm::EContextDeletedFailed:
    49 		// There isn't any corrective action that can be taken here. 
    45 		// There isn't any corrective action that can be taken here. 
    50 		// It is assumed when this context is used again, there will be a failure 
    46 		// It is assumed when this context is used again, there will be a failure 
    51 		// or a failure elsewhere down the line that will correct the situation, ultimately
    47 		// or a failure elsewhere down the line that will correct the situation, ultimately
    52 		// involving the user. FSM and ETelDriver are not in a position to take any corrective action.
    48 		// involving the user. FSM and ETelDriver are not in a position to take any corrective action.
    53 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_4, "**** DELETE FAILURE ****");
    49 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_1, "**** CONTEXT DELETE FAILED ****");
    54 		aFsm.ChangeStateToInitialised();
    50 		aFsm.ChangeStateToInitialised();
    55 		SpudManNotify (aFsm, KContextDeleteEvent, aErrorCode);
    51 		SpudManNotify (aFsm, KContextDeleteEvent, aErrorCode);
    56 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_5, ">>TPdpStateClosing::Input()");
       
    57 		return KErrNone;			
    52 		return KErrNone;			
    58 	case SpudMan::EContextDelete:
    53 	case SpudMan::EContextDelete:
    59 		// already doing this and don't want default action
    54 		// already doing this and don't want default action
    60 	    OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_6, ">>TPdpStateClosing::Input()");
       
    61 		return KErrInUse;
    55 		return KErrInUse;
    62 	}
    56 	}
    63 
    57 
    64 	// default error handling
    58 	// default error handling
    65 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_7, ">>TPdpStateClosing::Input()");
       
    66 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    59 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    67 }
    60 }
    68 
    61 
    69 
    62