telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstategettingnegqos.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    17 
    17 
    18 /**
    18 /**
    19  @file 
    19  @file 
    20  @internalComponent
    20  @internalComponent
    21 */
    21 */
    22  
       
    23 
       
    24 
    22 
    25 #include "OstTraceDefinitions.h"
    23 #include "OstTraceDefinitions.h"
    26 #ifdef OST_TRACE_COMPILER_IN_USE
    24 #ifdef OST_TRACE_COMPILER_IN_USE
    27 #include "tpdpstategettingnegqosTraces.h"
    25 #include "tpdpstategettingnegqosTraces.h"
    28 #endif
    26 #endif
    32 #include "pdpfsmnmspace.h"
    30 #include "pdpfsmnmspace.h"
    33 #include "cpdpfsm.h"
    31 #include "cpdpfsm.h"
    34 
    32 
    35 TInt TPdpStateGettingNegQoS::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    33 TInt TPdpStateGettingNegQoS::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    36     {
    34     {
    37 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_1, ">>TPdpStateGettingNegQoS::Input()");
       
    38 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
       
    39 
       
    40 	switch (aOperation)
    35 	switch (aOperation)
    41 	    {
    36 	    {
    42     	case SpudMan::EGetNegQoS:
    37     	case SpudMan::EGetNegQoS:
    43     		EtelDriverInput(aFsm, EtelDriver::ENegQoSGet);
    38     		EtelDriverInput(aFsm, EtelDriver::ENegQoSGet);
    44     		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_3, "<<TPdpStateGettingNegQoS::Input()");
       
    45     		return KErrNone;
    39     		return KErrNone;
    46     		
    40     		
    47     	case PdpFsm::EPdpNegQoSRetrieved:
    41     	case PdpFsm::EPdpNegQoSRetrieved:
    48     		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_4, "*** SUCCESS ***");
       
    49     		aFsm.ChangeStateToOpen();
    42     		aFsm.ChangeStateToOpen();
    50     		SpudManNotify(aFsm, KGetNegQoSEvent, KErrNone);
    43     		SpudManNotify(aFsm, KGetNegQoSEvent, KErrNone);
    51     		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_5, "<<TPdpStateGettingNegQoS::Input()");
       
    52     		return KErrNone;
    44     		return KErrNone;
    53     		
    45     		
    54     	case PdpFsm::EPdpNegQoSRetrievedFailed:
    46     	case PdpFsm::EPdpNegQoSRetrievedFailed:
    55     		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_6, "*** FAILURE ***");
    47     		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_1, "*** PDP NEGOTIATED QOS RETRIEVE FAILED ***");
    56     		// As far as everybody is concerned, the context was activated:
    48     		// As far as everybody is concerned, the context was activated:
    57     		// This makes it eligible for certain events. 
    49     		// This makes it eligible for certain events. 
    58     		// We have to move to Open state, so that that we can handle any operations
    50     		// We have to move to Open state, so that that we can handle any operations
    59     		// on the activated PDP context correctly.
    51     		// on the activated PDP context correctly.
    60     		aFsm.ChangeStateToOpen(); 
    52     		aFsm.ChangeStateToOpen(); 
    61     		SpudManNotify(aFsm, KGetNegQoSEvent, aErrorCode);
    53     		SpudManNotify(aFsm, KGetNegQoSEvent, aErrorCode);
    62     		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_7, "<<TPdpStateGettingNegQoS::Input()");
       
    63     		return KErrNone;
    54     		return KErrNone;
    64     	}
    55     	}
    65 	
    56 	
    66 	// default error handling
    57 	// default error handling
    67 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_8, "<<TPdpStateGettingNegQoS::Input()");
       
    68 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    58 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    69     }
    59     }
    70 
       
    71 
       
    72