1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-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". |
18 /** |
18 /** |
19 @file |
19 @file |
20 @internalComponent |
20 @internalComponent |
21 */ |
21 */ |
22 |
22 |
|
23 |
|
24 |
|
25 #include "OstTraceDefinitions.h" |
|
26 #ifdef OST_TRACE_COMPILER_IN_USE |
|
27 #include "tpdpstatesuspendedTraces.h" |
|
28 #endif |
|
29 |
23 #include <networking/umtsnifcontrolif.h> |
30 #include <networking/umtsnifcontrolif.h> |
24 #include "tpdpstates.h" |
31 #include "tpdpstates.h" |
25 #include "spudfsmdebuglogger.h" |
|
26 #include "pdpfsmnmspace.h" |
32 #include "pdpfsmnmspace.h" |
27 #include "PDPFSM.h" |
33 #include "PDPFSM.h" |
28 #include "cpdpfsm.h" |
34 #include "cpdpfsm.h" |
29 |
35 |
30 TInt TPdpStateSuspended::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 TInt TPdpStateSuspended::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
31 { |
37 { |
32 SPUDFSMVERBOSE_FNLOG("TPdpStateSuspended::Input()"); |
38 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESUSPENDED_INPUT_1, ">>TPdpStateSuspended::Input()"); |
33 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
39 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESUSPENDED_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
34 |
40 |
35 switch (aOperation) |
41 switch (aOperation) |
36 { |
42 { |
37 case SpudMan::EResume: |
43 case SpudMan::EResume: |
38 aFsm.ChangeStateToOpen(); |
44 aFsm.ChangeStateToOpen(); |
39 SpudManNotify(aFsm, KContextUnblockedEvent, KErrNone); |
45 SpudManNotify(aFsm, KContextUnblockedEvent, KErrNone); |
|
46 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESUSPENDED_INPUT_3, "<<TPdpStateSuspended::Input()"); |
40 return KErrNone; |
47 return KErrNone; |
41 case PdpFsm::EContextStatusChangeNetwork: |
48 case PdpFsm::EContextStatusChangeNetwork: |
42 if (aFsm.iContextStatus == RPacketContext::EStatusActive) |
49 if (aFsm.iContextStatus == RPacketContext::EStatusActive) |
43 { |
50 { |
44 aFsm.ChangeStateToOpen(); |
51 aFsm.ChangeStateToOpen(); |
45 SpudManNotify(aFsm, KContextUnblockedEvent, KErrNone); |
52 SpudManNotify(aFsm, KContextUnblockedEvent, KErrNone); |
46 //SpudManNotify (aFsm, KNetworkStatusEvent, KErrNone); |
53 //SpudManNotify (aFsm, KNetworkStatusEvent, KErrNone); |
|
54 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESUSPENDED_INPUT_4, "<<TPdpStateSuspended::Input()"); |
47 return KErrNone; |
55 return KErrNone; |
48 } |
56 } |
49 break; |
57 break; |
50 } |
58 } |
51 |
59 |
52 // default error handling |
60 // default error handling |
|
61 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESUSPENDED_INPUT_5, "<<TPdpStateSuspended::Input()"); |
53 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
62 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
54 } |
63 } |
55 |
64 |
56 |
65 |