33 #include "cpdpfsm.h" |
33 #include "cpdpfsm.h" |
34 #include "PDPFSM.h" |
34 #include "PDPFSM.h" |
35 |
35 |
36 TInt TPdpStateActivatingPrimary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 TInt TPdpStateActivatingPrimary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
37 { |
37 { |
38 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_1, ">>TPdpStateActivatingPrimary::Input()"); |
|
39 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_2, "aOperation : %S(%d)", *LogOperation(aFsm, aOperation), aOperation); |
|
40 |
38 |
41 switch (aOperation) |
39 switch (aOperation) |
42 { |
40 { |
43 case PdpFsm::EPdpActivated: |
41 case PdpFsm::EPdpActivated: |
44 // GuQoS assumes the primary context becomes active when created, so the context status |
42 // GuQoS assumes the primary context becomes active when created, so the context status |
45 // must be updated before sending the event |
43 // must be updated before sending the event |
46 aFsm.Set(RPacketContext::EStatusActive); |
44 aFsm.Set(RPacketContext::EStatusActive); |
47 aFsm.ChangeStateToOpen(); |
45 aFsm.ChangeStateToOpen(); |
48 SpudManNotify (aFsm, KPrimaryContextCreated, KErrNone); |
46 SpudManNotify (aFsm, KPrimaryContextCreated, KErrNone); |
49 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_3, "<<TPdpStateActivatingPrimary::Input()"); |
|
50 return KErrNone; |
47 return KErrNone; |
51 case PdpFsm::EPdpActivatedFailed: |
48 case PdpFsm::EPdpActivatedFailed: |
52 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_4, "*** FAILURE ***"); |
49 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_1, "*** PDP ACTIVATION FAILED ***"); |
53 aFsm.ChangeStateToClosing(); |
50 aFsm.ChangeStateToClosing(); |
54 |
51 |
55 SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode); |
52 SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode); |
56 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
53 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
57 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_5, "<<TPdpStateActivatingPrimary::Input()"); |
|
58 return KErrNone; |
54 return KErrNone; |
59 case SpudMan::ECancelContextCreate: |
55 case SpudMan::ECancelContextCreate: |
60 aFsm.ChangeStateToStopping(); |
56 aFsm.ChangeStateToStopping(); |
61 EtelDriverCancel(aFsm); |
57 EtelDriverCancel(aFsm); |
62 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
58 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
63 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_6, "<<TPdpStateActivatingPrimary::Input()"); |
|
64 return KErrNone; |
59 return KErrNone; |
65 // no default |
60 // no default |
66 } |
61 } |
67 |
62 |
68 // default error handling |
63 // default error handling |
69 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGPRIMARY_INPUT_7, "<<TPdpStateActivatingPrimary::Input()"); |
|
70 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
64 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
71 } |
65 } |
72 |
|
73 |
|