telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstate.cpp
changeset 73 70d75957b98f
parent 44 8b72faa1200f
equal deleted inserted replaced
69:b982c3e940f3 73:70d75957b98f
    96 TPdpState::TPdpState()
    96 TPdpState::TPdpState()
    97 #if (OST_TRACE_CATEGORY & OST_TRACE_CATEGORY_DEBUG)
    97 #if (OST_TRACE_CATEGORY & OST_TRACE_CATEGORY_DEBUG)
    98 	: iName()
    98 	: iName()
    99 #endif		
    99 #endif		
   100 {
   100 {
   101 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_CTOR_1, ">>TPdpState::TPdpState()");
       
   102 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_CTOR_2, "<<TPdpState::TPdpState()");
       
   103 }
   101 }
   104 
   102 
   105 TInt TPdpState::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt /*aErrorCode*/)
   103 TInt TPdpState::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt /*aErrorCode*/)
   106 {
   104 {
   107 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_INPUT_1, ">>TPdpState::Input()");
       
   108 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_INPUT_2, "aOperation : %d", aOperation);
       
   109 
       
   110 	if (aOperation == PdpFsm::EContextDeleted || aOperation == SpudMan::EContextDelete ||
   105 	if (aOperation == PdpFsm::EContextDeleted || aOperation == SpudMan::EContextDelete ||
   111 		(aOperation == PdpFsm::EContextStatusChangeNetwork && aFsm.iContextStatus == RPacketContext::EStatusDeleted))
   106 		(aOperation == PdpFsm::EContextStatusChangeNetwork && aFsm.iContextStatus == RPacketContext::EStatusDeleted))
   112 	{
   107 	{
   113 		aFsm.ChangeStateToClosing();
   108 		aFsm.ChangeStateToClosing();
   114 		EtelDriverCancel (aFsm);
   109 		EtelDriverCancel (aFsm);
   115 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
   110 		EtelDriverInput(aFsm, EtelDriver::EContextDelete);
   116 		return KErrNone;
   111 		return KErrNone;
   117 	}
   112 	}
   118 
   113 
   119 	OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_INPUT_3, "!!! Unhandled Operation (%S)!!!", *(LogOperation (aFsm, aOperation)));
   114 	OstTraceDefExt1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_INPUT_1, "!!! Unhandled Operation (%S)!!!", *(LogOperation (aFsm, aOperation)));
   120 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_INPUT_4, "<<TPdpState::Input()");
       
   121 	return KErrGeneral;
   115 	return KErrGeneral;
   122 }
   116 }
   123 
   117 
   124 void TPdpState::EtelDriverInput (CPdpFsm& aFsm, EtelDriver::TEtelInput aOperation)
   118 void TPdpState::EtelDriverInput (CPdpFsm& aFsm, EtelDriver::TEtelInput aOperation)
   125 {
   119 {
   126 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_ETELDRIVERINPUT_1, "EtelDriverInput : %d", aOperation);
       
   127 	aFsm.EtelInput (aOperation);
   120 	aFsm.EtelInput (aOperation);
   128 }
   121 }
   129 
   122 
   130 void TPdpState::EtelDriverCancel (CPdpFsm& aFsm)
   123 void TPdpState::EtelDriverCancel (CPdpFsm& aFsm)
   131 {
   124 {
   132 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_ETELDRIVERCANCEL_1, "EtelDriverCancel");
       
   133 	aFsm.EtelCancel();
   125 	aFsm.EtelCancel();
   134 }
   126 }
   135 
   127 
   136 void TPdpState::SpudManNotify (CPdpFsm& aFsm, TInt aNotification, TInt aParam)
   128 void TPdpState::SpudManNotify (CPdpFsm& aFsm, TInt aNotification, TInt aParam)
   137 {
   129 {
   138 	OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATE_SPUDMANNOTIFY_1, "SpudManNotify : %d", aNotification);
       
   139 	aFsm.SpudInput (aNotification, aParam);
   130 	aFsm.SpudInput (aNotification, aParam);
   140 }
   131 }
   141 
   132 
   142 const TDesC * TPdpState::LogOperation (CPdpFsm& aFsm, TInt aOperation)
   133 const TDesC * TPdpState::LogOperation (CPdpFsm& aFsm, TInt aOperation)
   143 {
   134 {