telephonyprotocols/pdplayer/umts/spudfsm/src/tpdpstatecreatedSecondary.cpp
branchRCL_3
changeset 20 07a122eea281
parent 19 630d2f34d719
equal deleted inserted replaced
19:630d2f34d719 20:07a122eea281
     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 "tpdpstatecreatedSecondaryTraces.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 "pdpfsmnmspace.h"
    27 #include "pdpfsmnmspace.h"
    34 #include "PDPFSM.h"
    28 #include "PDPFSM.h"
    35 #include "cpdpfsm.h"
    29 #include "cpdpfsm.h"
    36 
    30 
    37 TInt TPdpStateCreatedSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    31 TInt TPdpStateCreatedSecondary::Input (CPdpFsm& aFsm, const TInt aOperation, const TInt aErrorCode)
    38 {
    32 {
    39 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_1, ">>TPdpStateCreatedSecondary::Input()");
    33 	SPUDFSMVERBOSE_FNLOG("TPdpStateCreatedSecondary::Input()");
    40 	OstTraceDefExt2(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_2, "aOperation : %S(%d)", *(LogOperation(aFsm, aOperation)), aOperation);
    34 	SPUDFSMVERBOSE_LOG2(_L("aOperation : %S(%d)"), LogOperation(aFsm, aOperation), aOperation);
    41 
    35 
    42 	switch (aOperation)
    36 	switch (aOperation)
    43 	{
    37 	{
    44 	case SpudMan::EContextActivate: 
    38 	case SpudMan::EContextActivate: 
    45 		aFsm.ChangeStateToActivatingSecondary();
    39 		aFsm.ChangeStateToActivatingSecondary();
    46 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
    40 		EtelDriverInput(aFsm, EtelDriver::EActivatePdp);
    47 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_3, "<<TPdpStateCreatedSecondary::Input()");
       
    48 		return KErrNone;		
    41 		return KErrNone;		
    49 	case SpudMan::EContextQoSSet:
    42 	case SpudMan::EContextQoSSet:
    50 		aFsm.ChangeStateToSettingQoS();
    43 		aFsm.ChangeStateToSettingQoS();
    51 		EtelDriverInput(aFsm, EtelDriver::ESetQoS);
    44 		EtelDriverInput(aFsm, EtelDriver::ESetQoS);
    52 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_4, "<<TPdpStateCreatedSecondary::Input()");
       
    53 		return KErrNone;
    45 		return KErrNone;
    54 	case SpudMan::EContextTFTModify:
    46 	case SpudMan::EContextTFTModify:
    55 		aFsm.ChangeStateToSettingTFT();
    47 		aFsm.ChangeStateToSettingTFT();
    56 		EtelDriverInput(aFsm, EtelDriver::ESetTft);
    48 		EtelDriverInput(aFsm, EtelDriver::ESetTft);
    57 		OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_5, "<<TPdpStateCreatedSecondary::Input()");
       
    58 		return KErrNone;
    49 		return KErrNone;
    59 	}
    50 	}
    60 	
    51 	
    61 	// default error handling
    52 	// default error handling
    62 	OstTraceDef0(OST_TRACE_CATEGORY_DEBUG, TRACE_INTERNALS, TPDPSTATECREATEDSECONDARY_INPUT_6, "<<TPdpStateCreatedSecondary::Input()");
       
    63 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    53 	return TPdpState::Input(aFsm, aOperation, aErrorCode);
    64 }
    54 }
    65 
    55 
    66 
    56