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 "tpdpstategettingnegqosTraces.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 |
34 |
29 TInt TPdpStateGettingNegQoS::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
35 TInt TPdpStateGettingNegQoS::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
30 { |
36 { |
31 SPUDFSMVERBOSE_FNLOG("TPdpStateGettingNegQoS::Input()"); |
37 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_1, ">>TPdpStateGettingNegQoS::Input()"); |
32 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
38 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
33 |
39 |
34 switch (aOperation) |
40 switch (aOperation) |
35 { |
41 { |
36 case SpudMan::EGetNegQoS: |
42 case SpudMan::EGetNegQoS: |
37 EtelDriverInput(aFsm, EtelDriver::ENegQoSGet); |
43 EtelDriverInput(aFsm, EtelDriver::ENegQoSGet); |
|
44 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_3, "<<TPdpStateGettingNegQoS::Input()"); |
38 return KErrNone; |
45 return KErrNone; |
39 |
46 |
40 case PdpFsm::EPdpNegQoSRetrieved: |
47 case PdpFsm::EPdpNegQoSRetrieved: |
41 SPUDFSMVERBOSE_LOG(_L("*** SUCCESS ***")); |
48 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_4, "*** SUCCESS ***"); |
42 aFsm.ChangeStateToOpen(); |
49 aFsm.ChangeStateToOpen(); |
43 SpudManNotify(aFsm, KGetNegQoSEvent, KErrNone); |
50 SpudManNotify(aFsm, KGetNegQoSEvent, KErrNone); |
|
51 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_5, "<<TPdpStateGettingNegQoS::Input()"); |
44 return KErrNone; |
52 return KErrNone; |
45 |
53 |
46 case PdpFsm::EPdpNegQoSRetrievedFailed: |
54 case PdpFsm::EPdpNegQoSRetrievedFailed: |
47 SPUDFSMVERBOSE_LOG(_L("*** FAILURE ***")); |
55 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_6, "*** FAILURE ***"); |
48 // As far as everybody is concerned, the context was activated: |
56 // As far as everybody is concerned, the context was activated: |
49 // This makes it eligible for certain events. |
57 // This makes it eligible for certain events. |
50 // We have to move to Open state, so that that we can handle any operations |
58 // We have to move to Open state, so that that we can handle any operations |
51 // on the activated PDP context correctly. |
59 // on the activated PDP context correctly. |
52 aFsm.ChangeStateToOpen(); |
60 aFsm.ChangeStateToOpen(); |
53 SpudManNotify(aFsm, KGetNegQoSEvent, aErrorCode); |
61 SpudManNotify(aFsm, KGetNegQoSEvent, aErrorCode); |
|
62 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_7, "<<TPdpStateGettingNegQoS::Input()"); |
54 return KErrNone; |
63 return KErrNone; |
55 } |
64 } |
56 |
65 |
57 // default error handling |
66 // default error handling |
|
67 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEGETTINGNEGQOS_INPUT_8, "<<TPdpStateGettingNegQoS::Input()"); |
58 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
68 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
59 } |
69 } |
60 |
70 |
61 |
71 |
62 |
72 |