1 // Copyright (c) 2004-2009 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-2010 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 "tpdpstateactivatingsecondaryTraces.h" |
|
28 #endif |
|
29 |
23 #include <networking/umtsnifcontrolif.h> |
30 #include <networking/umtsnifcontrolif.h> |
24 #include "tpdpstates.h" |
31 #include "tpdpstates.h" |
25 #include "spudfsmdebuglogger.h" |
|
26 #include "pdpfsmnmspace.h" |
32 #include "pdpfsmnmspace.h" |
27 #include "cpdpfsm.h" |
33 #include "cpdpfsm.h" |
28 |
34 |
29 TInt TPdpStateActivatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
35 TInt TPdpStateActivatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
30 { |
36 { |
31 SPUDFSMVERBOSE_FNLOG("TPdpStateActivatingSecondary::Input()"); |
37 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_1, ">>TPdpStateActivatingSecondary::Input()"); |
32 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
38 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
33 |
39 |
34 switch (aOperation) |
40 switch (aOperation) |
35 { |
41 { |
36 case PdpFsm::EPdpActivated: |
42 case PdpFsm::EPdpActivated: |
37 // When a secondary context is activated, the context status must be updated before sending the activated event |
43 // When a secondary context is activated, the context status must be updated before sending the activated event |
38 // Normally this change in status is updated by a notify context status change event |
44 // Normally this change in status is updated by a notify context status change event |
39 aFsm.Set(RPacketContext::EStatusActive); |
45 aFsm.Set(RPacketContext::EStatusActive); |
40 aFsm.ChangeStateToGettingNegQoS(); // Context was activated, but we don't necessarily have negotiated QoS yet; |
46 aFsm.ChangeStateToGettingNegQoS(); // Context was activated, but we don't necessarily have negotiated QoS yet; |
41 // a TSY might wait for a successfull activation to report it to Etel. |
47 // a TSY might wait for a successfull activation to report it to Etel. |
42 SpudManNotify (aFsm, KContextActivateEvent, KErrNone); |
48 SpudManNotify (aFsm, KContextActivateEvent, KErrNone); |
|
49 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_3, "<<TPdpStateActivatingSecondary::Input()"); |
43 return KErrNone; |
50 return KErrNone; |
44 case PdpFsm::EPdpActivatedFailed: |
51 case PdpFsm::EPdpActivatedFailed: |
45 SPUDFSMVERBOSE_LOG(_L("*** FAILURE ***")); |
52 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_4, "*** FAILURE ***"); |
46 aFsm.ChangeStateToCreatedSecondary(); |
53 aFsm.ChangeStateToCreatedSecondary(); |
47 SpudManNotify (aFsm, KContextActivateEvent, aErrorCode); |
54 SpudManNotify (aFsm, KContextActivateEvent, aErrorCode); |
|
55 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_5, "<<TPdpStateActivatingSecondary::Input()"); |
48 return KErrNone; |
56 return KErrNone; |
49 // no default |
57 // no default |
50 } |
58 } |
51 |
59 |
52 // default error handling |
60 // default error handling |
|
61 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATEACTIVATINGSECONDARY_INPUT_6, "<<TPdpStateActivatingSecondary::Input()"); |
53 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
62 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
54 } |
63 } |
55 |
64 |
56 |
65 |