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 "tpdpstatecreatingSecondaryTraces.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 "PDPFSM.h" |
33 #include "PDPFSM.h" |
28 #include "cpdpfsm.h" |
34 #include "cpdpfsm.h" |
29 |
35 |
30 TInt TPdpStateCreatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
36 TInt TPdpStateCreatingSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
31 { |
37 { |
32 SPUDFSMVERBOSE_FNLOG("TPdpStateCreatingSecondary::Input()"); |
38 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_1, ">>TPdpStateCreatingSecondary::Input()"); |
33 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
39 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
34 |
40 |
35 switch (aOperation) |
41 switch (aOperation) |
36 { |
42 { |
37 case PdpFsm::E2ryPdpContextCreated: |
43 case PdpFsm::E2ryPdpContextCreated: |
38 aFsm.ChangeStateToCreatedSecondary(); |
44 aFsm.ChangeStateToCreatedSecondary(); |
39 SpudManNotify(aFsm, KSecondaryContextCreated, KErrNone); |
45 SpudManNotify(aFsm, KSecondaryContextCreated, KErrNone); |
|
46 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_3, "<<TPdpStateCreatingSecondary::Input()"); |
40 return KErrNone; |
47 return KErrNone; |
41 case PdpFsm::E2ryPdpContextCreatedFailed: |
48 case PdpFsm::E2ryPdpContextCreatedFailed: |
42 iErrorCode = aErrorCode; |
49 iErrorCode = aErrorCode; |
43 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
50 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
|
51 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_4, "<<TPdpStateCreatingSecondary::Input()"); |
44 return KErrNone; |
52 return KErrNone; |
45 |
53 |
46 case PdpFsm::EContextDeletedFailed: |
54 case PdpFsm::EContextDeletedFailed: |
47 SPUDFSMVERBOSE_LOG(_L("**** DELETE FAILURE ****")); |
55 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_5, "**** DELETE FAILURE ****"); |
48 // fall through |
56 // fall through |
49 case PdpFsm::EContextDeleted: |
57 case PdpFsm::EContextDeleted: |
50 aFsm.ChangeStateToInitialised(); |
58 aFsm.ChangeStateToInitialised(); |
51 SpudManNotify(aFsm, KSecondaryContextCreated, iErrorCode); |
59 SpudManNotify(aFsm, KSecondaryContextCreated, iErrorCode); |
52 iErrorCode = KErrNone; |
60 iErrorCode = KErrNone; |
|
61 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_6, "<<TPdpStateCreatingSecondary::Input()"); |
53 return KErrNone; |
62 return KErrNone; |
54 } |
63 } |
55 |
64 |
56 // default error handling |
65 // default error handling |
|
66 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGSECONDARY_INPUT_7, "<<TPdpStateCreatingSecondary::Input()"); |
57 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
67 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
58 } |
68 } |
59 |
69 |