telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstateactivatingsecondary.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    32 #include "pdpfsmnmspace.h"
    32 #include "pdpfsmnmspace.h"
    33 #include "cpdpfsm.h"
    33 #include "cpdpfsm.h"
    34 
    34 
    35 TInt TPdpStateActivatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    35 TInt TPdpStateActivatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    36 {
    36 {
    37 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_1, ">>TPdpStateActivatingSecondary::Input()");
       
    38 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
       
    39 
       
    40 	switch (aOperation)
    37 	switch (aOperation)
    41 	{
    38 	{
    42 	case PdpFsm::EPdpActivated:
    39 	case PdpFsm::EPdpActivated:
    43 		// When a secondary context is activated, the context status must be updated before sending the activated event
    40 		// When a secondary context is activated, the context status must be updated before sending the activated event
    44 		// Normally this change in status is updated by a notify context status change event
    41 		// Normally this change in status is updated by a notify context status change event
    45 		aFsm.Set(RPacketContext::EStatusActive);
    42 		aFsm.Set(RPacketContext::EStatusActive);
    46 		aFsm.ChangeStateToGettingNegQoS();  // Context was activated, but we don't necessarily have negotiated QoS yet; 
    43 		aFsm.ChangeStateToGettingNegQoS();  // Context was activated, but we don't necessarily have negotiated QoS yet; 
    47                        					    // a TSY might wait for a successfull activation to report it to Etel. 
    44                        					    // a TSY might wait for a successfull activation to report it to Etel. 
    48 		SpudManNotify (aFsm, KContextActivateEvent, KErrNone);
    45 		SpudManNotify (aFsm, KContextActivateEvent, KErrNone);
    49 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_3, "<<TPdpStateActivatingSecondary::Input()");
       
    50 		return KErrNone;
    46 		return KErrNone;
    51 	case PdpFsm::EPdpActivatedFailed:
    47 	case PdpFsm::EPdpActivatedFailed:
    52 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_4, "*** FAILURE ***");
    48 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_1, "*** PDP SECONDARY CONTEXT ACTIVATION FAILED ***");
    53 		aFsm.ChangeStateToCreatedSecondary();
    49 		aFsm.ChangeStateToCreatedSecondary();
    54 		SpudManNotify (aFsm, KContextActivateEvent, aErrorCode);
    50 		SpudManNotify (aFsm, KContextActivateEvent, aErrorCode);
    55 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_5, "<<TPdpStateActivatingSecondary::Input()");
       
    56 		return KErrNone;
    51 		return KErrNone;
    57 	// no default
    52 	// no default
    58 	}
    53 	}
    59 
    54 
    60 	// default error handling
    55 	// default error handling
    61 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_6, "<<TPdpStateActivatingSecondary::Input()");
       
    62 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    56 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    63 }
    57 }
    64 
       
    65