equal
deleted
inserted
replaced
1 // Copyright (c) 2003-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2003-2010 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 |
22 #include "ND_DLIN.H" |
28 #include "ND_DLIN.H" |
23 #include "Nd_dlinStates.h" |
29 #include "Nd_dlinStates.h" |
24 #include "SLOGGER.H" |
|
25 #include <comms-infras/eventlogger.h> |
30 #include <comms-infras/eventlogger.h> |
26 #include <csdprog.h> |
31 #include <csdprog.h> |
27 #include "ND_DBACC.H" |
32 #include "ND_DBACC.H" |
28 #include "Nd_CallBack.h" |
33 #include "Nd_CallBack.h" |
29 |
34 |
255 if (iCallBackTimer!=NULL) |
260 if (iCallBackTimer!=NULL) |
256 iCallBackTimer->Cancel(); |
261 iCallBackTimer->Cancel(); |
257 |
262 |
258 if(iStatus!=KErrNone) |
263 if(iStatus!=KErrNone) |
259 { |
264 { |
260 __FLOG_STMT(_LIT(logString3,"Answering");) |
265 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINANSWERING_RUNL_1, "NetDial:\tCompleted Phase Answering with Error %d", iStatus.Int()); |
261 __FLOG_STATIC2(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(KCompletedPhaseLogString()), &logString3(), iStatus.Int()); |
|
262 } |
266 } |
263 else |
267 else |
264 { |
268 { |
265 TInt err=KErrNone; |
269 TInt err=KErrNone; |
266 iConnectionAccepted=ETrue; |
270 iConnectionAccepted=ETrue; |
386 /** |
390 /** |
387 Dial in open start completed. |
391 Dial in open start completed. |
388 Call ConnectionComplete() with EConnectionOpen and iStatus.Int(). |
392 Call ConnectionComplete() with EConnectionOpen and iStatus.Int(). |
389 */ |
393 */ |
390 { |
394 { |
391 __FLOG_STMT(_LIT8(logString,"NetDial:\tConnection Open");) |
395 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINOPEN_RUNL_1, "NetDial:\tConnection Open"); |
392 __FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString()); |
|
393 iSMObserver->ConnectionComplete(ECsdConnectionOpen,iStatus.Int()); |
396 iSMObserver->ConnectionComplete(ECsdConnectionOpen,iStatus.Int()); |
394 } |
397 } |
395 |
398 |
396 CDlInDisconnect* CDlInDisconnect::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv) |
399 CDlInDisconnect* CDlInDisconnect::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv) |
397 /** |
400 /** |
476 /** |
479 /** |
477 Dial in disconnect completed. |
480 Dial in disconnect completed. |
478 Call DisconnectComplete(). |
481 Call DisconnectComplete(). |
479 */ |
482 */ |
480 { |
483 { |
481 __FLOG_STMT(_LIT8(logString,"NetDial:\tDisconnect Complete");) |
484 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINDISCONNECT_RUNL_1, "NetDial:\tDisconnect Complete"); |
482 __FLOG_STATIC(KNetDialLogFolder(),KNetDialLogFile(),logString()); |
|
483 |
485 |
484 iSMObserver->DisconnectComplete(); |
486 iSMObserver->DisconnectComplete(); |
485 } |
487 } |
486 |
488 |
487 CDlInHangUp* CDlInHangUp::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv) |
489 CDlInHangUp* CDlInHangUp::NewL(MAgentStateMachineEnv& aSMObserver, MNetdialEnv& aNdEnv) |
608 { |
610 { |
609 //update the log object |
611 //update the log object |
610 iNdEnv->Logger()->LogDataUpdateEvent(R_LOG_CON_DISCONNECTED, KLogDataEventTypeUid); |
612 iNdEnv->Logger()->LogDataUpdateEvent(R_LOG_CON_DISCONNECTED, KLogDataEventTypeUid); |
611 if(iStatus!=KErrNone) |
613 if(iStatus!=KErrNone) |
612 { |
614 { |
613 __FLOG_STMT(_LIT(logString3,"Hanging Up");) |
615 OstTraceDef1(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, CDLINHANGUP_RUNL_1, "NetDial:\tCompleted Phase Hanging Up with Error %d",iStatus.Int()); |
614 __FLOG_STATIC2(KNetDialLogFolder(),KNetDialLogFile(),TRefByValue<const TDesC>(KCompletedPhaseLogString()), &logString3(), iStatus.Int()); |
|
615 } |
616 } |
616 iSMObserver->UpdateProgress(ECsdFinishedHangUp,KErrNone); |
617 iSMObserver->UpdateProgress(ECsdFinishedHangUp,KErrNone); |
617 (iNdEnv->BaseEnv())->CompleteState(iStatus.Int()); |
618 (iNdEnv->BaseEnv())->CompleteState(iStatus.Int()); |
618 } |
619 } |