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 "tpdpstatecreatingmbmsTraces.h" |
|
28 #endif |
|
29 |
|
30 #include <networking/umtsnifcontrolif.h> |
23 #include <networking/umtsnifcontrolif.h> |
31 #include <networking/pdpdef.h> |
24 #include <networking/pdpdef.h> |
32 #include "tpdpstates.h" |
25 #include "tpdpstates.h" |
|
26 #include "spudfsmdebuglogger.h" |
33 #include "pdpfsmnmspace.h" |
27 #include "pdpfsmnmspace.h" |
34 #include "PDPFSM.h" |
28 #include "PDPFSM.h" |
35 #include "cpdpfsm.h" |
29 #include "cpdpfsm.h" |
36 |
30 |
37 |
31 |
38 TInt TPdpStateCreatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
32 TInt TPdpStateCreatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
39 { |
33 { |
40 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_1, ">>TPdpStateCreatingMbms::Input()"); |
34 SPUDFSMVERBOSE_FNLOG("TPdpStateCreatingMbms::Input()"); |
41 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
35 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
42 |
36 |
43 |
37 |
44 switch (aOperation) |
38 switch (aOperation) |
45 { |
39 { |
46 case PdpFsm::EMbmsPdpContextCreated: |
40 case PdpFsm::EMbmsPdpContextCreated: |
47 EtelDriverInput(aFsm, EtelDriver::ESessionUpdate); |
41 EtelDriverInput(aFsm, EtelDriver::ESessionUpdate); |
48 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_3, "<<TPdpStateCreatingMbms::Input()"); |
|
49 return KErrNone; |
42 return KErrNone; |
50 |
43 |
51 case SpudMan::EMbmsParameterUpdate: |
44 case SpudMan::EMbmsParameterUpdate: |
52 aFsm.ChangeStateToCreatedMbms(); |
45 aFsm.ChangeStateToCreatedMbms(); |
53 SpudManNotify(aFsm,KMbmsContextCreated, KErrNone); |
46 SpudManNotify(aFsm,KMbmsContextCreated, KErrNone); |
54 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_4, "<<TPdpStateCreatingMbms::Input()"); |
|
55 return KErrNone; |
47 return KErrNone; |
56 |
48 |
57 case PdpFsm::EMbmsPdpContextCreatedFailed: |
49 case PdpFsm::EMbmsPdpContextCreatedFailed: |
58 iErrorCode = aErrorCode; |
50 iErrorCode = aErrorCode; |
59 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
51 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
60 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_5, "<<TPdpStateCreatingMbms::Input()"); |
|
61 return KErrNone; |
52 return KErrNone; |
62 |
53 |
63 case PdpFsm::EContextDeletedFailed: |
54 case PdpFsm::EContextDeletedFailed: |
64 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_6, "**** DELETE FAILURE ****"); |
55 SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****")); |
65 // fall through |
56 // fall through |
66 case PdpFsm::EContextDeleted: |
57 case PdpFsm::EContextDeleted: |
67 aFsm.ChangeStateToInitialised(); |
58 aFsm.ChangeStateToInitialised(); |
68 SpudManNotify(aFsm, KMbmsContextCreated, iErrorCode); |
59 SpudManNotify(aFsm, KMbmsContextCreated, iErrorCode); |
69 iErrorCode = KErrNone; |
60 iErrorCode = KErrNone; |
70 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_7, "<<TPdpStateCreatingMbms::Input()"); |
|
71 return KErrNone; |
61 return KErrNone; |
72 } |
62 } |
73 |
63 |
74 // default error handling |
64 // default error handling |
75 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGMBMS_INPUT_8, "<<TPdpStateCreatingMbms::Input()"); |
|
76 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
65 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
77 } |
66 } |