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