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