1 // Copyright (c) 2004-2010 Nokia Corporation and/or its subsidiary(-ies). |
1 // Copyright (c) 2004-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 "tpdpstatecreatingprimaryTraces.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 #include "PDPFSM.h" |
28 #include "PDPFSM.h" |
35 |
29 |
36 TInt TPdpStateCreatingPrimary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
30 TInt TPdpStateCreatingPrimary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode) |
37 { |
31 { |
38 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGPRIMARY_INPUT_1, ">>TPdpStateCreatingPrimary::Input()"); |
32 SPUDFSMVERBOSE_FNLOG("TPdpStateCreatingPrimary::Input()"); |
39 OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGPRIMARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation); |
33 SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation); |
40 |
34 |
41 switch (aOperation) |
35 switch (aOperation) |
42 { |
36 { |
43 case PdpFsm::E1ryPdpContextCreated: |
37 case PdpFsm::E1ryPdpContextCreated: |
44 aFsm.ChangeStateToActivatingPrimary(); |
38 aFsm.ChangeStateToActivatingPrimary(); |
45 EtelDriverInput(aFsm, EtelDriver::EActivatePdp); |
39 EtelDriverInput(aFsm, EtelDriver::EActivatePdp); |
46 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGPRIMARY_INPUT_3, "<<TPdpStateCreatingPrimary::Input()"); |
|
47 return KErrNone; |
40 return KErrNone; |
48 case PdpFsm::E1ryPdpContextCreatedFailed: |
41 case PdpFsm::E1ryPdpContextCreatedFailed: |
49 aFsm.ChangeStateToInitialised(); |
42 aFsm.ChangeStateToInitialised(); |
50 SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode); // or is it KContextActivateEvent? |
43 SpudManNotify (aFsm, KPrimaryContextCreated, aErrorCode); // or is it KContextActivateEvent? |
51 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
44 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
52 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGPRIMARY_INPUT_5, "<<TPdpStateCreatingPrimary::Input()"); |
|
53 return KErrNone; |
45 return KErrNone; |
54 case SpudMan::ECancelContextCreate: |
46 case SpudMan::ECancelContextCreate: |
55 aFsm.ChangeStateToStopping(); |
47 aFsm.ChangeStateToStopping(); |
56 EtelDriverCancel(aFsm); |
48 EtelDriverCancel(aFsm); |
57 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
49 EtelDriverInput(aFsm, EtelDriver::EContextDelete); |
58 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGPRIMARY_INPUT_6, "<<TPdpStateCreatingPrimary::Input()"); |
|
59 return KErrNone; |
50 return KErrNone; |
60 } |
51 } |
61 |
52 |
62 // default error handling |
53 // default error handling |
63 OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATINGPRIMARY_INPUT_7, "<<TPdpStateCreatingPrimary::Input()"); |
|
64 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
54 return TPdpState::Input(aFsm, aOperation, aErrorCode); |
65 } |
55 } |
66 |
56 |
67 |
57 |