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