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 "tpdpstateclosingTraces.h" |
|
28 #endif |
|
29 |
|
30 #include <networking/umtsnifcontrolif.h> |
23 #include <networking/umtsnifcontrolif.h> |
31 #include "tpdpstates.h" |
24 #include "tpdpstates.h" |
|
25 #include "spudfsmdebuglogger.h" |
32 #include "pdpfsmnmspace.h" |
26 #include "pdpfsmnmspace.h" |
33 #include "PDPFSM.h" |
27 #include "PDPFSM.h" |
34 #include "cpdpfsm.h" |
28 #include "cpdpfsm.h" |
35 |
29 |
36 TInt TPdpStateClosing::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
30 TInt TPdpStateClosing::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
37 { |
31 { |
38 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_1, "<<TPdpStateClosing::Input()"); |
32 SPUDFSMVERBOSE_FNLOG("TPdpStateClosing::Input()"); |
39 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
33 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
40 |
34 |
41 switch (aOperation) |
35 switch (aOperation) |
42 { |
36 { |
43 case PdpFsm::EContextDeleted: |
37 case PdpFsm::EContextDeleted: |
44 aFsm.ChangeStateToInitialised(); |
38 aFsm.ChangeStateToInitialised(); |
45 SpudManNotify (aFsm, KContextDeleteEvent, KErrNone); |
39 SpudManNotify (aFsm, KContextDeleteEvent, KErrNone); |
46 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_3, ">>TPdpStateClosing::Input()"); |
|
47 return KErrNone; |
40 return KErrNone; |
48 case PdpFsm::EContextDeletedFailed: |
41 case PdpFsm::EContextDeletedFailed: |
49 // There isn't any corrective action that can be taken here. |
42 // There isn't any corrective action that can be taken here. |
50 // It is assumed when this context is used again, there will be a failure |
43 // It is assumed when this context is used again, there will be a failure |
51 // or a failure elsewhere down the line that will correct the situation, ultimately |
44 // or a failure elsewhere down the line that will correct the situation, ultimately |
52 // involving the user. FSM and ETelDriver are not in a position to take any corrective action. |
45 // involving the user. FSM and ETelDriver are not in a position to take any corrective action. |
53 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_4, "**** DELETE FAILURE ****"); |
46 SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****")); |
54 aFsm.ChangeStateToInitialised(); |
47 aFsm.ChangeStateToInitialised(); |
55 SpudManNotify (aFsm, KContextDeleteEvent, aErrorCode); |
48 SpudManNotify (aFsm, KContextDeleteEvent, aErrorCode); |
56 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_5, ">>TPdpStateClosing::Input()"); |
|
57 return KErrNone; |
49 return KErrNone; |
58 case SpudMan::EContextDelete: |
50 case SpudMan::EContextDelete: |
59 // already doing this and don't want default action |
51 // already doing this and don't want default action |
60 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_6, ">>TPdpStateClosing::Input()"); |
|
61 return KErrInUse; |
52 return KErrInUse; |
62 } |
53 } |
63 |
54 |
64 // default error handling |
55 // default error handling |
65 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECLOSING_INPUT_7, ">>TPdpStateClosing::Input()"); |
|
66 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
56 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
67 } |
57 } |
68 |
58 |
69 |
59 |