32 #include "pdpfsmnmspace.h" |
32 #include "pdpfsmnmspace.h" |
33 #include "cpdpfsm.h" |
33 #include "cpdpfsm.h" |
34 |
34 |
35 TInt TPdpStateActivatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
35 TInt TPdpStateActivatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 { |
36 { |
37 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_1, ">>TPdpStateActivatingMbms::Input()"); |
|
38 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
|
39 |
|
40 switch (aOperation) |
37 switch (aOperation) |
41 { |
38 { |
42 case PdpFsm::EPdpActivated: |
39 case PdpFsm::EPdpActivated: |
43 // When a mbms context is activated, the context status must be updated before sending the activated event |
40 // When a mbms context is activated, the context status must be updated before sending the activated event |
44 // Normally this change in status is updated by a notify context status change event |
41 // Normally this change in status is updated by a notify context status change event |
45 aFsm.Set(RPacketContext::EStatusActive); |
42 aFsm.Set(RPacketContext::EStatusActive); |
46 aFsm.ChangeStateToCreatedMbms();//there is no Qos to be set |
43 aFsm.ChangeStateToCreatedMbms();//there is no Qos to be set |
47 SpudManNotify (aFsm, KContextActivateEvent, KErrNone); |
44 SpudManNotify (aFsm, KContextActivateEvent, KErrNone); |
48 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_3, "<<TPdpStateActivatingMbms::Input()"); |
|
49 return KErrNone; |
45 return KErrNone; |
50 case PdpFsm::EPdpActivatedFailed: |
46 case PdpFsm::EPdpActivatedFailed: |
51 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_4, "*** FAILURE ***"); |
47 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_1, "*** PDP MBMS CONTEXT ACTIVATED EVENT FAILED ***"); |
52 aFsm.ChangeStateToCreatedMbms(); |
48 aFsm.ChangeStateToCreatedMbms(); |
53 SpudManNotify (aFsm, KContextActivateEvent, aErrorCode); |
49 SpudManNotify (aFsm, KContextActivateEvent, aErrorCode); |
54 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_5, "<<TPdpStateActivatingMbms::Input()"); |
|
55 return KErrNone; |
50 return KErrNone; |
56 // no default |
51 // no default |
57 } |
52 } |
58 |
53 |
59 // default error handling |
54 // default error handling |
60 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_6, "<<TPdpStateActivatingMbms::Input()"); |
|
61 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
55 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
62 } |
56 } |