telephonyprotocols/csdagt/src/Nd_dlinStates.cpp
branchRCL_3
changeset 66 07a122eea281
parent 65 630d2f34d719
equal deleted inserted replaced
65:630d2f34d719 66:07a122eea281
     1 // Copyright (c) 2003-2010 Nokia Corporation and/or its subsidiary(-ies).
     1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
    17 
    17 
    18 /**
    18 /**
    19  @file Nd_dlinstates.cpp 
    19  @file Nd_dlinstates.cpp 
    20 */
    20 */
    21 
    21 
    22 
       
    23 #include "OstTraceDefinitions.h"
       
    24 #ifdef OST_TRACE_COMPILER_IN_USE
       
    25 #include "Nd_dlinStatesTraces.h"
       
    26 #endif
       
    27 
       
    28 #include "ND_DLIN.H"
    22 #include "ND_DLIN.H"
    29 #include "Nd_dlinStates.h"
    23 #include "Nd_dlinStates.h"
       
    24 #include "SLOGGER.H"
    30 #include <comms-infras/eventlogger.h>
    25 #include <comms-infras/eventlogger.h>
    31 #include <csdprog.h>
    26 #include <csdprog.h>
    32 #include "ND_DBACC.H"
    27 #include "ND_DBACC.H"
    33 #include "Nd_CallBack.h"
    28 #include "Nd_CallBack.h"
    34 
    29 
   260 	if (iCallBackTimer!=NULL)
   255 	if (iCallBackTimer!=NULL)
   261 		iCallBackTimer->Cancel();
   256 		iCallBackTimer->Cancel();
   262 	
   257 	
   263 	if(iStatus!=KErrNone)
   258 	if(iStatus!=KErrNone)
   264 		{
   259 		{
   265 		OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINANSWERING_RUNL_1, "NetDial:\tCompleted Phase Answering with Error %d", iStatus.Int());
   260 		__FLOG_STMT(_LIT(logString3,"Answering");)
       
   261 		__FLOG_STATIC2(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(KCompletedPhaseLogString()), &logString3(), iStatus.Int());
   266 		}
   262 		}
   267 	else
   263 	else
   268 		{
   264 		{
   269 		TInt err=KErrNone;
   265 		TInt err=KErrNone;
   270 		iConnectionAccepted=ETrue;
   266 		iConnectionAccepted=ETrue;
   390 /**
   386 /**
   391 Dial in open start completed.
   387 Dial in open start completed.
   392 Call ConnectionComplete() with EConnectionOpen and iStatus.Int().
   388 Call ConnectionComplete() with EConnectionOpen and iStatus.Int().
   393 */
   389 */
   394 	{
   390 	{
   395 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINOPEN_RUNL_1, "NetDial:\tConnection Open");
   391 	__FLOG_STMT(_LIT8(logString,"NetDial:\tConnection Open");)
       
   392 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString());
   396 	iSMObserver->ConnectionComplete(ECsdConnectionOpen,iStatus.Int());
   393 	iSMObserver->ConnectionComplete(ECsdConnectionOpen,iStatus.Int());
   397 	}
   394 	}
   398 
   395 
   399 CDlInDisconnect* CDlInDisconnect::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv)
   396 CDlInDisconnect* CDlInDisconnect::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv)
   400 /**
   397 /**
   479 /**
   476 /**
   480 Dial in disconnect completed.
   477 Dial in disconnect completed.
   481 Call DisconnectComplete().
   478 Call DisconnectComplete().
   482 */
   479 */
   483 	{
   480 	{
   484 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINDISCONNECT_RUNL_1, "NetDial:\tDisconnect Complete");
   481 	__FLOG_STMT(_LIT8(logString,"NetDial:\tDisconnect Complete");)
       
   482 	__FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString());
   485 	
   483 	
   486 	iSMObserver->DisconnectComplete();
   484 	iSMObserver->DisconnectComplete();
   487 	}
   485 	}
   488 
   486 
   489 CDlInHangUp* CDlInHangUp::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv)
   487 CDlInHangUp* CDlInHangUp::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv)
   610 	{
   608 	{
   611 	//update the log object
   609 	//update the log object
   612 	iNdEnv->Logger()->LogDataUpdateEvent(R_LOG_CON_DISCONNECTED, KLogDataEventTypeUid);
   610 	iNdEnv->Logger()->LogDataUpdateEvent(R_LOG_CON_DISCONNECTED, KLogDataEventTypeUid);
   613 	if(iStatus!=KErrNone)
   611 	if(iStatus!=KErrNone)
   614 		{
   612 		{
   615 		OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINHANGUP_RUNL_1, "NetDial:\tCompleted Phase Hanging Up with Error %d",iStatus.Int());
   613 		__FLOG_STMT(_LIT(logString3,"Hanging Up");)
       
   614 		__FLOG_STATIC2(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(KCompletedPhaseLogString()), &logString3(), iStatus.Int());
   616 		}
   615 		}
   617 	iSMObserver->UpdateProgress(ECsdFinishedHangUp,KErrNone);
   616 	iSMObserver->UpdateProgress(ECsdFinishedHangUp,KErrNone);
   618 	(iNdEnv->BaseEnv())->CompleteState(iStatus.Int());
   617 	(iNdEnv->BaseEnv())->CompleteState(iStatus.Int());
   619 	}
   618 	}