equal
deleted
inserted
replaced
17 |
17 |
18 /** |
18 /** |
19 @file |
19 @file |
20 @internalComponent |
20 @internalComponent |
21 */ |
21 */ |
22 |
|
23 |
|
24 |
22 |
25 #include "OstTraceDefinitions.h" |
23 #include "OstTraceDefinitions.h" |
26 #ifdef OST_TRACE_COMPILER_IN_USE |
24 #ifdef OST_TRACE_COMPILER_IN_USE |
27 #include "tpdpstatesettingtftTraces.h" |
25 #include "tpdpstatesettingtftTraces.h" |
28 #endif |
26 #endif |
32 #include "pdpfsmnmspace.h" |
30 #include "pdpfsmnmspace.h" |
33 #include "cpdpfsm.h" |
31 #include "cpdpfsm.h" |
34 |
32 |
35 TInt TPdpStateSettingTFT::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
33 TInt TPdpStateSettingTFT::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 { |
34 { |
37 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_1, ">>TPdpStateSettingTFT::Input()"); |
|
38 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
|
39 |
|
40 switch (aOperation) |
35 switch (aOperation) |
41 { |
36 { |
42 case PdpFsm::ETftSet: |
37 case PdpFsm::ETftSet: |
43 if (aFsm.iContextType != SpudMan::EMbms) |
38 if (aFsm.iContextType != SpudMan::EMbms) |
44 { |
39 { |
56 { |
51 { |
57 aFsm.ChangeStateToCreatedMbms(); |
52 aFsm.ChangeStateToCreatedMbms(); |
58 } |
53 } |
59 } |
54 } |
60 SpudManNotify(aFsm, KContextTFTModifiedEvent, KErrNone); |
55 SpudManNotify(aFsm, KContextTFTModifiedEvent, KErrNone); |
61 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_3, "<<TPdpStateSettingTFT::Input()"); |
|
62 return KErrNone; |
56 return KErrNone; |
63 case PdpFsm::ETftSetFailed: |
57 case PdpFsm::ETftSetFailed: |
64 if (aFsm.iContextType != SpudMan::EMbms) |
58 if (aFsm.iContextType != SpudMan::EMbms) |
65 { |
59 { |
66 aFsm.ChangeStateToCreatedSecondary(); |
60 aFsm.ChangeStateToCreatedSecondary(); |
68 else |
62 else |
69 { |
63 { |
70 aFsm.ChangeStateToCreatedMbms(); |
64 aFsm.ChangeStateToCreatedMbms(); |
71 } |
65 } |
72 SpudManNotify(aFsm, KContextTFTModifiedEvent, aErrorCode); |
66 SpudManNotify(aFsm, KContextTFTModifiedEvent, aErrorCode); |
73 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_4, "<<TPdpStateSettingTFT::Input()"); |
67 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_1, "*** TFT SET FAILED ***"); |
74 return KErrNone; |
68 return KErrNone; |
75 } |
69 } |
76 |
70 |
77 // default error handling |
71 // default error handling |
78 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATESETTINGTFT_INPUT_5, "<<TPdpStateSettingTFT::Input()"); |
|
79 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
72 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
80 } |
73 } |
81 |
|
82 |
|