1 // Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). |
2 // All rights reserved. |
2 // All rights reserved. |
3 // This component and the accompanying materials are made available |
3 // This component and the accompanying materials are made available |
4 // under the terms of "Eclipse Public License v1.0" |
4 // under the terms of "Eclipse Public License v1.0" |
5 // which accompanies this distribution, and is available |
5 // which accompanies this distribution, and is available |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html". |
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 "tpdpstateactivatingmbmsTraces.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 TPdpStateActivatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
29 TInt TPdpStateActivatingMbms::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 { |
30 { |
37 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_1, ">>TPdpStateActivatingMbms::Input()"); |
31 SPUDFSMVERBOSE_FNLOG("TPdpStateActivatingMbms::Input()"); |
38 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_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 PdpFsm::EPdpActivated: |
36 case PdpFsm::EPdpActivated: |
43 // When a mbms context is activated, the context status must be updated before sending the activated event |
37 // 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 |
38 // Normally this change in status is updated by a notify context status change event |
45 aFsm.Set(RPacketContext::EStatusActive); |
39 aFsm.Set(RPacketContext::EStatusActive); |
46 aFsm.ChangeStateToCreatedMbms();//there is no Qos to be set |
40 aFsm.ChangeStateToCreatedMbms();//there is no Qos to be set |
47 SpudManNotify (aFsm, KContextActivateEvent, KErrNone); |
41 SpudManNotify (aFsm, KContextActivateEvent, KErrNone); |
48 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_3, "<<TPdpStateActivatingMbms::Input()"); |
|
49 return KErrNone; |
42 return KErrNone; |
50 case PdpFsm::EPdpActivatedFailed: |
43 case PdpFsm::EPdpActivatedFailed: |
51 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_4, "*** FAILURE ***"); |
44 SPUDFSMVERBOSE_LOG(_L("*** FAILURE ***")); |
52 aFsm.ChangeStateToCreatedMbms(); |
45 aFsm.ChangeStateToCreatedMbms(); |
53 SpudManNotify (aFsm, KContextActivateEvent, aErrorCode); |
46 SpudManNotify (aFsm, KContextActivateEvent, aErrorCode); |
54 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_5, "<<TPdpStateActivatingMbms::Input()"); |
|
55 return KErrNone; |
47 return KErrNone; |
56 // no default |
48 // no default |
57 } |
49 } |
58 |
50 |
59 // default error handling |
51 // default error handling |
60 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGMBMS_INPUT_6, "<<TPdpStateActivatingMbms::Input()"); |
|
61 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
52 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
62 } |
53 } |