33 #include "PDPFSM.h" |
33 #include "PDPFSM.h" |
34 #include "cpdpfsm.h" |
34 #include "cpdpfsm.h" |
35 |
35 |
36 TInt TPdpStateCreatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 TInt TPdpStateCreatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
37 { |
37 { |
38 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_1, ">>TPdpStateCreatingSecondary::Input()"); |
|
39 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
|
40 |
|
41 switch (aOperation) |
38 switch (aOperation) |
42 { |
39 { |
43 case PdpFsm::E2ryPdpContextCreated: |
40 case PdpFsm::E2ryPdpContextCreated: |
44 aFsm.ChangeStateToCreatedSecondary(); |
41 aFsm.ChangeStateToCreatedSecondary(); |
45 SpudManNotify(aFsm, KSecondaryContextCreated, KErrNone); |
42 SpudManNotify(aFsm, KSecondaryContextCreated, KErrNone); |
46 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_3, "<<TPdpStateCreatingSecondary::Input()"); |
|
47 return KErrNone; |
43 return KErrNone; |
48 case PdpFsm::E2ryPdpContextCreatedFailed: |
44 case PdpFsm::E2ryPdpContextCreatedFailed: |
49 iErrorCode = aErrorCode; |
45 iErrorCode = aErrorCode; |
50 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
46 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
51 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_4, "<<TPdpStateCreatingSecondary::Input()"); |
47 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_1, "**** SECONDARY PDP CONTEXT CREATE FAILED ****"); |
52 return KErrNone; |
48 return KErrNone; |
53 |
49 |
54 case PdpFsm::EContextDeletedFailed: |
50 case PdpFsm::EContextDeletedFailed: |
55 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_5, "**** DELETE FAILURE ****"); |
51 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_2, "**** CONTEXT DELETE FAILED ****"); |
56 // fall through |
52 // fall through |
57 case PdpFsm::EContextDeleted: |
53 case PdpFsm::EContextDeleted: |
58 aFsm.ChangeStateToInitialised(); |
54 aFsm.ChangeStateToInitialised(); |
59 SpudManNotify(aFsm, KSecondaryContextCreated, iErrorCode); |
55 SpudManNotify(aFsm, KSecondaryContextCreated, iErrorCode); |
60 iErrorCode = KErrNone; |
56 iErrorCode = KErrNone; |
61 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_6, "<<TPdpStateCreatingSecondary::Input()"); |
|
62 return KErrNone; |
57 return KErrNone; |
63 } |
58 } |
64 |
59 |
65 // default error handling |
60 // default error handling |
66 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_7, "<<TPdpStateCreatingSecondary::Input()"); |
|
67 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
61 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
68 } |
62 } |
69 |
63 |